summaryrefslogtreecommitdiff
path: root/scripts/vyatta-gateway-static_route-check.pl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-11-21 17:05:20 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-11-21 17:05:20 -0800
commitea203872157e4b025f92999fe0c172df86ca0e55 (patch)
tree0549ec8122ab6c2b801e8fae3dc0d86d469a2052 /scripts/vyatta-gateway-static_route-check.pl
parent1e94772e482da91f3cd6c704563886a860d311fe (diff)
downloadvyatta-cfg-quagga-ea203872157e4b025f92999fe0c172df86ca0e55.tar.gz
vyatta-cfg-quagga-ea203872157e4b025f92999fe0c172df86ca0e55.zip
Convert to new Vyatta::Config hierarchy
Diffstat (limited to 'scripts/vyatta-gateway-static_route-check.pl')
-rw-r--r--scripts/vyatta-gateway-static_route-check.pl6
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");