X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FTestConfig.py;h=28c740e42e88c7498c7e5aceeb28ff222abc33a6;hp=6366f2e3fbd4aa757975c589e50387acbb42016c;hb=b6606e7625e308a66bdfb9d5a9c065b58e429a99;hpb=ee33baa6d09b759876441ecde725da95f604fedd diff --git a/resources/libraries/python/TestConfig.py b/resources/libraries/python/TestConfig.py index 6366f2e3fb..28c740e42e 100644 --- a/resources/libraries/python/TestConfig.py +++ b/resources/libraries/python/TestConfig.py @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -156,10 +156,9 @@ class TestConfig: del_all=False, prefix=None ) - cmd2 = u"vxlan_add_del_tunnel" + cmd2 = u"vxlan_add_del_tunnel_v3" 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)