summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-30 15:16:38 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-30 15:16:38 -0700
commit5312e84665a2a3596869e261ce9f6462f88505b2 (patch)
treea7690b08ac272edc512b2390ccd3aedde9c2ca10
parente13db37ad07d68f0fb5a25a53e69bb4a7cacdcdb (diff)
downloadvyatta-cfg-quagga-5312e84665a2a3596869e261ce9f6462f88505b2.tar.gz
vyatta-cfg-quagga-5312e84665a2a3596869e261ce9f6462f88505b2.zip
Fix error checking of remote-as
Logic error in earlier change
-rwxr-xr-xscripts/bgp/vyatta-bgp.pl2
1 files changed, 1 insertions, 1 deletions
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 );