From feacd08edaa7a538812e904f5d1e5b83cb66c75f Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 21 Nov 2008 17:06:29 -0800 Subject: Convert to Vyatta:: --- scripts/vyatta-show-nat.pl | 4 ++-- scripts/vyatta-update-nat.pl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/vyatta-show-nat.pl b/scripts/vyatta-show-nat.pl index 8abce6d..7df9e4a 100755 --- a/scripts/vyatta-show-nat.pl +++ b/scripts/vyatta-show-nat.pl @@ -2,7 +2,7 @@ use strict; use lib "/opt/vyatta/share/perl5"; -use VyattaConfig; +use Vyatta::Config; use Vyatta::NatRule; sub numerically { $a <=> $b; } @@ -45,7 +45,7 @@ print RENDER "\n"; # get rid of the stats for PRE_SNAT_HOOK splice @{$stats{'source'}}, 0, 2; -my $config = new VyattaConfig; +my $config = new Vyatta::Config; $config->setLevel("service nat rule"); my @rules_pre = $config->listOrigNodes(); my $rule; diff --git a/scripts/vyatta-update-nat.pl b/scripts/vyatta-update-nat.pl index 9842309..e0f059e 100755 --- a/scripts/vyatta-update-nat.pl +++ b/scripts/vyatta-update-nat.pl @@ -2,7 +2,7 @@ use strict; use lib "/opt/vyatta/share/perl5/"; -use VyattaConfig; +use Vyatta::Config; use Vyatta::NatRule; sub numerically { $a <=> $b; } @@ -24,7 +24,7 @@ sub raw_cleanup { } } -my $config = new VyattaConfig; +my $config = new Vyatta::Config; $config->setLevel("service nat rule"); my %rules = $config->listNodeStatus(); my $rule; -- cgit v1.2.3