ipip: Tunnel flags controlling copying data to/from payload/encap
[vpp.git] / test / vpp_interface.py
index 9bfa880..f92dc8e 100644 (file)
@@ -89,7 +89,7 @@ class VppInterface(object):
 
     @local_ip6.setter
     def local_ip6(self, value):
-        self._local_ip6
+        self._local_ip6 = value
 
     @property
     def local_ip6_prefix_len(self):
@@ -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()