diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2025-02-06 11:09:25 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2025-02-06 11:09:25 +0200 |
| commit | 2ba76022509ed7e0d553dd3cf07515e57e092b40 (patch) | |
| tree | 51db26b115fe2807d1b767cd451dbd8729f9805f /bgpd | |
| parent | a61d808da7092dcc734ba6b5e0c7a1acbef9fa90 (diff) | |
Revert "bgpd: fix duplicate BGP instance created with unified config"
This reverts commit 3abd84ef5be1ef56b66f0e7617f8afab6da6c5cc.
Diffstat (limited to 'bgpd')
| -rw-r--r-- | bgpd/bgpd.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 17a34dbacb..a984c5af87 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -3623,13 +3623,13 @@ struct bgp *bgp_lookup(as_t as, const char *name) } /* Lookup BGP structure by view name. */ -struct bgp *bgp_lookup_by_name_filter(const char *name, bool filter_auto) +struct bgp *bgp_lookup_by_name(const char *name) { struct bgp *bgp; struct listnode *node, *nnode; for (ALL_LIST_ELEMENTS(bm->bgp, node, nnode, bgp)) { - if (filter_auto && CHECK_FLAG(bgp->vrf_flags, BGP_VRF_AUTO)) + if (CHECK_FLAG(bgp->vrf_flags, BGP_VRF_AUTO)) continue; if ((bgp->name == NULL && name == NULL) || (bgp->name && name && strcmp(bgp->name, name) == 0)) @@ -3638,11 +3638,6 @@ struct bgp *bgp_lookup_by_name_filter(const char *name, bool filter_auto) return NULL; } -struct bgp *bgp_lookup_by_name(const char *name) -{ - return bgp_lookup_by_name_filter(name, true); -} - /* Lookup BGP instance based on VRF id. */ /* Note: Only to be used for incoming messages from Zebra. */ struct bgp *bgp_lookup_by_vrf_id(vrf_id_t vrf_id) |
