diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-11-20 08:37:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-20 08:37:58 +0100 |
commit | a1477006f91d86f9fa9267b45b16c8906b348a4c (patch) | |
tree | e74919d3ce37c179473a60224f7209ee64859361 /tests/topotests | |
parent | Merge pull request #7559 from ckishimo/translator (diff) | |
parent | tests: Fix common_config.py issues (diff) | |
download | frr-a1477006f91d86f9fa9267b45b16c8906b348a4c.tar.xz frr-a1477006f91d86f9fa9267b45b16c8906b348a4c.zip |
Merge pull request #7562 from donaldsharp/python_fixes
tests: Fix common_config.py issues
Diffstat (limited to 'tests/topotests')
-rw-r--r-- | tests/topotests/lib/common_config.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/topotests/lib/common_config.py b/tests/topotests/lib/common_config.py index 9c104db3c..6c24b6ddb 100644 --- a/tests/topotests/lib/common_config.py +++ b/tests/topotests/lib/common_config.py @@ -1150,6 +1150,9 @@ def generate_ips(network, no_of_ips): if "/" in start_ipaddr: start_ip = start_ipaddr.split("/")[0] mask = int(start_ipaddr.split("/")[1]) + else: + logger.debug("start_ipaddr {} must have a / in it".format(start_ipaddr)) + assert(0) addr_type = validate_ip_address(start_ip) if addr_type == "ipv4": @@ -2865,7 +2868,7 @@ def verify_rib( for advertise_network_dict in advertise_network: if "vrf" in advertise_network_dict: - cmd = "{} vrf {} json".format(command, static_route["vrf"]) + cmd = "{} vrf {} json".format(command, advertise_network_dict["vrf"]) else: cmd = "{} json".format(command) |