IP directed broadcast

with ip direct broadcast enable a packet to the interface's
subnet broadcast address with be sent L2 broadcast on the
interface. dissabled, it will be dropped. it is disabled by
default, which preserves current behaviour

Change-Id: If154cb92e64834e97a541b32624354348a0eafb3
Signed-off-by: Neale Ranns <nranns@cisco.com>
This commit is contained in:
Neale Ranns
2018-07-11 10:31:26 -07:00
committed by Damjan Marion
parent 631de0dffe
commit 1855b8e48d
18 changed files with 366 additions and 34 deletions

View File

@ -720,6 +720,18 @@ class VppPapiProvider(object):
{'sw_if_index': sw_if_index,
'enable': enable})
def sw_interface_set_ip_directed_broadcast(
self,
sw_if_index,
enable=1):
"""IP Directed broadcast
:param sw_if_index - interface the operation is applied to
"""
return self.api(self.papi.sw_interface_set_ip_directed_broadcast,
{'sw_if_index': sw_if_index,
'enable': enable})
def sw_interface_set_flags(self, sw_if_index, admin_up_down):
"""