mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 15:34:30 +00:00
tests: Add exit
stanzas to pre-generated config
A bunch of tests rely on pre-generated config from json files. These tests were not putting `exit` stanzas and a bunch of the tests as a result are silently failing to configure properly at all, as commands were being sent to the wrong daemons. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
b9de32473d
commit
af53f97f34
@ -529,6 +529,7 @@ def __create_bgp_unicast_neighbor(
|
||||
|
||||
config_data.extend(neigh_addr_data)
|
||||
|
||||
config_data.append("exit")
|
||||
logger.debug("Exiting lib API: {}".format(sys._getframe().f_code.co_name))
|
||||
return config_data
|
||||
|
||||
|
@ -2186,6 +2186,7 @@ def create_interfaces_cfg(tgen, topo, build=False):
|
||||
interface_data += _create_interfaces_ospf_cfg(
|
||||
"ospf6", c_data, data, ospf_keywords + ["area"]
|
||||
)
|
||||
interface_data.append("exit")
|
||||
if interface_data:
|
||||
interface_data_dict[c_router] = interface_data
|
||||
|
||||
|
@ -337,6 +337,7 @@ def __create_ospf_global(tgen, input_dict, router, build, load_config, ospf):
|
||||
cmd = "no {}".format(cmd)
|
||||
config_data.append(cmd)
|
||||
|
||||
config_data.append("exit")
|
||||
logger.debug("Exiting lib API: create_ospf_global()")
|
||||
|
||||
return config_data
|
||||
|
Loading…
Reference in New Issue
Block a user