X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FTGSetup.py;h=7b3cee4098193ed5bc6f3fae3c4bf38ac8cf4f88;hp=3e372e9464f0a9070681897d478c6821251f4b8b;hb=HEAD;hpb=33499c81c94c2d3baef9d3e9f061cd76ef86fa74 diff --git a/resources/libraries/python/TGSetup.py b/resources/libraries/python/TGSetup.py index 3e372e9464..7b3cee4098 100644 --- a/resources/libraries/python/TGSetup.py +++ b/resources/libraries/python/TGSetup.py @@ -1,4 +1,4 @@ -# Copyright (c) 2016 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: @@ -13,11 +13,11 @@ """TG Setup library.""" -from topology import NodeType -from InterfaceSetup import InterfaceSetup +from resources.libraries.python.InterfaceUtil import InterfaceUtil +from resources.libraries.python.topology import NodeType -class TGSetup(object): +class TGSetup: """TG setup before test.""" @staticmethod @@ -28,5 +28,5 @@ class TGSetup(object): :type nodes: dict """ for node in nodes.values(): - if node['type'] == NodeType.TG: - InterfaceSetup.tg_set_interfaces_default_driver(node) + if node[u"type"] == NodeType.TG: + InterfaceUtil.tg_set_interfaces_default_driver(node)