diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-04-16 19:24:56 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-16 19:24:56 -0400 |
| commit | 2ff99507ad97fed3c2a0910605bd72524f497441 (patch) | |
| tree | bb013e5a0ce2068d41ef6497b66449a4a5921a16 /ospf6d/ospf6_interface.c | |
| parent | edf7eff0778fbde82932b11246d41c62773934ac (diff) | |
| parent | d1b221f696b4d3ed3cd7f5b0ae1f19a07f87fd80 (diff) | |
Merge pull request #6135 from opensourcerouting/cli-node-cleanup
*: clean up the mess that is CLI command nodes
Diffstat (limited to 'ospf6d/ospf6_interface.c')
| -rw-r--r-- | ospf6d/ospf6_interface.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 93265afc43..1209997514 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -1943,8 +1943,13 @@ static int config_write_ospf6_interface(struct vty *vty) return 0; } +static int config_write_ospf6_interface(struct vty *vty); static struct cmd_node interface_node = { - INTERFACE_NODE, "%s(config-if)# ", 1 /* VTYSH */ + .name = "interface", + .node = INTERFACE_NODE, + .parent_node = CONFIG_NODE, + .prompt = "%s(config-if)# ", + .config_write = config_write_ospf6_interface, }; static int ospf6_ifp_create(struct interface *ifp) @@ -2001,7 +2006,7 @@ static int ospf6_ifp_destroy(struct interface *ifp) void ospf6_interface_init(void) { /* Install interface node. */ - install_node(&interface_node, config_write_ospf6_interface); + install_node(&interface_node); if_cmd_init(); if_zapi_callbacks(ospf6_ifp_create, ospf6_ifp_up, ospf6_ifp_down, ospf6_ifp_destroy); |
