Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Report: Set precise NIC limit for x553
[csit.git]
/
resources
/
libraries
/
python
/
Tap.py
diff --git
a/resources/libraries/python/Tap.py
b/resources/libraries/python/Tap.py
index
ffcd00c
..
6b8ae87
100644
(file)
--- a/
resources/libraries/python/Tap.py
+++ b/
resources/libraries/python/Tap.py
@@
-120,7
+120,7
@@
class Tap(object):
:raises RuntimeError: Specified interface was not found.
"""
tap_if = InterfaceUtil.tap_dump(node, tap_name)
- if
len(tap_if) == 0
:
+ if
not tap_if
:
raise RuntimeError(
'Tap interface :{} does not exist'.format(tap_name))