= {
{
"end", &
cmd_end,
"exit from configure mode", NULL },
{
"exit", &
cmd_exit,
"exit current context", NULL },
{
"help", &
cmd_help,
"show command help", NULL },
{
"bind-address", &
cmd_config_bind,
"set bind address and port for trip",
"bind-address <addr> [port]" },
{ "api", &cmd_config_api, "set bind address and port for http api", "api [addr] [port]" },
{ "enum", &cmd_config_enum, "set zone, bind address and port for enum query interface", "enum [zone] [addr] [port]" },
{ "route", &cmd_config_route, "insert route into routing table", "route { add <af> <prefix> <app-proto> <server> | del <af> <prefi> }" },
{ "acl", &cmd_config_acl, "add acl entry", "acl <acl-name> { permit | deny } <expression>" },
{
"route-map", &
cmd_config_routemap,
"define route map",
"route-map <map-name> [ permit | deny ]" },
{ NULL, NULL, NULL, NULL }
}
int cmd_config_log(parser_t *parser, int no, char *args)
Log file and level.
Definition commands.c:381
int cmd_help(parser_t *parser, int no, char *args)
Contextual help.
Definition commands.c:106
int cmd_end(parser_t *parser, int no, char *args)
End configuration.
Definition commands.c:75
int cmd_exit(parser_t *parser, int no, char *args)
Exit current context.
Definition commands.c:90
int cmd_config_trip(parser_t *parser, int no, char *args)
TRIP routing context.
Definition commands.c:791
int cmd_config_bind(parser_t *parser, int no, char *args)
Bind address.
Definition commands.c:425
int cmd_config_routemap(parser_t *parser, int no, char *args)
Route map.
Definition commands.c:752