summaryrefslogtreecommitdiff
path: root/lib/vrf.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-04-28 10:02:35 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-05-02 13:17:06 -0400
commit6f16f5a01976f16ee0676b2435fc24382bcc29e9 (patch)
tree1e4001a39e82117b4e3bbad912f8833d2c1daee4 /lib/vrf.h
parentb9f1114e3875b7859acf21fe12643473c902a8c6 (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vrf.h b/lib/vrf.h
index b81873b0ff..dcc115563d 100644
--- a/lib/vrf.h
+++ b/lib/vrf.h
@@ -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; \