ns: f_init_vty: only reset SNS configuration when using SNS.

Change-Id: I9ecf0abe29e5acdd18f4b18b340baeb442cc09b6
This commit is contained in:
Alexander Couzens 2021-09-03 23:18:27 +02:00 committed by lynxis lazus
parent fdfe638cff
commit bdef810edc
1 changed files with 6 additions and 4 deletions

View File

@ -78,10 +78,12 @@ private function f_init_vty() runs on RAW_Test_CT {
f_vty_set_prompts(NSVTY);
f_vty_transceive(NSVTY, "enable");
f_vty_transceive(NSVTY, "nsvc nsei " & int2str(mp_nsconfig.nsei) & " force-unconfigured");
f_vty_config2(NSVTY, {"ns", "nse " & int2str(mp_nsconfig.nsei)}, "ip-sns-bind local");
f_vty_config2(NSVTY, {"ns", "nse " & int2str(mp_nsconfig.nsei)}, "no ip-sns-bind local2");
f_vty_config2(NSVTY, {"ns", "bind udp local"}, "ip-sns signalling-weight 1 data-weight 1");
f_vty_config2(NSVTY, {"ns", "bind udp local2"}, "ip-sns signalling-weight 1 data-weight 1");
if (mp_dialect == NS2_DIALECT_SNS) {
f_vty_config2(NSVTY, {"ns", "nse " & int2str(mp_nsconfig.nsei)}, "ip-sns-bind local");
f_vty_config2(NSVTY, {"ns", "nse " & int2str(mp_nsconfig.nsei)}, "no ip-sns-bind local2");
f_vty_config2(NSVTY, {"ns", "bind udp local"}, "ip-sns signalling-weight 1 data-weight 1");
f_vty_config2(NSVTY, {"ns", "bind udp local2"}, "ip-sns signalling-weight 1 data-weight 1");
}
}
/* ensure no matching message is received within 'tout' */