mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 23:58:44 +00:00
Revert "bgpd: update AS value of a hidden bgp instance"
This reverts commit 8e04277fff
.
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
This commit is contained in:
parent
4156757e40
commit
21ffe63d1d
13
bgpd/bgpd.c
13
bgpd/bgpd.c
@ -3404,15 +3404,13 @@ static struct bgp *bgp_create(as_t *as, const char *name,
|
|||||||
afi_t afi;
|
afi_t afi;
|
||||||
safi_t safi;
|
safi_t safi;
|
||||||
|
|
||||||
if (hidden)
|
if (hidden) {
|
||||||
bgp = bgp_old;
|
bgp = bgp_old;
|
||||||
else
|
goto peer_init;
|
||||||
|
}
|
||||||
|
|
||||||
bgp = XCALLOC(MTYPE_BGP, sizeof(struct bgp));
|
bgp = XCALLOC(MTYPE_BGP, sizeof(struct bgp));
|
||||||
|
|
||||||
bgp->as = *as;
|
bgp->as = *as;
|
||||||
|
|
||||||
if (bgp->as_pretty)
|
|
||||||
XFREE(MTYPE_BGP_NAME, bgp->as_pretty);
|
|
||||||
if (as_pretty)
|
if (as_pretty)
|
||||||
bgp->as_pretty = XSTRDUP(MTYPE_BGP_NAME, as_pretty);
|
bgp->as_pretty = XSTRDUP(MTYPE_BGP_NAME, as_pretty);
|
||||||
else
|
else
|
||||||
@ -3424,9 +3422,6 @@ static struct bgp *bgp_create(as_t *as, const char *name,
|
|||||||
} else
|
} else
|
||||||
asn_str2asn_notation(bgp->as_pretty, NULL, &bgp->asnotation);
|
asn_str2asn_notation(bgp->as_pretty, NULL, &bgp->asnotation);
|
||||||
|
|
||||||
if (hidden)
|
|
||||||
goto peer_init;
|
|
||||||
|
|
||||||
if (BGP_DEBUG(zebra, ZEBRA)) {
|
if (BGP_DEBUG(zebra, ZEBRA)) {
|
||||||
if (inst_type == BGP_INSTANCE_TYPE_DEFAULT)
|
if (inst_type == BGP_INSTANCE_TYPE_DEFAULT)
|
||||||
zlog_debug("Creating Default VRF, AS %s",
|
zlog_debug("Creating Default VRF, AS %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user