<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/16305">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Skip dynamic ASPs when writing the list of ASPs in an AS<br><br>we handle this correctly in not writing the actual "asp" configuration,<br>but we have a bug when writing the list of asps within one "as". Let's<br>make sure to skip the dynamically-created ASPs there, too.<br><br>Change-Id: I1a184f3ddec2e91ced8c95ada224da8b490407a8<br>Closes: OS#4284<br>---<br>M src/osmo_ss7_vty.c<br>1 file changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/05/16305/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c</span><br><span>index ebae5a5..591254e 100644</span><br><span>--- a/src/osmo_ss7_vty.c</span><br><span>+++ b/src/osmo_ss7_vty.c</span><br><span>@@ -1044,6 +1044,9 @@</span><br><span>                 struct osmo_ss7_asp *asp = as->cfg.asps[i];</span><br><span>               if (!asp)</span><br><span>                    continue;</span><br><span style="color: hsl(120, 100%, 40%);">+             /* skip any dynamically created ASPs (e.g. auto-created at connect time) */</span><br><span style="color: hsl(120, 100%, 40%);">+           if (asp->dyn_allocated || asp->simple_client_allocated)</span><br><span style="color: hsl(120, 100%, 40%);">+                 continue;</span><br><span>            vty_out(vty, "  asp %s%s", asp->cfg.name, VTY_NEWLINE);</span><br><span>         }</span><br><span>    if (as->cfg.mode_set_by_vty)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/16305">change 16305</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmo-sccp/+/16305"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-sccp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I1a184f3ddec2e91ced8c95ada224da8b490407a8 </div>
<div style="display:none"> Gerrit-Change-Number: 16305 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>