DEV-5029: Remove iptable and firewall reference from script. #4

Merged
jfunk merged 3 commits from DEV-5029-remove-iptables-and-firewall-check-from-migrate-script into master 2023-07-24 08:33:13 -03:00
Owner
No description provided.
manthan added 1 commit 2023-07-19 16:47:54 -03:00
jfunk requested changes 2023-07-20 08:27:03 -03:00
migrate Outdated
@ -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
Owner

Same here.

Same here.
manthan marked this conversation as resolved
@ -195,4 +195,2 @@
else
known_ips=/etc/firewall.d/known_ips
target_ip_present=false
target_ip=$(get_var target_ip)
Owner

We don't need this else clause at all now. We can skip the if entirely since the host will always be nftables now.

We don't need this else clause at all now. We can skip the if entirely since the host will always be nftables now.
manthan marked this conversation as resolved
manthan added 1 commit 2023-07-20 11:12:17 -03:00
jfunk requested changes 2023-07-21 07:08:34 -03:00
migrate Outdated
@ -192,19 +192,6 @@ function check_source() {
echo "ip saddr $(get_var target_ip) accept" > $nft_file
bondingadmin-nftables start
fi
else
Owner

Also the if which bondingadmin-nftables >/dev/null ; then and always do the stuff inside that clause since that's always the case now.

Also the `if which bondingadmin-nftables >/dev/null ; then` and always do the stuff inside that clause since that's always the case now.
manthan marked this conversation as resolved
manthan added 1 commit 2023-07-21 11:36:09 -03:00
jfunk merged commit ce3d75113e into master 2023-07-24 08:33:13 -03:00
jfunk deleted branch DEV-5029-remove-iptables-and-firewall-check-from-migrate-script 2023-07-24 08:33:13 -03:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Partner/bondingadmin-install#4
No description provided.