diff options
-rwxr-xr-x | scripts/vyatta-show-nat.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/vyatta-show-nat.pl b/scripts/vyatta-show-nat.pl index 4837840..2d3c773 100755 --- a/scripts/vyatta-show-nat.pl +++ b/scripts/vyatta-show-nat.pl @@ -42,6 +42,9 @@ open(RENDER, "| /opt/vyatta/sbin/render_xml $xsl_file") or exit 1; # begin print RENDER "<opcommand name='natrules'><format type='row'>\n"; +# get rid of the stats for PRE_SNAT_HOOK +splice @{$stats{'source'}}, 0, 2; + my $config = new VyattaConfig; $config->setLevel("service nat rule"); my @rules_pre = $config->listOrigNodes(); |