diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-04-28 10:02:35 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-05-02 13:17:06 -0400 |
| commit | 6f16f5a01976f16ee0676b2435fc24382bcc29e9 (patch) | |
| tree | 1e4001a39e82117b4e3bbad912f8833d2c1daee4 /lib/vrf.h | |
| parent | b9f1114e3875b7859acf21fe12643473c902a8c6 (diff) | |
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>
Diffstat (limited to 'lib/vrf.h')
| -rw-r--r-- | lib/vrf.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; \ |
