Fix typo in lvs-masquerade.sh

A typo in the lvs-masquerade script prevented the deletion of the
'ip6-udp-masq' nftables chain when stopping a network interface.

The name of the chain should be 'ip6-udp-masq' instead of 'ip-udp-masq'

The bug had no impacts on the loadbalancers but it displayed an error
message in the logs.

Change-Id: Iba07010b63771aafa1db224dbd0e0c97925d6173
(cherry picked from commit 55e6001ea4)
This commit is contained in:
Gregory Thiemonge 2022-08-19 17:28:34 +02:00
parent 5a225adf58
commit c014bb7b7e

View File

@ -88,10 +88,10 @@ elif [ "$1" == "delete" ]; then
nft flush chain ip octavia-ipv4 output
nft delete chain ip octavia-ipv4 output
elif [ "$2" == "ipv6" ]; then
nft flush chain ip6 octavia-ipv6 ip-udp-masq
nft delete chain ip6 octavia-ipv6 ip-udp-masq
nft flush chain ip6 octavia-ipv6 ip-sctp-masq
nft delete chain ip6 octavia-ipv6 ip-sctp-masq
nft flush chain ip6 octavia-ipv6 ip6-udp-masq
nft delete chain ip6 octavia-ipv6 ip6-udp-masq
nft flush chain ip6 octavia-ipv6 ip6-sctp-masq
nft delete chain ip6 octavia-ipv6 ip6-sctp-masq
nft flush chain ip6 octavia-ipv6 prerouting
nft delete chain ip6 octavia-ipv6 prerouting
nft flush chain ip6 octavia-ipv6 output