summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@io.vyatta.com>2008-12-22 15:53:28 -0800
committerStig Thormodsrud <stig@io.vyatta.com>2008-12-22 15:53:28 -0800
commite002551ca9e86e6f6f877fa4cbd46f5a36a8144f (patch)
treee995eaefbfc68955f9478063550d71bef9013cbc
parent5622567c46530f8294896a293fcf1da1de0a8dbe (diff)
downloadvyatta-op-firewall-e002551ca9e86e6f6f877fa4cbd46f5a36a8144f.tar.gz
vyatta-op-firewall-e002551ca9e86e6f6f877fa4cbd46f5a36a8144f.zip
Fix 2563: Add firewall-rule specific disable configuration parameter.
-rwxr-xr-xscripts/firewall/vyatta-show-firewall.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/firewall/vyatta-show-firewall.pl b/scripts/firewall/vyatta-show-firewall.pl
index ce0ebfd..d693914 100755
--- a/scripts/firewall/vyatta-show-firewall.pl
+++ b/scripts/firewall/vyatta-show-firewall.pl
@@ -105,6 +105,7 @@ sub show_chain {
if (defined($rule_num) && $rule_num != $_) {
next;
}
+ next if $rule->is_disabled();
print $fh " <row>\n";
print $fh " <rule_number>$_</rule_number>\n";
print $fh " <pkts>$pkts</pkts>\n";