sonic-swss icon indicating copy to clipboard operation
sonic-swss copied to clipboard

[intfmgr][vlanmgr] Support arp_ignore through new field "arp_reply"

Open irene-pan1202 opened this issue 1 year ago • 0 comments

What I did Relax the restrictions on the arp_ignore global settings, and support a new field that allows dynamic modification of arp_ignore for different interfaces.

Why I did it arp_ignore has different modes for sending replies in response to received ARP requests that resolve the local target IP address. Due to the strict settings of the arp_ignore global configuration, there are more restrictions.

How I verified it

admin@sonic:/$ sudo sysctl -a | grep all.arp_ignore
net.ipv4.conf.all.arp_ignore = 0
admin@sonic:/$ sudo sysctl -a | grep Ethernet4.arp_ignore
net.ipv4.conf.Ethernet4.arp_ignore = 2
admin@sonic:/$ redis-cli -n 4 -c HSET "INTERFACE|Ethernet4" arp_reply reply_iface
(integer) 1
admin@sonic:/$ sudo sysctl -a | grep Ethernet4.arp_ignore
net.ipv4.conf.Ethernet4.arp_ignore = 1

Details if related

irene-pan1202 avatar Apr 24 '24 07:04 irene-pan1202