diff options
Diffstat (limited to 'vpp-api-test/vat')
-rw-r--r-- | vpp-api-test/vat/api_format.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vpp-api-test/vat/api_format.c b/vpp-api-test/vat/api_format.c index 0926dfb0a20..a87828feef1 100644 --- a/vpp-api-test/vat/api_format.c +++ b/vpp-api-test/vat/api_format.c @@ -7855,7 +7855,7 @@ unformat_l2_next_index (unformat_input_t * input, va_list * args) u32 tmp; #define _(n,N) \ - if (unformat (input, #n)) { next_index = L2_CLASSIFY_NEXT_##N; goto out;} + if (unformat (input, #n)) { next_index = L2_INPUT_CLASSIFY_NEXT_##N; goto out;} foreach_l2_next; #undef _ @@ -8570,6 +8570,7 @@ api_classify_set_interface_l2_tables (vat_main_t * vam) u32 ip4_table_index = ~0; u32 ip6_table_index = ~0; u32 other_table_index = ~0; + u32 is_input = 1; while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT) { @@ -8583,6 +8584,8 @@ api_classify_set_interface_l2_tables (vat_main_t * vam) ; else if (unformat (i, "other-table %d", &other_table_index)) ; + else if (unformat (i, "is-input %d", &is_input)) + ; else { clib_warning ("parse error '%U'", format_unformat_error, i); @@ -8603,7 +8606,7 @@ api_classify_set_interface_l2_tables (vat_main_t * vam) mp->ip4_table_index = ntohl (ip4_table_index); mp->ip6_table_index = ntohl (ip6_table_index); mp->other_table_index = ntohl (other_table_index); - + mp->is_input = (u8) is_input; S; W; |