Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Removed link-up/link-down from if state setup
[csit.git]
/
resources
/
libraries
/
python
/
InterfaceUtil.py
diff --git
a/resources/libraries/python/InterfaceUtil.py
b/resources/libraries/python/InterfaceUtil.py
index
bc8bf94
..
38b476e
100644
(file)
--- 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':
"""
if node['type'] == NodeType.DUT:
if state == 'up':
- state = 'admin-up
link-up
'
+ state = 'admin-up'
elif state == 'down':
elif state == 'down':
- state = 'admin-down
link-down
'
+ state = 'admin-down'
else:
raise Exception('Unexpected interface state: {}'.format(state))
else:
raise Exception('Unexpected interface state: {}'.format(state))