Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
tests: raise exception in vpp_interface for invalid sw_if_index
[vpp.git]
/
test
/
vpp_interface.py
diff --git
a/test/vpp_interface.py
b/test/vpp_interface.py
index
9bfa880
..
a671779
100644
(file)
--- a/
test/vpp_interface.py
+++ b/
test/vpp_interface.py
@@
-237,6
+237,9
@@
class VppInterface(object):
self.sw_if_index, mac.packed)
def set_sw_if_index(self, sw_if_index):
+ if sw_if_index > 255:
+ raise RuntimeError("Don't support sw_if_index values "
+ "greater than 255.")
self._sw_if_index = sw_if_index
self.generate_remote_hosts()