mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-30 20:21:02 +00:00
lib: VRF_GET_ID should respect VRF_UNKNOWN
The VRF_GET_ID macro should respect the VRF_UNKNOWN as a notice that the vrf is not active. Signed-off-by: Don Slice <dslice@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
b9f1114e38
commit
6f16f5a019
@ -123,7 +123,7 @@ extern vrf_id_t vrf_name_to_id (const char *);
|
||||
vty_out (vty, "%% VRF %s not found%s", NAME, VTY_NEWLINE);\
|
||||
return CMD_WARNING; \
|
||||
} \
|
||||
if (!vrf->vrf_id) \
|
||||
if (vrf->vrf_id == VRF_UNKNOWN) \
|
||||
{ \
|
||||
vty_out (vty, "%% VRF %s not active%s", NAME, VTY_NEWLINE);\
|
||||
return CMD_WARNING; \
|
||||
|
Loading…
Reference in New Issue
Block a user