24 u8 * client_mac,
int is_add)
53 if (hw_if_index == ~0)
62 case VNET_API_ERROR_BOND_SLAVE_NOT_ALLOWED:
64 "not allowed as parent interface belongs to a BondEthernet interface");
67 "p2p ethernet for given parent interface and client mac already exists");
70 "couldn't create p2p ethernet subinterface");
73 "p2p ethernet for given parent interface and client mac doesn't exist");
83 .path =
"p2p_ethernet ",
85 .short_help =
"p2p_ethernet <intfc> <mac-address> [del]",};
unformat_function_t unformat_vnet_hw_interface
vnet_main_t * vnet_get_main(void)
#define VLIB_INIT_FUNCTION(x)
#define clib_error_return(e, args...)
static clib_error_t * p2p_ethernet_init(vlib_main_t *vm)
int p2p_ethernet_add_del(vlib_main_t *vm, u32 parent_if_index, u8 *client_mac, int is_add)
static clib_error_t * vnet_p2p_ethernet_add_del(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define VLIB_CLI_COMMAND(x,...)
uword unformat_ethernet_address(unformat_input_t *input, va_list *args)