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 /zebra/zebra_vrf.c | |
parent | zebra: upon associating netns with vrf, prileges are raised (diff) | |
download | frr-3bc34908e86ee01f8eb4f8d39a4075c865d56370.tar.xz frr-3bc34908e86ee01f8eb4f8d39a4075c865d56370.zip |
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 'zebra/zebra_vrf.c')
-rw-r--r-- | zebra/zebra_vrf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/zebra_vrf.c b/zebra/zebra_vrf.c index 9e13f4ed6..64585c4c1 100644 --- a/zebra/zebra_vrf.c +++ b/zebra/zebra_vrf.c @@ -39,6 +39,7 @@ #include "zebra/interface.h" #include "zebra/zebra_mpls.h" #include "zebra/zebra_vxlan.h" +#include "zebra/zebra_netns_notify.h" extern struct zebra_t zebrad; @@ -587,5 +588,5 @@ void zebra_vrf_init(void) vrf_init(zebra_vrf_new, zebra_vrf_enable, zebra_vrf_disable, zebra_vrf_delete); - vrf_cmd_init(vrf_config_write); + vrf_cmd_init(vrf_config_write, &zserv_privs); } |