summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@io.vyatta.com>2008-12-18 10:37:44 -0800
committerStig Thormodsrud <stig@io.vyatta.com>2008-12-18 10:37:44 -0800
commit5622567c46530f8294896a293fcf1da1de0a8dbe (patch)
tree68c6145bcac6ad0573b601f9818fbfa896b47122
parent80f2b135d64ef8c3ecd6553d0c830034e929765a (diff)
downloadvyatta-op-firewall-5622567c46530f8294896a293fcf1da1de0a8dbe.tar.gz
vyatta-op-firewall-5622567c46530f8294896a293fcf1da1de0a8dbe.zip
Fix 3882: ENH: Firewall: Indicate which firewall rulesets are not
applied to any interfaces in "show firewall" output
-rwxr-xr-xscripts/firewall/vyatta-show-firewall.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/firewall/vyatta-show-firewall.pl b/scripts/firewall/vyatta-show-firewall.pl
index 14fe591..ce0ebfd 100755
--- a/scripts/firewall/vyatta-show-firewall.pl
+++ b/scripts/firewall/vyatta-show-firewall.pl
@@ -64,6 +64,8 @@ sub show_interfaces {
}
if (scalar(@int_strs) > 0) {
print "\nActive on " . (join ' ', @int_strs) . "\n";
+ } else {
+ print "\nInactive: Not applied to any interfaces.\n";
}
}