From b83d5949749c5bceceefcd1dbe53fb5ee596089b Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 30 Oct 2008 18:17:38 -0700 Subject: fix for bug 3858: skip the PRE_SNAT_HOOK rule in stats output. --- scripts/vyatta-show-nat.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/vyatta-show-nat.pl') 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 "\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(); -- cgit v1.2.3