summaryrefslogtreecommitdiff
path: root/lib/vrf.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-03-13 15:26:03 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-03-13 16:32:58 +0100
commit3bc34908e86ee01f8eb4f8d39a4075c865d56370 (patch)
tree3726ca16f4f2f34b3b22f307fd0d3cadf9793dac /lib/vrf.h
parent1c9d288e496d0fc20baeadd2e792e927a6f50312 (diff)
lib: privileges are granted to vty netns command
Vty commands that link netns context to a vrf is requiring some privileges. The change consists in retrieving the privileges at the vrf_cmd_init() called by the relevant daemon. Then use it. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/vrf.h')
-rw-r--r--lib/vrf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vrf.h b/lib/vrf.h
index 6482740aa1..617405a77e 100644
--- a/lib/vrf.h
+++ b/lib/vrf.h
@@ -242,7 +242,8 @@ extern int vrf_switchback_to_initial(void);
/* VRF vty command initialisation
*/
-extern void vrf_cmd_init(int (*writefunc)(struct vty *vty));
+extern void vrf_cmd_init(int (*writefunc)(struct vty *vty),
+ struct zebra_privs_t *daemon_priv);
/* VRF vty debugging
*/