diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-02-01 10:55:42 -0800 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-02-01 10:55:42 -0800 |
| commit | 12f6fb97311c58742f305ef240f918aa5d57fa79 (patch) | |
| tree | 47ba71dd454d8c1d7a110845f5a2743428d20d26 /zebra/kernel_socket.c | |
| parent | 244a59d22809d9a4a3bc555764e71aa4aff299bf (diff) | |
lib, zebra: The Bulk of the conversion over to NS and VRF
Convert the rest of zebra over to use a Namespae and VRF.
Signed-off-by: Vipin Kumar <vipin@cumulusnetworks.com>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/kernel_socket.c')
| -rw-r--r-- | zebra/kernel_socket.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index a7179ff4b8..028109cb2c 100644 --- a/zebra/kernel_socket.c +++ b/zebra/kernel_socket.c @@ -1263,11 +1263,8 @@ kernel_read (struct thread *thread) /* Make routing socket. */ static void -routing_socket (struct zebra_vrf *zvrf) +routing_socket (struct zebra_ns *zns) { - if (zvrf->vrf_id != VRF_DEFAULT) - return; - if ( zserv_privs.change (ZPRIVS_RAISE) ) zlog_err ("routing_socket: Can't raise privileges"); @@ -1298,13 +1295,13 @@ routing_socket (struct zebra_vrf *zvrf) /* Exported interface function. This function simply calls routing_socket (). */ void -kernel_init (struct zebra_vrf *zvrf) +kernel_init (struct zebra_ns *zns) { - routing_socket (zvrf); + routing_socket (zns); } void -kernel_terminate (struct zebra_vrf *zvrf) +kernel_terminate (struct zebra_ns *zns) { return; } |
