|
|
| version 1.1.1.1, 2012/02/21 17:26:12 | version 1.1.1.2, 2012/10/09 09:22:29 |
|---|---|
| Line 58 struct vtysh_client | Line 58 struct vtysh_client |
| { .fd = -1, .name = "ospf6d", .flag = VTYSH_OSPF6D, .path = OSPF6_VTYSH_PATH}, | { .fd = -1, .name = "ospf6d", .flag = VTYSH_OSPF6D, .path = OSPF6_VTYSH_PATH}, |
| { .fd = -1, .name = "bgpd", .flag = VTYSH_BGPD, .path = BGP_VTYSH_PATH}, | { .fd = -1, .name = "bgpd", .flag = VTYSH_BGPD, .path = BGP_VTYSH_PATH}, |
| { .fd = -1, .name = "isisd", .flag = VTYSH_ISISD, .path = ISIS_VTYSH_PATH}, | { .fd = -1, .name = "isisd", .flag = VTYSH_ISISD, .path = ISIS_VTYSH_PATH}, |
| { .fd = -1, .name = "babeld", .flag = VTYSH_BABELD, .path = BABEL_VTYSH_PATH}, | |
| }; | }; |
| #define VTYSH_INDEX_MAX (sizeof(vtysh_client)/sizeof(vtysh_client[0])) | #define VTYSH_INDEX_MAX (sizeof(vtysh_client)/sizeof(vtysh_client[0])) |
| Line 797 static struct cmd_node ospf6_node = | Line 798 static struct cmd_node ospf6_node = |
| "%s(config-ospf6)# " | "%s(config-ospf6)# " |
| }; | }; |
| static struct cmd_node babel_node = | |
| { | |
| BABEL_NODE, | |
| "%s(config-babel)# " | |
| }; | |
| static struct cmd_node keychain_node = | static struct cmd_node keychain_node = |
| { | { |
| KEYCHAIN_NODE, | KEYCHAIN_NODE, |
| Line 1009 DEFUNSH (VTYSH_OSPF6D, | Line 1016 DEFUNSH (VTYSH_OSPF6D, |
| return CMD_SUCCESS; | return CMD_SUCCESS; |
| } | } |
| DEFUNSH (VTYSH_BABELD, | |
| router_babel, | |
| router_babel_cmd, | |
| "router babel", | |
| ROUTER_STR | |
| "Babel") | |
| { | |
| vty->node = BABEL_NODE; | |
| return CMD_SUCCESS; | |
| } | |
| DEFUNSH (VTYSH_ISISD, | DEFUNSH (VTYSH_ISISD, |
| router_isis, | router_isis, |
| router_isis_cmd, | router_isis_cmd, |
| Line 1097 vtysh_exit (struct vty *vty) | Line 1115 vtysh_exit (struct vty *vty) |
| case RIPNG_NODE: | case RIPNG_NODE: |
| case OSPF_NODE: | case OSPF_NODE: |
| case OSPF6_NODE: | case OSPF6_NODE: |
| case BABEL_NODE: | |
| case ISIS_NODE: | case ISIS_NODE: |
| case MASC_NODE: | case MASC_NODE: |
| case RMAP_NODE: | case RMAP_NODE: |
| Line 2252 vtysh_init_vty (void) | Line 2271 vtysh_init_vty (void) |
| install_node (&ripng_node, NULL); | install_node (&ripng_node, NULL); |
| install_node (&ospf6_node, NULL); | install_node (&ospf6_node, NULL); |
| /* #endif */ | /* #endif */ |
| install_node (&babel_node, NULL); | |
| install_node (&keychain_node, NULL); | install_node (&keychain_node, NULL); |
| install_node (&keychain_key_node, NULL); | install_node (&keychain_key_node, NULL); |
| install_node (&isis_node, NULL); | install_node (&isis_node, NULL); |
| Line 2273 vtysh_init_vty (void) | Line 2293 vtysh_init_vty (void) |
| vtysh_install_default (OSPF_NODE); | vtysh_install_default (OSPF_NODE); |
| vtysh_install_default (RIPNG_NODE); | vtysh_install_default (RIPNG_NODE); |
| vtysh_install_default (OSPF6_NODE); | vtysh_install_default (OSPF6_NODE); |
| vtysh_install_default (BABEL_NODE); | |
| vtysh_install_default (ISIS_NODE); | vtysh_install_default (ISIS_NODE); |
| vtysh_install_default (KEYCHAIN_NODE); | vtysh_install_default (KEYCHAIN_NODE); |
| vtysh_install_default (KEYCHAIN_KEY_NODE); | vtysh_install_default (KEYCHAIN_KEY_NODE); |
| Line 2327 vtysh_init_vty (void) | Line 2348 vtysh_init_vty (void) |
| install_element (RIPNG_NODE, &vtysh_end_all_cmd); | install_element (RIPNG_NODE, &vtysh_end_all_cmd); |
| install_element (OSPF_NODE, &vtysh_end_all_cmd); | install_element (OSPF_NODE, &vtysh_end_all_cmd); |
| install_element (OSPF6_NODE, &vtysh_end_all_cmd); | install_element (OSPF6_NODE, &vtysh_end_all_cmd); |
| install_element (BABEL_NODE, &vtysh_end_all_cmd); | |
| install_element (BGP_NODE, &vtysh_end_all_cmd); | install_element (BGP_NODE, &vtysh_end_all_cmd); |
| install_element (BGP_IPV4_NODE, &vtysh_end_all_cmd); | install_element (BGP_IPV4_NODE, &vtysh_end_all_cmd); |
| install_element (BGP_IPV4M_NODE, &vtysh_end_all_cmd); | install_element (BGP_IPV4M_NODE, &vtysh_end_all_cmd); |
| Line 2352 vtysh_init_vty (void) | Line 2374 vtysh_init_vty (void) |
| #ifdef HAVE_IPV6 | #ifdef HAVE_IPV6 |
| install_element (CONFIG_NODE, &router_ospf6_cmd); | install_element (CONFIG_NODE, &router_ospf6_cmd); |
| #endif | #endif |
| install_element (CONFIG_NODE, &router_babel_cmd); | |
| install_element (CONFIG_NODE, &router_isis_cmd); | install_element (CONFIG_NODE, &router_isis_cmd); |
| install_element (CONFIG_NODE, &router_bgp_cmd); | install_element (CONFIG_NODE, &router_bgp_cmd); |
| install_element (CONFIG_NODE, &router_bgp_view_cmd); | install_element (CONFIG_NODE, &router_bgp_view_cmd); |