diff options
author | rbalocca <rbalocca@vyatta.com> | 2008-03-14 14:44:16 -0700 |
---|---|---|
committer | rbalocca <rbalocca@vyatta.com> | 2008-03-14 14:44:16 -0700 |
commit | e3b1e82cc2f5183993e7136bbf452b041e7055a6 (patch) | |
tree | dc67261e17b88786fece199d9c6cd5b973637416 /scripts/bgp | |
parent | 0127c333b2634ba2833569e7ce546c898312bd99 (diff) | |
parent | 8d008f9f2cbbd80a54d30e94c1b7daa3d1c172f7 (diff) | |
download | vyatta-cfg-quagga-e3b1e82cc2f5183993e7136bbf452b041e7055a6.tar.gz vyatta-cfg-quagga-e3b1e82cc2f5183993e7136bbf452b041e7055a6.zip |
Merge branch 'glendale' into hollywood
Diffstat (limited to 'scripts/bgp')
-rwxr-xr-x | scripts/bgp/vyatta-bgp.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl index 059ce1a5..d0f9c94c 100755 --- a/scripts/bgp/vyatta-bgp.pl +++ b/scripts/bgp/vyatta-bgp.pl @@ -36,6 +36,13 @@ sub check_peer_name() { print "malformed neighbor address $neighbor\n"; exit 1; } + + # Quagga treats the first byte as a potential IPv6 address + # so we can't use it as a peer group name. So let's check for it. + if (/^[A-Fa-f]{1,4}$/) { + print "malformed neighbor address $neighbor\n"; + exit 1; + } } # Make sure we aren't deleteing a peer-group that has |