[Proxy] ARP tests
Change-Id: I40d6d763b55a26cdee0afef85d1acdd19dd10dd6 Signed-off-by: Neale Ranns <nranns@cisco.com>
This commit is contained in:

committed by
Damjan Marion

parent
3e7b569361
commit
39f9d8bd22
@ -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)
|
||||
|
Reference in New Issue
Block a user