summaryrefslogtreecommitdiff
path: root/scripts/bgp/vyatta-bgp.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bgp/vyatta-bgp.pl')
-rwxr-xr-xscripts/bgp/vyatta-bgp.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl
index d97a3e69..a91d16e5 100755
--- a/scripts/bgp/vyatta-bgp.pl
+++ b/scripts/bgp/vyatta-bgp.pl
@@ -1304,7 +1304,8 @@ sub check_for_iBGP_ASN {
my $config = new Vyatta::Config;
$config->setLevel("protocols bgp $as");
- my @neighbors = $config->listNodes('neighbor');
+ #my @neighbors = $config->listNodes('neighbor');
+ my @neighbors = $config->listOrigNodes('neighbor');
foreach $neighbor (@neighbors) {
my $remoteas = $config->returnValue("neighbor $neighbor remote-as");
if ("$testas" eq "$remoteas") {