diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-06-22 14:32:35 +0200 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-08-28 16:23:50 +0200 |
| commit | 6a8ca00fa01c3368f536b122cbe608fc828a3642 (patch) | |
| tree | 43dfec1f8778bfd6547c448e3924866c5400b416 | |
| parent | 3ed78e8cff9d141ccd1f917566637d7bf3e4bb0d (diff) | |
bgpd: authorize default vrf name usage
Now it is possible to configure BGP default instance by using its
default vrf name.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
| -rw-r--r-- | bgpd/bgpd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 7ff5053ce3..5d258a765b 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -7735,10 +7735,8 @@ static void bgp_viewvrf_autocomplete(vector comps, struct cmd_token *token) struct listnode *next; struct bgp *bgp; - RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) { - if (vrf->vrf_id != VRF_DEFAULT) - vector_set(comps, XSTRDUP(MTYPE_COMPLETION, vrf->name)); - } + RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) + vector_set(comps, XSTRDUP(MTYPE_COMPLETION, vrf->name)); for (ALL_LIST_ELEMENTS_RO(bm->bgp, next, bgp)) { if (bgp->inst_type != BGP_INSTANCE_TYPE_VIEW) |
