summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-nat.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-show-nat.pl')
-rwxr-xr-xscripts/vyatta-show-nat.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/vyatta-show-nat.pl b/scripts/vyatta-show-nat.pl
index c933e05..574c995 100755
--- a/scripts/vyatta-show-nat.pl
+++ b/scripts/vyatta-show-nat.pl
@@ -53,6 +53,7 @@ my @rules = sort numerically @rules_pre;
for $rule (@rules) {
my $nrule = new Vyatta::NatRule;
$nrule->setupOrig("service nat rule $rule");
+ next if defined $nrule->{_disable};
my $ntype = $nrule->orig_type();
print RENDER " <row>\n";
print RENDER " <rule_num>$rule</rule_num>\n";