summaryrefslogtreecommitdiffstats
path: root/tests/topotests/lib
diff options
context:
space:
mode:
authorIqra Siddiqui <imujeebsiddi@vmware.com>2022-02-22 18:25:58 +0100
committerIqra Siddiqui <imujeebsiddi@vmware.com>2022-02-22 18:29:48 +0100
commit9c46c484fe52d05ec05fa86b0fa2a8f616e0a880 (patch)
tree8544c89f67f5b8f9d80f4a5902c2c30eefde43a4 /tests/topotests/lib
parenttests: Add supporting test to validate NH resolution logic (diff)
downloadfrr-9c46c484fe52d05ec05fa86b0fa2a8f616e0a880.tar.xz
frr-9c46c484fe52d05ec05fa86b0fa2a8f616e0a880.zip
tests: Fix style issues in common_config.py
Signed-off-by: Iqra Siddiqui <imujeebsiddi@vmware.com>
Diffstat (limited to 'tests/topotests/lib')
-rw-r--r--tests/topotests/lib/common_config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/lib/common_config.py b/tests/topotests/lib/common_config.py
index 0defe1359..c0572fca4 100644
--- a/tests/topotests/lib/common_config.py
+++ b/tests/topotests/lib/common_config.py
@@ -1195,7 +1195,7 @@ def add_interfaces_to_vlan(tgen, input_dict):
# Assigning IP address
ifaddr = ipaddress.ip_interface(
- u"{}/{}".format(
+ "{}/{}".format(
frr_unicode(data["ip"]), frr_unicode(data["subnet"])
)
)
@@ -1626,7 +1626,7 @@ def create_interface_in_kernel(
ifaddr = ipaddress.ip_interface(frr_unicode(ip_addr))
else:
ifaddr = ipaddress.ip_interface(
- u"{}/{}".format(frr_unicode(ip_addr), frr_unicode(netmask))
+ "{}/{}".format(frr_unicode(ip_addr), frr_unicode(netmask))
)
cmd = "ip -{0} a flush {1} scope global && ip a add {2} dev {1} && ip l set {1} up".format(
ifaddr.version, name, ifaddr