pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39918?usp=email )
Change subject: stp: TC_tmt_loadshare*: Use new vty command 'binding-table reset' ...................................................................... stp: TC_tmt_loadshare*: Use new vty command 'binding-table reset' Reset the eSLS binding table state before starting the test, to run it with a clean state. This test also fixes TC_unknown_client_dynamic_tmt_loadshare since it now resets the table after connecting the 2nd dynamic ASP, which allows re-distributing all seeds in the table into the new available set of ASPs. Depends: libosmo-sigtran.git Change-Id I56c34072a9ded42c13dbfc105a0ab3353ca353ec Change-Id: I40b7724edcc06a3df641e316be4770d0e56bb72d --- M stp/STP_Tests_IPA.ttcn M stp/STP_Tests_M3UA.ttcn 2 files changed, 8 insertions(+), 2 deletions(-) Approvals: osmith: Looks good to me, but someone else must approve Jenkins Builder: Verified pespin: Looks good to me, approved diff --git a/stp/STP_Tests_IPA.ttcn b/stp/STP_Tests_IPA.ttcn index 88c9312..66e7262 100644 --- a/stp/STP_Tests_IPA.ttcn +++ b/stp/STP_Tests_IPA.ttcn @@ -269,7 +269,8 @@ f_init_ipa(); - f_vty_config2(VTY, {"cs7 instance 0", "as " & mp_ipa_as_names[2] & " ipa"}, "traffic-mode loadshare"); + f_vty_config3(VTY, {"cs7 instance 0", "as " & mp_ipa_as_names[2] & " ipa"}, + { "traffic-mode loadshare", "binding-table reset" }); /* bring up the 'sender' side (single ASP in AS) */ f_connect_ipa(0, unknwon_dynamic_asp); @@ -284,6 +285,10 @@ /* activate the second 'receiver' side ASP */ f_connect_ipa(3, unknwon_dynamic_asp); + /* Since we are using dynamic ASPs, they were unknown by STP until they got connected. + * Hence, reset the binding-table so that load is now properly spread among them: */ + f_vty_config2(VTY, {"cs7 instance 0", "as " & mp_ipa_as_names[2] & " ipa"}, "binding-table reset" ); + /* verify traffic is routed from sender to new receiver */ const integer iter_per_asp := 20; const integer NUM_SLS := 16; /* SLS in ITU is 4 bits. */ diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn index ba44b3f..89be9e0 100644 --- a/stp/STP_Tests_M3UA.ttcn +++ b/stp/STP_Tests_M3UA.ttcn @@ -663,7 +663,8 @@ f_init_m3ua(); - f_vty_config2(VTY, {"cs7 instance 0", "as as-receiver m3ua"}, "traffic-mode loadshare"); + f_vty_config3(VTY, {"cs7 instance 0", "as as-receiver m3ua"}, + { "traffic-mode loadshare", "binding-table reset" }); var OCT4 rctx_sender := int2oct(f_m3ua_cli_config(0).routing_ctx, 4); var OCT4 pc_sender := int2oct(f_m3ua_cli_config(0).point_code, 4); -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39918?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I40b7724edcc06a3df641e316be4770d0e56bb72d Gerrit-Change-Number: 39918 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pes...@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanits...@sysmocom.de> Gerrit-Reviewer: laforge <lafo...@osmocom.org> Gerrit-Reviewer: osmith <osm...@sysmocom.de> Gerrit-Reviewer: pespin <pes...@sysmocom.de>