}
/* Down vty node level. */
-/*
- * CHECK ME - The following ALIASes need to be implemented in this DEFUN
- * "quit",
- * "Exit current mode and down to previous mode\n"
- *
- */
DEFUN (config_exit,
config_exit_cmd,
"exit",
return CMD_SUCCESS;
}
-/* quit is alias of exit. */
+/* ALIAS_FIXME */
+DEFUN (config_quit,
+ config_quit_cmd,
+ "quit",
+ "Exit current mode and down to previous mode\n")
+{
+ return config_exit (self, vty, argc, argv);
+}
+
/* End of configuration. */
DEFUN (config_end,
install_element (RESTRICTED_NODE, &config_list_cmd);
install_element (RESTRICTED_NODE, &config_exit_cmd);
+ install_element (RESTRICTED_NODE, &config_quit_cmd);
install_element (RESTRICTED_NODE, &config_help_cmd);
install_element (RESTRICTED_NODE, &config_enable_cmd);
install_element (RESTRICTED_NODE, &config_terminal_length_cmd);
return CMD_SUCCESS;
}
-/*
- * CHECK ME - The following ALIASes need to be implemented in this DEFUN
- * "no access-list (<1-99>|<100-199>|<1300-1999>|<2000-2699>|WORD) remark .LINE",
- * NO_STR
- * "Add an access list entry\n"
- * "IP standard access list\n"
- * "IP extended access list\n"
- * "IP standard access list (expanded range)\n"
- * "IP extended access list (expanded range)\n"
- * "IP zebra access-list\n"
- * "Access list entry comment\n"
- * "Comment up to 100 characters\n"
- *
- */
DEFUN (no_access_list_remark,
no_access_list_remark_cmd,
"no access-list <(1-99)|(100-199)|(1300-1999)|(2000-2699)|WORD> remark",
{
return vty_access_list_remark_unset (vty, AFI_IP, argv[2]->arg);
}
+
+/* ALIAS_FIXME */
+DEFUN (no_access_list_remark_comment,
+ no_access_list_remark_comment_cmd,
+ "no access-list <(1-99)|(100-199)|(1300-1999)|(2000-2699)|WORD> remark LINE...",
+ NO_STR
+ "Add an access list entry\n"
+ "IP standard access list\n"
+ "IP extended access list\n"
+ "IP standard access list (expanded range)\n"
+ "IP extended access list (expanded range)\n"
+ "IP zebra access-list\n"
+ "Access list entry comment\n"
+ "Comment up to 100 characters\n")
+{
+ return no_access_list_remark (self, vty, argc, argv);
+}
#ifdef HAVE_IPV6
return CMD_SUCCESS;
}
-/*
- * CHECK ME - The following ALIASes need to be implemented in this DEFUN
- * "no ipv6 access-list WORD remark .LINE",
- * NO_STR
- * IPV6_STR
- * "Add an access list entry\n"
- * "IPv6 zebra access-list\n"
- * "Access list entry comment\n"
- * "Comment up to 100 characters\n"
- *
- */
DEFUN (no_ipv6_access_list_remark,
no_ipv6_access_list_remark_cmd,
"no ipv6 access-list WORD remark",
{
return vty_access_list_remark_unset (vty, AFI_IP6, argv[3]->arg);
}
+
+/* ALIAS_FIXME */
+DEFUN (no_ipv6_access_list_remark_comment,
+ no_ipv6_access_list_remark_comment_cmd,
+ "no ipv6 access-list WORD remark LINE...",
+ NO_STR
+ IPV6_STR
+ "Add an access list entry\n"
+ "IPv6 zebra access-list\n"
+ "Access list entry comment\n"
+ "Comment up to 100 characters\n")
+{
+ return no_ipv6_access_list_remark (self, vty, argc, argv);
+}
#endif /* HAVE_IPV6 */
install_element (CONFIG_NODE, &access_list_remark_cmd);
install_element (CONFIG_NODE, &no_access_list_all_cmd);
install_element (CONFIG_NODE, &no_access_list_remark_cmd);
+ install_element (CONFIG_NODE, &no_access_list_remark_comment_cmd);
}
#ifdef HAVE_IPV6
install_element (CONFIG_NODE, &no_ipv6_access_list_all_cmd);
install_element (CONFIG_NODE, &ipv6_access_list_remark_cmd);
install_element (CONFIG_NODE, &no_ipv6_access_list_remark_cmd);
+ install_element (CONFIG_NODE, &no_ipv6_access_list_remark_comment_cmd);
}
#endif /* HAVE_IPV6 */
return CMD_SUCCESS;
}
-/*
- * CHECK ME - The following ALIASes need to be implemented in this DEFUN
- * "continue",
- * "Continue on a different entry within the route-map\n"
- *
- * "continue (1-65535)",
- * "Continue on a different entry within the route-map\n"
- * "Route-map entry sequence number\n"
- *
- */
DEFUN (rmap_onmatch_goto,
rmap_onmatch_goto_cmd,
"on-match goto (1-65535)",
{
char *num = NULL;
if (!strcmp (argv[0]->text, "continue"))
- if (argc == 2)
- num = argv[1]->arg;
- if (!strcmp (argv[0]->text, "on-match"))
+ num = argv[1]->arg;
+ else
num = argv[2]->arg;
struct route_map_index *index = vty->index;
if (d <= index->pref)
{
/* Can't allow you to do that, Dave */
- vty_out (vty, "can't jump backwards in route-maps%s",
- VTY_NEWLINE);
+ vty_out (vty, "can't jump backwards in route-maps%s", VTY_NEWLINE);
return CMD_WARNING;
}
else
return CMD_SUCCESS;
}
-/*
- * CHECK ME - The following ALIASes need to be implemented in this DEFUN
- * "no continue",
- * NO_STR
- * "Continue on a different entry within the route-map\n"
- *
- * "no continue (1-65535)",
- * NO_STR
- * "Continue on a different entry within the route-map\n"
- * "Route-map entry sequence number\n"
- *
- */
DEFUN (no_rmap_onmatch_goto,
no_rmap_onmatch_goto_cmd,
"no on-match goto",
return CMD_SUCCESS;
}
-/* Cisco/GNU Zebra compatible ALIASes for on-match next */
-
+/* Cisco/GNU Zebra compatibility aliases */
+/* ALIAS_FIXME */
+DEFUN (rmap_continue,
+ rmap_continue_cmd,
+ "continue (1-65535)",
+ "Continue on a different entry within the route-map\n"
+ "Route-map entry sequence number\n")
+{
+ return rmap_onmatch_goto (self, vty, argc, argv);
+}
-/* GNU Zebra compatible */
+/* ALIAS_FIXME */
+DEFUN (no_rmap_continue,
+ no_rmap_continue_cmd,
+ "no continue [(1-65535)]",
+ NO_STR
+ "Continue on a different entry within the route-map\n"
+ "Route-map entry sequence number\n")
+{
+ return no_rmap_onmatch_goto (self, vty, argc, argv);
+}
DEFUN (rmap_show_name,
"route-map information\n"
"route-map name\n")
{
- const char *name = NULL;
- if (argc == 3)
- name = argv[2]->arg;
+ const char *name = (argc == 3) ? argv[2]->arg : NULL;
return vty_show_route_map (vty, name);
}
install_element (RMAP_NODE, &no_rmap_onmatch_next_cmd);
install_element (RMAP_NODE, &rmap_onmatch_goto_cmd);
install_element (RMAP_NODE, &no_rmap_onmatch_goto_cmd);
+ install_element (RMAP_NODE, &rmap_continue_cmd);
+ install_element (RMAP_NODE, &no_rmap_continue_cmd);
/* Install the continue stuff (ALIAS of on-match). */
return CMD_SUCCESS;
}
-/*
- * CHECK ME - The following ALIASes need to be implemented in this DEFUN
- * "no terminal monitor",
- * NO_STR
- * "Set terminal line parameters\n"
- * "Copy debug output to the current terminal line\n"
- *
- */
DEFUN (terminal_no_monitor,
terminal_no_monitor_cmd,
"terminal no monitor",
return CMD_SUCCESS;
}
+DEFUN (no_terminal_monitor,
+ no_terminal_monitor_cmd,
+ "no terminal monitor",
+ NO_STR
+ "Set terminal line parameters\n"
+ "Copy debug output to the current terminal line\n")
+{
+ return terminal_no_monitor (self, vty, argc, argv);
+}
+
DEFUN (show_history,
show_history_cmd,
install_element (CONFIG_NODE, &log_commands_cmd);
install_element (ENABLE_NODE, &terminal_monitor_cmd);
install_element (ENABLE_NODE, &terminal_no_monitor_cmd);
+ install_element (ENABLE_NODE, &no_terminal_monitor_cmd);
install_element (ENABLE_NODE, &show_history_cmd);
install_default (VTY_NODE);