Merge "Use local and ip address to create vxlan interface" into stable/wallaby

This commit is contained in:
Zuul 2021-06-09 21:39:38 +00:00 committed by Gerrit Code Review
commit e7885b6d0e
2 changed files with 5 additions and 0 deletions

View File

@ -346,8 +346,12 @@ class LinuxBridgeManager(amb.CommonAgentManagerBase):
if self.vxlan_mode == lconst.VXLAN_MCAST: if self.vxlan_mode == lconst.VXLAN_MCAST:
args['group'] = self.get_vxlan_group(segmentation_id) args['group'] = self.get_vxlan_group(segmentation_id)
if cfg.CONF.VXLAN.l2_population: if cfg.CONF.VXLAN.l2_population:
args['proxy'] = cfg.CONF.VXLAN.arp_responder args['proxy'] = cfg.CONF.VXLAN.arp_responder
# L2population should set the local ip address to handle
# a source dev with multiple ip addresses configured.
args['local'] = self.local_ip
try: try:
int_vxlan = self.ip.add_vxlan(interface, segmentation_id, int_vxlan = self.ip.add_vxlan(interface, segmentation_id,

View File

@ -412,6 +412,7 @@ class TestLinuxBridgeManager(base.BaseTestCase):
dstport=None, dstport=None,
ttl=None, ttl=None,
dev=self.lbm.local_int, dev=self.lbm.local_int,
local=self.lbm.local_ip,
proxy=expected_proxy) proxy=expected_proxy)
def test_ensure_vxlan_arp_responder_enabled(self): def test_ensure_vxlan_arp_responder_enabled(self):