Skip to content

Commit bf5f588

Browse files
Jenkinsopenstack-gerrit
Jenkins
authored andcommitted
Merge "Delete $IPV6_PUBLIC_NETWORK_GATEWAY IP during cleanup"
2 parents 585501a + 790266f commit bf5f588

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/neutron-legacy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,10 @@ function cleanup_neutron {
834834
_move_neutron_addresses_route "$OVS_PHYSICAL_BRIDGE" "$PUBLIC_INTERFACE" False "inet"
835835

836836
if [[ $(ip -f inet6 a s dev "$OVS_PHYSICAL_BRIDGE" | grep -c 'global') != 0 ]]; then
837+
# ip(8) wants the prefix length when deleting
838+
local v6_gateway
839+
v6_gateway=$(ip -6 a s dev $OVS_PHYSICAL_BRIDGE | grep $IPV6_PUBLIC_NETWORK_GATEWAY | awk '{ print $2 }')
840+
sudo ip -6 addr del $v6_gateway dev $OVS_PHYSICAL_BRIDGE
837841
_move_neutron_addresses_route "$OVS_PHYSICAL_BRIDGE" "$PUBLIC_INTERFACE" False "inet6"
838842
fi
839843

0 commit comments

Comments
 (0)