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 a26501e0..291113eb 100755
--- a/scripts/bgp/vyatta-bgp.pl
+++ b/scripts/bgp/vyatta-bgp.pl
@@ -1243,7 +1243,8 @@ sub bgp_type_change {
# check if changing from iBGP to eBGP
if ( (iBGP_peer(1, $neighbor, $as, $ntype)) && (! iBGP_peer(0, $neighbor, $as, $ntype)) ) {
- if ($config->exists("$as $ntype $neighbor route-reflector-client")) {
+ if ( $config->exists("$as $ntype $neighbor route-reflector-client") ||
+ $config->exists("$as $ntype $neighbor address-family ipv6-unicast route-reflector-client") ) {
return "can not set route-reflector-client and an eBGP remote-as at the same time\n";
}
}