DEV-5029: Remove iptable and firewall reference from script. #4
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "DEV-5029-remove-iptables-and-firewall-check-from-migrate-script"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -571,10 +560,7 @@ function action_target_post() {
if -f /usr/sbin/bondingadmin-nftables ; then
echo -e "Restarting nftables service"
systemctl restart bondingadmin-nftables
else
Same here.
@ -195,4 +195,2 @@
else
known_ips=/etc/firewall.d/known_ips
target_ip_present=false
target_ip=$(get_var target_ip)
We don't need this else clause at all now. We can skip the if entirely since the host will always be nftables now.
@ -192,19 +192,6 @@ function check_source() {
echo "ip saddr $(get_var target_ip) accept" > $nft_file
bondingadmin-nftables start
fi
else
Also the
if which bondingadmin-nftables >/dev/null ; then
and always do the stuff inside that clause since that's always the case now.