summaryrefslogtreecommitdiff
path: root/scripts/bgp
diff options
context:
space:
mode:
authorRobert Bays <robert@vyatta.com>2010-11-19 11:33:41 -0800
committerRobert Bays <robert@vyatta.com>2010-11-19 11:33:41 -0800
commit9f81e7e0e83f71277b2163889889be4905a6f22a (patch)
tree5a6e6ced38ebc9f7d6207fa08ab7fb639868a963 /scripts/bgp
parent60ced5aa011d3eb4bf426127ae6b35d9fe16b538 (diff)
downloadvyatta-cfg-quagga-9f81e7e0e83f71277b2163889889be4905a6f22a.tar.gz
vyatta-cfg-quagga-9f81e7e0e83f71277b2163889889be4905a6f22a.zip
update to use getIP
Diffstat (limited to 'scripts/bgp')
-rwxr-xr-xscripts/bgp/vyatta-bgp.pl3
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";