Skip to content

Commit 0673a9b

Browse files
committed
[stable-only][OVN] Set VETH interface MAC address before up
Set the VETH interface MAC address of the metadata namespace before setting this interface as up. This change was introduced in [1] and should be backported to stable versions. [1]https://review.opendev.org/c/openstack/neutron/+/894026/12/neutron/agent/ovn/metadata/agent.py#710 Closes-Bug: #2055561 Change-Id: Ied8f7a5b6c0e9c295e8e040546c53bd98206ef12 (cherry picked from commit ac63999)
1 parent c162ea2 commit 0673a9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

neutron/agent/ovn/metadata/agent.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,13 +649,13 @@ def provision_datapath(self, datapath):
649649
ip1, ip2 = ip_lib.IPWrapper().add_veth(
650650
veth_name[0], veth_name[1], namespace)
651651

652+
# Configure the MAC address.
653+
ip2.link.set_address(metadata_port_info.mac)
654+
652655
# Make sure both ends of the VETH are up
653656
ip1.link.set_up()
654657
ip2.link.set_up()
655658

656-
# Configure the MAC address.
657-
ip2.link.set_address(metadata_port_info.mac)
658-
659659
cidrs_to_add, cidrs_to_delete = self._process_cidrs(
660660
{dev['cidr'] for dev in ip2.addr.list()},
661661
datapath_ports_ips,

0 commit comments

Comments
 (0)