summaryrefslogtreecommitdiffstats
path: root/lib/zclient.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-05-17 22:20:29 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-06-02 19:43:15 +0200
commit1da29456213a3062206bc7646de169e32e9cc324 (patch)
tree93b397e9e6b56b23ee2ff429d5e73fafd4a17d71 /lib/zclient.c
parentMerge pull request #634 from dwalton76/bgp-ipv6-nexthop-ll-and-global-takeII (diff)
downloadfrr-1da29456213a3062206bc7646de169e32e9cc324.tar.xz
frr-1da29456213a3062206bc7646de169e32e9cc324.zip
lib, zebra: Pass up kernel table_id for vrf's
pim controls the vrf table creation for due to the way that pim must interact with the kernel. In order to match the table_id for unicast <-> multicast( not necessary but a real nice to have ) we need to pass up from zebra the table_id associated with the vrf. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/zclient.c')
-rw-r--r--lib/zclient.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index a53e8112c..b3a933892 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -1077,12 +1077,15 @@ zclient_vrf_add (struct zclient *zclient, vrf_id_t vrf_id)
{
struct vrf *vrf;
char vrfname_tmp[VRF_NAMSIZ];
+ struct vrf_data data;
+ stream_get (&data, zclient->ibuf, sizeof (struct vrf_data));
/* Read interface name. */
stream_get (vrfname_tmp, zclient->ibuf, VRF_NAMSIZ);
/* Lookup/create vrf by vrf_id. */
vrf = vrf_get (vrf_id, vrfname_tmp);
+ vrf->data = data;
vrf_enable (vrf);
}