summaryrefslogtreecommitdiffstats
path: root/test/vpp_interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/vpp_interface.py')
-rw-r--r--test/vpp_interface.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/vpp_interface.py b/test/vpp_interface.py
index 9bfa880e1c9..a6717797309 100644
--- 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()