diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-04-02 15:04:37 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-04-02 15:04:37 -0700 |
commit | 69f910eb95116a9d9e4aec5844e14df029953163 (patch) | |
tree | 61ab00f00c09ddbe46c590f2023a93a3de863ded /scripts | |
parent | 73712ffe263d0f12cf6db914e9457509bc62f045 (diff) | |
parent | 30e1432faf2dfd1ec3ab78479355e08b262521e2 (diff) | |
download | vyatta-cfg-quagga-69f910eb95116a9d9e4aec5844e14df029953163.tar.gz vyatta-cfg-quagga-69f910eb95116a9d9e4aec5844e14df029953163.zip |
Merge branch 'jenner' of suva.vyatta.com:/git/vyatta-cfg-quagga into jenner
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bgp/vyatta-bgp.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl index 2609e381..610fb571 100755 --- a/scripts/bgp/vyatta-bgp.pl +++ b/scripts/bgp/vyatta-bgp.pl @@ -82,16 +82,17 @@ sub check_for_peer_groups { } } -# make sure nodes are either in a peer group of have +# make sure nodes are either in a peer group or have # a remote AS assigned to them. sub check_as { my ($neighbor, $as, $pg) = @_; die "neighbor not defined\n" unless $neighbor; - die "neighbor:$neighbor must be address\n" unless is_ip_v4_or_v6($neighbor); die "AS not defined\n" unless $as; # if this is peer-group then short circuit this + return if ! is_ip_v4_or_v6($neighbor); + my $config = new Vyatta::Config; $config->setLevel("protocols bgp $as neighbor $neighbor"); my $remoteas = $config->returnValue("remote-as"); |