mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 16:39:33 +00:00
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>
This commit is contained in:
parent
c200f5e1e4
commit
723001fc13
@ -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[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user