X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fteib%2Fteib_cli.c;fp=src%2Fvnet%2Fnhrp%2Fnhrp_cli.c;h=faf0d8289638710b599c84a77ca38b8cef5f1508;hb=03ce46219cd0fabfd4918822c5b9fed9ef880de8;hp=654c750197ee3c4503fe7f42094cc2291ffa2f78;hpb=0860b2e19365c092f10dd1ce639caaded0e87ded;p=vpp.git diff --git a/src/vnet/nhrp/nhrp_cli.c b/src/vnet/teib/teib_cli.c similarity index 83% rename from src/vnet/nhrp/nhrp_cli.c rename to src/vnet/teib/teib_cli.c index 654c750197e..faf0d828963 100644 --- a/src/vnet/nhrp/nhrp_cli.c +++ b/src/vnet/teib/teib_cli.c @@ -13,10 +13,10 @@ * limitations under the License. */ -#include +#include static clib_error_t * -nhrp_add (vlib_main_t * vm, +teib_add (vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) { unformat_input_t _line_input, *line_input = &_line_input; @@ -71,7 +71,7 @@ nhrp_add (vlib_main_t * vm, goto done; } - rv = nhrp_entry_add (sw_if_index, &peer, nh_table_id, &nh); + rv = teib_entry_add (sw_if_index, &peer, nh_table_id, &nh); if (rv) { @@ -87,15 +87,15 @@ done: } /* *INDENT-OFF* */ -VLIB_CLI_COMMAND (nhrp_create_command, static) = { - .path = "create nhrp", - .short_help = "create nhrp peer nh [nh-table-id ]", - .function = nhrp_add, +VLIB_CLI_COMMAND (teib_create_command, static) = { + .path = "create teib", + .short_help = "create teib peer nh [nh-table-id ]", + .function = teib_add, }; /* *INDENT-ON* */ static clib_error_t * -nhrp_del (vlib_main_t * vm, +teib_del (vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) { unformat_input_t _line_input, *line_input = &_line_input; @@ -137,7 +137,7 @@ nhrp_del (vlib_main_t * vm, goto done; } - rv = nhrp_entry_del (sw_if_index, &peer); + rv = teib_entry_del (sw_if_index, &peer); if (rv) { @@ -153,35 +153,35 @@ done: } /* *INDENT-OFF* */ -VLIB_CLI_COMMAND (nhrp_delete_command, static) = { - .path = "delete nhrp", - .short_help = "delete nhrp peer ", - .function = nhrp_del, +VLIB_CLI_COMMAND (teib_delete_command, static) = { + .path = "delete teib", + .short_help = "delete teib peer ", + .function = teib_del, }; /* *INDENT-ON* */ static walk_rc_t -nhrp_show_one (index_t nei, void *ctx) +teib_show_one (index_t nei, void *ctx) { - vlib_cli_output (ctx, "%U", format_nhrp_entry, nei); + vlib_cli_output (ctx, "%U", format_teib_entry, nei); return (WALK_CONTINUE); } static clib_error_t * -nhrp_show (vlib_main_t * vm, +teib_show (vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) { - nhrp_walk (nhrp_show_one, vm); + teib_walk (teib_show_one, vm); return (NULL); } /* *INDENT-OFF* */ -VLIB_CLI_COMMAND (nhrp_show_command, static) = { - .path = "show nhrp", - .short_help = "show nhrp", - .function = nhrp_show, +VLIB_CLI_COMMAND (teib_show_command, static) = { + .path = "show teib", + .short_help = "show teib", + .function = teib_show, }; /* *INDENT-ON* */