summaryrefslogtreecommitdiff
path: root/lib/vrf.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-06-22 14:32:01 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-08-28 16:23:50 +0200
commit723001fc13a87c5599933a727baf4a152f0e9f7e (patch)
tree71025f16eb0238363139a5d9a05eb72b2fc2f811 /lib/vrf.c
parentc200f5e1e44b5f929e72cc628d0aaaf644f6a26a (diff)
lib: autocomple vrf list authorises default vrf name
Now it is possible to dump default vrf information by its name. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/vrf.c')
-rw-r--r--lib/vrf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/vrf.c b/lib/vrf.c
index 8778d93f05..b7c5e5e9a6 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -447,10 +447,8 @@ static void vrf_autocomplete(vector comps, struct cmd_token *token)
{
struct vrf *vrf = NULL;
- 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));
}
static const struct cmd_variable_handler vrf_var_handlers[] = {