mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-19 17:57:22 +01:00
New feature: generated script adds and removes CARP interfaces incrementally. This means it is not going to run ifconfig command to create carp interface if it is already there and will run "ifconfig carp1 destroy" command if interface carp1 has been removed in fwbuilder GUI to delete it on the firewall.
21 lines
507 B
Bash
Executable File
21 lines
507 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#XMLFILE="objects-for-regression-tests.fwb"
|
|
#fwbedit list -f $XMLFILE -o /User/Firewalls -c -F%name% | \
|
|
# sort | while read fwobj
|
|
#do
|
|
# echo "echo"
|
|
# echo "echo \"============================ $fwobj\""
|
|
# echo "fwb_pf -v -f $XMLFILE -xt $fwobj"
|
|
#done
|
|
|
|
XMLFILE="cluster-tests.fwb"
|
|
fwbedit list -f $XMLFILE -o /User/Clusters -c -F%name% | \
|
|
sort | while read fwobj
|
|
do
|
|
echo "echo"
|
|
echo "echo \"============================ $fwobj\""
|
|
echo "fwb_pf -v -f $XMLFILE -xt -xc $fwobj"
|
|
done
|
|
|