From 1da29456213a3062206bc7646de169e32e9cc324 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 17 May 2017 16:20:29 -0400 Subject: 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 --- lib/zclient.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/zclient.c') diff --git a/lib/zclient.c b/lib/zclient.c index a53e8112c8..b3a9338928 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); } -- cgit v1.2.3