diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2021-08-02 21:13:29 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-02 21:13:29 -0300 |
| commit | 488599bfa2dcb789ea8e7b702784d50222a927a8 (patch) | |
| tree | 3a247e6c085d910745b2dd707e4e570f77766ab5 /ospf6d/ospf6_interface.c | |
| parent | b22928a11757427bf29a0e498490bf5ddb349c04 (diff) | |
| parent | 9da01b0b7b6bc9a5cc129f850ff4f459ec33eb49 (diff) | |
Merge pull request #9232 from idryzhov/interface-node-cleanup
*: cleanup interface node installation
Diffstat (limited to 'ospf6d/ospf6_interface.c')
| -rw-r--r-- | ospf6d/ospf6_interface.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index ec672d8f3f..a169b9c60e 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -2584,15 +2584,6 @@ static int config_write_interface(struct vty *vty) return write; } -static int config_write_ospf6_interface(struct vty *vty, struct vrf *vrf); -static struct cmd_node interface_node = { - .name = "interface", - .node = INTERFACE_NODE, - .parent_node = CONFIG_NODE, - .prompt = "%s(config-if)# ", - .config_write = config_write_interface, -}; - static int ospf6_ifp_create(struct interface *ifp) { if (IS_OSPF6_DEBUG_ZEBRA(RECV)) @@ -2650,8 +2641,7 @@ static int ospf6_ifp_destroy(struct interface *ifp) void ospf6_interface_init(void) { /* Install interface node. */ - install_node(&interface_node); - if_cmd_init(); + if_cmd_init(config_write_interface); if_zapi_callbacks(ospf6_ifp_create, ospf6_ifp_up, ospf6_ifp_down, ospf6_ifp_destroy); |
