diff options
author | Iqra Siddiqui <imujeebsiddi@vmware.com> | 2022-02-22 18:25:58 +0100 |
---|---|---|
committer | Iqra Siddiqui <imujeebsiddi@vmware.com> | 2022-02-22 18:29:48 +0100 |
commit | 9c46c484fe52d05ec05fa86b0fa2a8f616e0a880 (patch) | |
tree | 8544c89f67f5b8f9d80f4a5902c2c30eefde43a4 /tests/topotests/lib | |
parent | tests: Add supporting test to validate NH resolution logic (diff) | |
download | frr-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.py | 4 |
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 |