From 5312e84665a2a3596869e261ce9f6462f88505b2 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 30 Mar 2009 15:16:38 -0700 Subject: Fix error checking of remote-as Logic error in earlier change --- scripts/bgp/vyatta-bgp.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl index 3306654c..f6ae9e72 100755 --- a/scripts/bgp/vyatta-bgp.pl +++ b/scripts/bgp/vyatta-bgp.pl @@ -99,7 +99,7 @@ sub check_as { $config->setLevel("protocols bgp $as neighbor $neighbor"); my $remoteas = $config->returnValue("remote-as"); - return unless $remoteas; + return if defined $remoteas; return if ( $pg > 0 ); -- cgit v1.2.3