diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-10-30 18:17:38 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-10-30 18:17:38 -0700 |
commit | b83d5949749c5bceceefcd1dbe53fb5ee596089b (patch) | |
tree | 4242290f6dd0fa037e96ad88525b19166bd137ec | |
parent | c028dfaab14b558ddb73154710c664009567dddd (diff) | |
download | vyatta-nat-b83d5949749c5bceceefcd1dbe53fb5ee596089b.tar.gz vyatta-nat-b83d5949749c5bceceefcd1dbe53fb5ee596089b.zip |
fix for bug 3858: skip the PRE_SNAT_HOOK rule in stats output.
-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(); |