108 else if (
unformat (input,
"disable"))
114 if (collector.
as_u32 == 0)
142 .path =
"set nsh-md2-ioam export ipfix",
143 .short_help =
"set nsh-md2-ioam export ipfix collector <ip4-address> src <ip4-address>",
149 #define IPFIX_NSH_MD2_IOAM_EXPORT_ID 274 // TODO: Move this to ioam/ioam_export.h
vnet_main_t * vnet_get_main(void)
static void ioam_export_reset_next_node(ioam_export_main_t *em)
u32 export_process_node_index
static f64 vlib_time_now(vlib_main_t *vm)
int nsh_md2_ioam_export_enable_disable(ioam_export_main_t *em, u8 is_disable, ip4_address_t *collector_address, ip4_address_t *src_address)
static int ioam_export_header_create(ioam_export_main_t *em, ip4_address_t *collector_address, ip4_address_t *src_address)
ip4_address_t ipfix_collector
static uword vlib_node_add_next(vlib_main_t *vm, uword node, uword next_node)
vlib_node_registration_t nsh_md2_ioam_export_node
(constructor) VLIB_REGISTER_NODE (nsh_md2_ioam_export_node)
#define VLIB_INIT_FUNCTION(x)
#define clib_error_return(e, args...)
static clib_error_t * nsh_md2_ioam_export_init(vlib_main_t *vm)
static void vlib_process_signal_event(vlib_main_t *vm, uword node_index, uword type_opaque, uword data)
void nsh_md2_set_next_ioam_export_override(uword next)
vl_api_address_union_t src_address
vlib_node_registration_t nsh_input_node
(constructor) VLIB_REGISTER_NODE (nsh_input_node)
static void ioam_export_header_cleanup(ioam_export_main_t *em, ip4_address_t *collector_address, ip4_address_t *src_address)
static void ioam_export_thread_buffer_free(ioam_export_main_t *em)
#define IPFIX_NSH_MD2_IOAM_EXPORT_ID
ioam_export_main_t nsh_md2_ioam_export_main
ip4_address_t src_address
vlib_node_t * vlib_get_node_by_name(vlib_main_t *vm, u8 *name)
#define VLIB_CLI_COMMAND(x,...)
struct _vlib_node_registration vlib_node_registration_t
static clib_error_t * set_nsh_md2_ioam_export_ipfix_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static int ioam_export_thread_buffer_init(ioam_export_main_t *em, vlib_main_t *vm)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)