Do not use low-level sw_interface_set_mac_address() directly and use
higher-level set_mac() instead, otherwise interface local_mac and
configured mac are out-of-sync
Type: fix
Fixes:
25b049484f
Change-Id: I9366e7afb95ef00e25a94ca3b0e6309871169878
Signed-off-by: Benoît Ganne <bganne@cisco.com>
if epg != epgs[1] and epg != epgs[4]:
VppIpInterfaceBind(self, epg.bvi, epg.rd.t4).add_vpp_config()
VppIpInterfaceBind(self, epg.bvi, epg.rd.t6).add_vpp_config()
if epg != epgs[1] and epg != epgs[4]:
VppIpInterfaceBind(self, epg.bvi, epg.rd.t4).add_vpp_config()
VppIpInterfaceBind(self, epg.bvi, epg.rd.t6).add_vpp_config()
- self.vapi.sw_interface_set_mac_address(
- epg.bvi.sw_if_index,
- self.router_mac.packed)
+ epg.bvi.set_mac(self.router_mac)
# The BVIs are NAT inside interfaces
flags = self.config_flags.NAT_IS_INSIDE
# The BVIs are NAT inside interfaces
flags = self.config_flags.NAT_IS_INSIDE
if epg != epgs[1]:
VppIpInterfaceBind(self, epg.bvi, epg.rd.t4).add_vpp_config()
VppIpInterfaceBind(self, epg.bvi, epg.rd.t6).add_vpp_config()
if epg != epgs[1]:
VppIpInterfaceBind(self, epg.bvi, epg.rd.t4).add_vpp_config()
VppIpInterfaceBind(self, epg.bvi, epg.rd.t6).add_vpp_config()
- self.vapi.sw_interface_set_mac_address(
- epg.bvi.sw_if_index,
- self.router_mac.packed)
+ epg.bvi.set_mac(self.router_mac)
if_ip4 = VppIpInterfaceAddress(self, epg.bvi, epg.bvi_ip4, 32)
if_ip6 = VppIpInterfaceAddress(self, epg.bvi, epg.bvi_ip6, 128)
if_ip4 = VppIpInterfaceAddress(self, epg.bvi, epg.bvi_ip4, 32)
if_ip6 = VppIpInterfaceAddress(self, epg.bvi, epg.bvi_ip6, 128)