Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e83aa45
)
tests: raise exception in vpp_interface for invalid sw_if_index
15/23715/3
author
Paul Vinciguerra
<pvinci@vinciconsulting.com>
Mon, 2 Dec 2019 03:16:54 +0000
(22:16 -0500)
committer
Neale Ranns
<nranns@cisco.com>
Mon, 2 Dec 2019 21:40:31 +0000
(21:40 +0000)
Type: test
Change-Id: I34058f2bd20f61a8f8355299a8df95f2948c25eb
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
test/vpp_interface.py
patch
|
blob
|
history
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()