summaryrefslogtreecommitdiffstats
path: root/lib/zclient.c
diff options
context:
space:
mode:
authorDon Slice <dslice@cumulusnetworks.com>2016-02-10 18:53:21 +0100
committerDon Slice <dslice@cumulusnetworks.com>2016-02-10 22:01:16 +0100
commit85f9da7f786a8f8d922e254b3a6159068f50b9f6 (patch)
tree0ef60c189f8c3b2e1f174ce9c88983f5c6b43d95 /lib/zclient.c
parentzebra: display_vrf_name_on_interface (diff)
downloadfrr-85f9da7f786a8f8d922e254b3a6159068f50b9f6.tar.xz
frr-85f9da7f786a8f8d922e254b3a6159068f50b9f6.zip
zebra: fix interface lookup for vrf configuration
Ticket:CM-9073 Reviewed By: sharpd Testing Done:Manual, see ticket Changed logic when "interface swpxx <vrf foo>" entered so that: 1. it matches when the command is entered without a vrf but the interface already exists in a vrf. 2. If the command is entered with a vrf name that is different than is defined by the kernel, the command is rejected. 3. If the call is made from other than the vty session, believe the new information and update the vrf accordingly.
Diffstat (limited to 'lib/zclient.c')
-rw-r--r--lib/zclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index 42a965939..21d925306 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -902,7 +902,7 @@ zebra_interface_add_read (struct stream *s, vrf_id_t vrf_id)
/* Lookup/create interface by name. */
ifp = if_get_by_name_len_vrf (ifname_tmp,
strnlen (ifname_tmp, INTERFACE_NAMSIZ),
- vrf_id);
+ vrf_id, 0);
zebra_interface_if_set_value (s, ifp);