diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2022-01-24 00:07:20 +0300 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2022-01-24 14:44:05 +0300 |
| commit | 788a036fdb57d733371b180d1d295ce6ca72bf5d (patch) | |
| tree | da6694b6b0d78fd1b679ba02a7808f0fe01f964f /tests/topotests/lib/common_config.py | |
| parent | 9e84443acac051c31e504d8da657c2776332edf5 (diff) | |
*: do not print vrf name for interface config when using vrf-lite
VRF name should not be printed in the config since 574445ec. The update
was done for NB config output but I missed it for regular vty output.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'tests/topotests/lib/common_config.py')
| -rw-r--r-- | tests/topotests/lib/common_config.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/topotests/lib/common_config.py b/tests/topotests/lib/common_config.py index c744e5bbbf..f538b5a52b 100644 --- a/tests/topotests/lib/common_config.py +++ b/tests/topotests/lib/common_config.py @@ -2083,15 +2083,7 @@ def create_interfaces_cfg(tgen, topo, build=False): else: interface_name = data["interface"] - # Include vrf if present - if "vrf" in data: - interface_data.append( - "interface {} vrf {}".format( - str(interface_name), str(data["vrf"]) - ) - ) - else: - interface_data.append("interface {}".format(str(interface_name))) + interface_data.append("interface {}".format(str(interface_name))) if "ipv4" in data: intf_addr = c_data["links"][destRouterLink]["ipv4"] |
