aboutsummaryrefslogtreecommitdiffstats
path: root/vpp-api-test/vat
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-08-30 17:01:52 -0400
committerKeith Burns <alagalah@gmail.com>2016-08-31 21:53:01 +0000
commitb84a3e56e1287389528b188aefc4f69bc0bb8ae7 (patch)
treed5642e2e4738b230aacad640134852cebc3cccea /vpp-api-test/vat
parent1edfba9a6394128ee5fad2b413e9e0a05972ef48 (diff)
VPP-369 Add an L2 output classification feature
Change-Id: If03162d328c1ea179249e734537ebb01bade3331 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vpp-api-test/vat')
-rw-r--r--vpp-api-test/vat/api_format.c7
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;