1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

nlmanager : nlpacket : IFLA_BRPORT_ARP_SUPPRESS : use 32 netlink value : (fixes #47)

this has been upstreamed recently in linux kernel, with
IFLA_BRPORT_NEIGH_SUPPRESS, with 32 as netlink value.
https://www.spinics.net/lists/linux-ethernet-bridging/msg06910.html

Cumulus is using a temp 152 number in his own kernel.

This is needed for bgp evpn and anycast gateway.

auto vmbr3
iface vmbr3
        bridge_ports vxlan3
        bridge_stp off
        bridge_fd 0

auto vxlan3
iface vxlan3 inet manual
        vxlan-id 3
        vxlan-local-tunnelip 10.59.100.231
        bridge-learning off
        bridge-arp-nd-suppress on

info: reading '/sys/class/net/vmbr3/bridge/stp_state'
debug: vmbr3: evaluating port expr '['vxlan3']'
debug: _cache_get(['vxlan3', 'hwaddress']) : ['hwaddress']
debug: reading '/sys/class/net/vxlan3/address'
info: writing '1' to file /proc/sys/net/ipv6/conf/vxlan3/disable_ipv6
info: executing /bin/ip -force -batch - [link set dev vxlan3 master vmbr3
addr flush dev vxlan3
]
info: vmbr3: applying bridge port configuration: ['vxlan3']
info: vmbr3: vxlan3: set bridge-learning off
debug: (cache None)
info: vmbr3: vxlan3: set bridge-arp-nd-suppress on
debug: (cache None)
info: vmbr3: vxlan3: vxlan learning and bridge learning out of sync: set False
info: vxlan3: netlink: ip link set dev vxlan3: bridge slave attributes
debug: vxlan3: ifla_info_data {7: False}
debug: vxlan3: ifla_info_slave_data {8: False, 152: True}
This commit is contained in:
Alexandre Derumier
2018-05-16 02:16:42 +02:00
committed by Julien Fortin
parent cad735c573
commit aab17506cc

View File

@ -3306,9 +3306,9 @@ class Link(NetlinkPacket):
IFLA_BRPORT_VLAN_TUNNEL = 29
IFLA_BRPORT_BCAST_FLOOD = 30
IFLA_BRPORT_GROUP_FWD_MASK = 31
IFLA_BRPORT_ARP_SUPPRESS = 32
IFLA_BRPORT_PEER_LINK = 150
IFLA_BRPORT_DUAL_LINK = 151
IFLA_BRPORT_ARP_SUPPRESS = 152
IFLA_BRPORT_GROUP_FWD_MASKHI = 153
IFLA_BRPORT_DOWN_PEERLINK_REDIRECT = 154