summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh.c
diff options
context:
space:
mode:
authorpaul <paul>2003-03-25 02:37:13 +0000
committerpaul <paul>2003-03-25 02:37:13 +0000
commitf7ccadc4a079d585770cb5fc6add832d4384facc (patch)
treec2c96f7405c46112eb3d8f6efcc693e040bc222b /vtysh/vtysh.c
parent139c7c96b474a90aa3685b7efb8f23b550be1ff1 (diff)
downloadquagga-zebra.org.20030325.tar.bz2
quagga-zebra.org.20030325.tar.xz
Import of Zebra CVS 20030325-02:30zebra.org.20030325
Diffstat (limited to 'vtysh/vtysh.c')
-rw-r--r--vtysh/vtysh.c40
1 files changed, 36 insertions, 4 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 965eb392..eca9a0a1 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -1081,6 +1081,20 @@ ALIAS (vtysh_exit_ripd,
"quit",
"Exit current mode and down to previous mode\n")
+DEFUNSH (VTYSH_RIPNGD,
+ vtysh_exit_ripngd,
+ vtysh_exit_ripngd_cmd,
+ "exit",
+ "Exit current mode and down to previous mode\n")
+{
+ return vtysh_exit (vty);
+}
+
+ALIAS (vtysh_exit_ripngd,
+ vtysh_quit_ripngd_cmd,
+ "quit",
+ "Exit current mode and down to previous mode\n")
+
DEFUNSH (VTYSH_RMAP,
vtysh_exit_rmap,
vtysh_exit_rmap_cmd,
@@ -1123,7 +1137,21 @@ ALIAS (vtysh_exit_ospfd,
"quit",
"Exit current mode and down to previous mode\n")
-DEFUNSH (VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_OSPFD,
+DEFUNSH (VTYSH_OSPF6D,
+ vtysh_exit_ospf6d,
+ vtysh_exit_ospf6d_cmd,
+ "exit",
+ "Exit current mode and down to previous mode\n")
+{
+ return vtysh_exit (vty);
+}
+
+ALIAS (vtysh_exit_ospf6d,
+ vtysh_quit_ospf6d_cmd,
+ "quit",
+ "Exit current mode and down to previous mode\n")
+
+DEFUNSH (VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_OSPFD|VTYSH_OSPF6D,
vtysh_interface,
vtysh_interface_cmd,
"interface IFNAME",
@@ -1149,7 +1177,7 @@ DEFSH (VTYSH_RMAP,
"Metric value for destination routing protocol\n"
"Metric value\n")
-DEFUNSH (VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_OSPFD,
+DEFUNSH (VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_OSPFD|VTYSH_OSPF6D,
vtysh_exit_interface,
vtysh_exit_interface_cmd,
"exit",
@@ -1572,7 +1600,7 @@ vtysh_connect_all()
/* To disable readline's filename completion */
int
-vtysh_completion_entry_fucntion (int ignore, int invoking_key)
+vtysh_completion_entry_function (int ignore, int invoking_key)
{
return 0;
}
@@ -1582,7 +1610,7 @@ vtysh_readline_init ()
{
/* readline related settings. */
rl_bind_key ('?', vtysh_rl_describe);
- rl_completion_entry_function = vtysh_completion_entry_fucntion;
+ rl_completion_entry_function = vtysh_completion_entry_function;
rl_attempted_completion_function = (CPPFunction *)new_completion;
/* do not append space after completion. It will be appended
in new_completion() function explicitly */
@@ -1672,8 +1700,12 @@ vtysh_init_vty ()
install_element (ENABLE_NODE, &vtysh_quit_all_cmd);
install_element (RIP_NODE, &vtysh_exit_ripd_cmd);
install_element (RIP_NODE, &vtysh_quit_ripd_cmd);
+ install_element (RIPNG_NODE, &vtysh_exit_ripngd_cmd);
+ install_element (RIPNG_NODE, &vtysh_quit_ripngd_cmd);
install_element (OSPF_NODE, &vtysh_exit_ospfd_cmd);
install_element (OSPF_NODE, &vtysh_quit_ospfd_cmd);
+ install_element (OSPF6_NODE, &vtysh_exit_ospf6d_cmd);
+ install_element (OSPF6_NODE, &vtysh_quit_ospf6d_cmd);
install_element (BGP_NODE, &vtysh_exit_bgpd_cmd);
install_element (BGP_NODE, &vtysh_quit_bgpd_cmd);
install_element (BGP_VPNV4_NODE, &vtysh_exit_bgpd_cmd);