diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-03-13 15:26:03 +0100 | 
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-03-13 16:32:58 +0100 | 
| commit | 3bc34908e86ee01f8eb4f8d39a4075c865d56370 (patch) | |
| tree | 3726ca16f4f2f34b3b22f307fd0d3cadf9793dac /lib/vrf.h | |
| parent | 1c9d288e496d0fc20baeadd2e792e927a6f50312 (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.h | 3 | 
1 files changed, 2 insertions, 1 deletions
@@ -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   */  | 
