aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/InterfaceUtil.py
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2016-02-19 11:58:27 +0100
committerGerrit Code Review <gerrit@fd.io>2016-02-19 13:36:45 +0000
commitf36857344062402e41419ee37abfec76bf8ad2ff (patch)
tree33dfc3172a938d4ad0965494616b8c7e1ee05a87 /resources/libraries/python/InterfaceUtil.py
parentbfde681c3d8ae0008ecec131a18d3a2560a046ae (diff)
Removed link-up/link-down from if state setup
Change-Id: Ic30102159dc53c2dfc8827bb3a78d040cc336166 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'resources/libraries/python/InterfaceUtil.py')
-rw-r--r--resources/libraries/python/InterfaceUtil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/libraries/python/InterfaceUtil.py b/resources/libraries/python/InterfaceUtil.py
index bc8bf94a9b..38b476ed52 100644
--- a/resources/libraries/python/InterfaceUtil.py
+++ b/resources/libraries/python/InterfaceUtil.py
@@ -37,9 +37,9 @@ class InterfaceUtil(object):
"""
if node['type'] == NodeType.DUT:
if state == 'up':
- state = 'admin-up link-up'
+ state = 'admin-up'
elif state == 'down':
- state = 'admin-down link-down'
+ state = 'admin-down'
else:
raise Exception('Unexpected interface state: {}'.format(state))