sonic-swss
sonic-swss copied to clipboard
[intfmgr][vlanmgr] Support arp_ignore through new field "arp_reply"
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