From b84a3e56e1287389528b188aefc4f69bc0bb8ae7 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Tue, 30 Aug 2016 17:01:52 -0400 Subject: VPP-369 Add an L2 output classification feature Change-Id: If03162d328c1ea179249e734537ebb01bade3331 Signed-off-by: Dave Barach --- vpp-api-test/vat/api_format.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vpp-api-test') 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; -- cgit 1.2.3-korg