From 8d9ec84d04cb2d37824639573d0509adfbf19c53 Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 7 Feb 2003 14:29:19 +0000 Subject: Import of Zebra CVS 20030207-14:26 --- bgpd/bgpd.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bgpd/bgpd.c') diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index f116a0cf..53263637 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -797,6 +797,13 @@ peer_as_change (struct peer *peer, as_t as) type = peer_sort (peer); peer->as = as; + if (bgp_config_check (peer->bgp, BGP_CONFIG_CONFEDERATION) + && ! bgp_confederation_peers_check (peer->bgp, as) + && peer->bgp->as != as) + peer->local_as = peer->bgp->confed_id; + else + peer->local_as = peer->bgp->as; + /* Advertisement-interval reset */ if (peer_sort (peer) == BGP_PEER_IBGP) peer->v_routeadv = BGP_DEFAULT_IBGP_ROUTEADV; -- cgit v1.2.3