diff options
author | Robert Bays <robert@vyatta.com> | 2010-11-19 11:33:41 -0800 |
---|---|---|
committer | Robert Bays <robert@vyatta.com> | 2010-11-19 11:33:41 -0800 |
commit | 9f81e7e0e83f71277b2163889889be4905a6f22a (patch) | |
tree | 5a6e6ced38ebc9f7d6207fa08ab7fb639868a963 /scripts/bgp | |
parent | 60ced5aa011d3eb4bf426127ae6b35d9fe16b538 (diff) | |
download | vyatta-cfg-quagga-9f81e7e0e83f71277b2163889889be4905a6f22a.tar.gz vyatta-cfg-quagga-9f81e7e0e83f71277b2163889889be4905a6f22a.zip |
update to use getIP
Diffstat (limited to 'scripts/bgp')
-rwxr-xr-x | scripts/bgp/vyatta-bgp.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl index 2b623bc0..20c248b5 100755 --- a/scripts/bgp/vyatta-bgp.pl +++ b/scripts/bgp/vyatta-bgp.pl @@ -1075,8 +1075,7 @@ sub check_neighbor_ip { my $neighbor = shift; my $local_ips; - $local_ips = `ip addr | grep inet`; - $local_ips =~ s/\s+inet(6*)\s(\S+)\/.+/$2 /g; + $local_ips = join( ' ', getIP() ); if ($local_ips =~ /$neighbor/g) { die "Can't set neighbor address to local system IP.\n"; |