diff options
Diffstat (limited to 'scripts/vyatta-gateway-static_route-check.pl')
-rw-r--r-- | scripts/vyatta-gateway-static_route-check.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/vyatta-gateway-static_route-check.pl b/scripts/vyatta-gateway-static_route-check.pl index b90fca92..51de1604 100644 --- a/scripts/vyatta-gateway-static_route-check.pl +++ b/scripts/vyatta-gateway-static_route-check.pl @@ -33,12 +33,12 @@ use warnings; use lib "/opt/vyatta/share/perl5/"; use NetAddr::IP; -use VyattaConfig; +use Vyatta::Config; if (($#ARGV == 1) && ($ARGV[0] eq '0.0.0.0/0')) { # check when deleting static-route - my $vcCHECK_GATEWAY = new VyattaConfig(); + my $vcCHECK_GATEWAY = new Vyatta::Config(); $vcCHECK_GATEWAY->setLevel('system'); if ( $vcCHECK_GATEWAY->exists('.') ) { my $gateway_ip = $vcCHECK_GATEWAY->returnValue('gateway-address'); @@ -49,7 +49,7 @@ if (($#ARGV == 1) && ($ARGV[0] eq '0.0.0.0/0')) { } elsif ($#ARGV == 0) { # check when deleting gateway-address - my $vcCHECK_STATIC_ROUTE = new VyattaConfig(); + my $vcCHECK_STATIC_ROUTE = new Vyatta::Config(); $vcCHECK_STATIC_ROUTE->setLevel('protocols static'); if ( $vcCHECK_STATIC_ROUTE->exists('.') ) { my @routes = $vcCHECK_STATIC_ROUTE->listNodes("route"); |