install_element(BABEL_NODE, &babel_ipv6_distribute_list_cmd);
install_element(BABEL_NODE, &babel_no_ipv6_distribute_list_cmd);
- vrf_cmd_init(NULL, &babeld_privs);
+ vrf_cmd_init(NULL);
babel_if_init();
install_element(EIGRP_NODE, &eigrp_neighbor_cmd);
install_element(EIGRP_NODE, &eigrp_redistribute_source_metric_cmd);
- vrf_cmd_init(NULL, &eigrpd_privs);
+ vrf_cmd_init(NULL);
if_cmd_init(eigrp_write_interface);
vrf_init(isis_vrf_new, isis_vrf_enable, isis_vrf_disable,
isis_vrf_delete, isis_vrf_enable);
- vrf_cmd_init(NULL, &isisd_privs);
+ vrf_cmd_init(NULL);
}
void isis_terminate()
install_element(ENABLE_NODE, &no_vrf_debug_cmd);
}
-void vrf_cmd_init(int (*writefunc)(struct vty *vty),
- struct zebra_privs_t *daemon_privs)
+void vrf_cmd_init(int (*writefunc)(struct vty *vty))
{
install_element(CONFIG_NODE, &vrf_cmd);
install_element(CONFIG_NODE, &no_vrf_cmd);
/* VRF vty command initialisation
*/
-extern void vrf_cmd_init(int (*writefunc)(struct vty *vty),
- struct zebra_privs_t *daemon_priv);
+extern void vrf_cmd_init(int (*writefunc)(struct vty *vty));
/* VRF vty debugging
*/
install_element(CONFIG_NODE, &nhrp_multicast_nflog_group_cmd);
install_element(CONFIG_NODE, &no_nhrp_multicast_nflog_group_cmd);
- vrf_cmd_init(NULL, &nhrpd_privs);
+ vrf_cmd_init(NULL);
/* interface specific commands */
if_cmd_init(interface_config_write);
vrf_init(ospf6_vrf_new, ospf6_vrf_enable, ospf6_vrf_disable,
ospf6_vrf_delete, ospf6_vrf_enable);
- vrf_cmd_init(NULL, &ospf6d_privs);
+ vrf_cmd_init(NULL);
}
static void ospf6_top_lsdb_hook_add(struct ospf6_lsa *lsa)
install_element(OSPF_NODE, &ospf_max_multipath_cmd);
install_element(OSPF_NODE, &no_ospf_max_multipath_cmd);
- vrf_cmd_init(NULL, &ospfd_privs);
+ vrf_cmd_init(NULL);
/* Init interface related vty commands. */
ospf_vty_if_init();
{
cmd_variable_handler_register(pbr_map_name);
- vrf_cmd_init(NULL, &pbr_privs);
+ vrf_cmd_init(NULL);
if_cmd_init(pbr_interface_config_write);
vrf_init(pim_vrf_new, pim_vrf_enable, pim_vrf_disable,
pim_vrf_delete, NULL);
- vrf_cmd_init(pim_vrf_config_write, &pimd_privs);
+ vrf_cmd_init(pim_vrf_config_write);
}
void pim_vrf_terminate(void)
vrf_init(rip_vrf_new, rip_vrf_enable, rip_vrf_disable, rip_vrf_delete,
rip_vrf_enable);
- vrf_cmd_init(NULL, &ripd_privs);
+ vrf_cmd_init(NULL);
}
void rip_vrf_terminate(void)
vrf_init(ripng_vrf_new, ripng_vrf_enable, ripng_vrf_disable,
ripng_vrf_delete, ripng_vrf_enable);
- vrf_cmd_init(NULL, &ripngd_privs);
+ vrf_cmd_init(NULL);
}
void ripng_vrf_terminate(void)
vrf_init(static_vrf_new, static_vrf_enable,
static_vrf_disable, static_vrf_delete, NULL);
- vrf_cmd_init(static_vrf_config_write, &static_privs);
+ vrf_cmd_init(static_vrf_config_write);
}
void static_vrf_terminate(void)
{
install_node(&debug_node);
install_node(&vrrp_node);
- vrf_cmd_init(NULL, &vrrp_privs);
+ vrf_cmd_init(NULL);
if_cmd_init(vrrp_config_write_interface);
install_element(VIEW_NODE, &vrrp_vrid_show_cmd);
vrf_init(zebra_vrf_new, zebra_vrf_enable, zebra_vrf_disable,
zebra_vrf_delete, zebra_vrf_update);
- vrf_cmd_init(vrf_config_write, &zserv_privs);
+ vrf_cmd_init(vrf_config_write);
if (vrf_is_backend_netns() && ns_have_netns()) {
/* Install NS commands. */