From 55e6001ea4db3e30dd3dec2b8b2bfb2d9b1ac103 Mon Sep 17 00:00:00 2001 From: Gregory Thiemonge Date: Fri, 19 Aug 2022 17:28:34 +0200 Subject: [PATCH] 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 --- .../amphora-agent/static/usr/local/bin/lvs-masquerade.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/elements/amphora-agent/static/usr/local/bin/lvs-masquerade.sh b/elements/amphora-agent/static/usr/local/bin/lvs-masquerade.sh index 91a7e5bca9..8e26a6a56b 100755 --- a/elements/amphora-agent/static/usr/local/bin/lvs-masquerade.sh +++ b/elements/amphora-agent/static/usr/local/bin/lvs-masquerade.sh @@ -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