diff options
author | Jan Gelety <jgelety@cisco.com> | 2020-03-25 10:21:09 +0100 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2020-03-25 10:21:09 +0100 |
commit | 45f5b2dae50aef87efaf3539676611e7724cb487 (patch) | |
tree | ec6cca770d5609f7c3638131ce2f45893070297b /resources/libraries/python/TestConfig.py | |
parent | 99aac21ada350105ff46825c30872b5223bc3c1b (diff) |
FIX: vxlan_add_del_tunnel in TestConfig.py
Change-Id: I1e4ab1b40fd4a2f48df1dc33b7b17266382df20b
Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries/python/TestConfig.py')
-rw-r--r-- | resources/libraries/python/TestConfig.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/resources/libraries/python/TestConfig.py b/resources/libraries/python/TestConfig.py index 6366f2e3fb..9e104e2098 100644 --- a/resources/libraries/python/TestConfig.py +++ b/resources/libraries/python/TestConfig.py @@ -158,8 +158,7 @@ class TestConfig: ) cmd2 = u"vxlan_add_del_tunnel" args2 = dict( - is_add=1, - is_ipv6=0, + is_add=True, instance=Constants.BITWISE_NON_ZERO, src_address=None, dst_address=None, @@ -190,8 +189,12 @@ class TestConfig: args1[u"prefix"] = IPUtil.create_prefix_object( src_ip, 128 if src_ip_start.version == 6 else 32 ) - args2[u"src_address"] = getattr(src_ip, u"packed") - args2[u"dst_address"] = getattr(dst_ip, u"packed") + args2[u"src_address"] = IPAddress.create_ip_address_object( + src_ip + ) + args2[u"dst_address"] = IPAddress.create_ip_address_object( + dst_ip + ) args2[u"vni"] = int(vni_start) + i args3[u"vlan_id"] = i + 1 history = bool(not 1 < i < vxlan_count - 1) |