<p>daniel has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21536">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gbproxy: Reset gbproxy bvc as well as ns state<br><br>We need to ensure that before each test the gbproxy does not have any<br>state. Move the vty commands into loops that run before we init either<br>SGSN or PCU Gb. This ensures that we don't send some spurious block or<br>other message at the start of the test.<br><br>Related: SYS#5002<br>Change-Id: Iaedfadf94f716b190495a807c28785be0078addc<br>---<br>M gbproxy/GBProxy_Tests.ttcn<br>1 file changed, 7 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/36/21536/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn</span><br><span>index c9b08cc..a9bbded 100644</span><br><span>--- a/gbproxy/GBProxy_Tests.ttcn</span><br><span>+++ b/gbproxy/GBProxy_Tests.ttcn</span><br><span>@@ -382,11 +382,17 @@</span><br><span>    f_init_vty();</span><br><span>        for (i := 0; i < lengthof(mp_nsconfig_sgsn); i := i+1) {</span><br><span>          f_vty_transceive(GBPVTY, "nsvc nsei " & int2str(g_sgsn[i].cfg.nsei) & " force-unconfigured");</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span style="color: hsl(120, 100%, 40%);">+     for (i := 0; i < lengthof(mp_nsconfig_pcu); i := i+1) {</span><br><span style="color: hsl(120, 100%, 40%);">+            f_vty_transceive(GBPVTY, "nsvc nsei " & int2str(g_pcu[i].cfg.nsei) & " force-unconfigured");</span><br><span style="color: hsl(120, 100%, 40%);">+              f_vty_transceive(GBPVTY, "delete-gbproxy-peer " & int2str(g_pcu[i].cfg.nsei) & " only-bvc");</span><br><span style="color: hsl(120, 100%, 40%);">+      }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   for (i := 0; i < lengthof(mp_nsconfig_sgsn); i := i+1) {</span><br><span>          f_init_gb_sgsn(g_sgsn[i], "GbProxy_Test", i);</span><br><span>      }</span><br><span>    f_sleep(4.0);</span><br><span>        for (i := 0; i < lengthof(mp_nsconfig_pcu); i := i+1) {</span><br><span style="color: hsl(0, 100%, 40%);">-              f_vty_transceive(GBPVTY, "nsvc nsei " & int2str(g_pcu[i].cfg.nsei) & " force-unconfigured");</span><br><span>             f_init_gb_pcu(g_pcu[i], "GbProxy_Test", i);</span><br><span>        }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21536">change 21536</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/osmo-ttcn3-hacks/+/21536"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Iaedfadf94f716b190495a807c28785be0078addc </div>
<div style="display:none"> Gerrit-Change-Number: 21536 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>