aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_interface.py
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-02-16 21:57:05 -0800
committerDamjan Marion <dmarion.lists@gmail.com>2017-02-27 12:10:50 +0000
commit39f9d8bd226ab5aa366f181a5cbf7c873f599e06 (patch)
tree313fc63450ddca953a6c7ee9c1ee9260169f4003 /test/vpp_interface.py
parent3e7b569361f97368b0cad3468fac76ef2a398bfa (diff)
[Proxy] ARP tests
Change-Id: I40d6d763b55a26cdee0afef85d1acdd19dd10dd6 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/vpp_interface.py')
-rw-r--r--test/vpp_interface.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/vpp_interface.py b/test/vpp_interface.py
index 9c904aac..125d8f04 100644
--- a/test/vpp_interface.py
+++ b/test/vpp_interface.py
@@ -2,6 +2,7 @@ from abc import abstractmethod, ABCMeta
import socket
from util import Host
+from vpp_neighbor import VppNeighbor
class VppInterface(object):
@@ -316,3 +317,15 @@ class VppInterface(object):
i.table_id == self.ip4_table_id:
return True
return False
+
+ def set_unnumbered(self, ip_sw_if_index):
+ """ Set the interface to unnumbered via ip_sw_if_index """
+ self.test.vapi.sw_interface_set_unnumbered(
+ self.sw_if_index,
+ ip_sw_if_index)
+
+ def set_proxy_arp(self, enable=1):
+ """ Set the interface to enable/disable Proxy ARP """
+ self.test.vapi.proxy_arp_intfc_enable_disable(
+ self.sw_if_index,
+ enable)