topotests: append 'exit' after interface config

Lets not rely on the automatic behavior of exiting a node on unknown
command and instead use 'exit' explicitly.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
Rafael Zalamena 2025-03-03 14:40:25 -03:00
parent 81b26ca1ae
commit ba6371f9bb

View file

@ -509,6 +509,7 @@ def _enable_disable_pim_config(tgen, topo, input_dict, router, build=False):
cmd = "interface {}".format(interface_name)
config_data.append(cmd)
config_data.append("ip pim")
config_data.append("exit")
if "pim" in input_dict[router]:
if "disable" in input_dict[router]["pim"]: