X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FTGSetup.py;h=7b3cee4098193ed5bc6f3fae3c4bf38ac8cf4f88;hp=05c8b1d177af89374faae629a4542e8f6ff712aa;hb=HEAD;hpb=5a2fd159dce96a70f2e5157314391aceb6d80197 diff --git a/resources/libraries/python/TGSetup.py b/resources/libraries/python/TGSetup.py index 05c8b1d177..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 InterfaceUtil import InterfaceUtil +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: + if node[u"type"] == NodeType.TG: InterfaceUtil.tg_set_interfaces_default_driver(node)