Ticket: CM-7737
Reviewed-by: CCR-3611
Testing: See bug
When configuring a bgp peer that already has some config hung off of it,
such as 'interface v6only' and then configuring remote-as internal/external
will not cause the config to be taken.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
}
/* Existing peer's AS number change. */
- if (peer->as != *as)
+ if ((peer->as != *as) || (peer->as_type != as_type))
peer_as_change (peer, *as, as_type);
}
else
for (ALL_LIST_ELEMENTS (group->peer, node, nnode, peer))
{
- if (peer->as != *as)
+ if ((peer->as != *as) || (peer->as_type != as_type))
peer_as_change (peer, *as, as_type);
}