From d171d48edc1672564db8bb920586b8ea220df14c Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 5 Dec 2016 14:16:38 +0100 Subject: l2fib: add mac aging support Change-Id: Ib617ae0f76320d596cc6c4b384da76c91d701a24 Signed-off-by: Damjan Marion --- vpp-api-test/vat/api_format.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'vpp-api-test') diff --git a/vpp-api-test/vat/api_format.c b/vpp-api-test/vat/api_format.c index c6e5ac8d1da..e9cef11158a 100644 --- a/vpp-api-test/vat/api_format.c +++ b/vpp-api-test/vat/api_format.c @@ -5441,6 +5441,7 @@ api_bridge_domain_add_del (vat_main_t * vam) u32 bd_id = ~0; u8 is_add = 1; u32 flood = 1, forward = 1, learn = 1, uu_flood = 1, arp_term = 0; + u32 mac_age = 0; /* Parse args required to build the message */ while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT) @@ -5457,6 +5458,8 @@ api_bridge_domain_add_del (vat_main_t * vam) ; else if (unformat (i, "arp-term %d", &arp_term)) ; + else if (unformat (i, "mac-age %d", &mac_age)) + ; else if (unformat (i, "del")) { is_add = 0; @@ -5472,6 +5475,12 @@ api_bridge_domain_add_del (vat_main_t * vam) return -99; } + if (mac_age > 255) + { + errmsg ("mac age must be less than 256 \n"); + return -99; + } + M (BRIDGE_DOMAIN_ADD_DEL, bridge_domain_add_del); mp->bd_id = ntohl (bd_id); @@ -5481,6 +5490,7 @@ api_bridge_domain_add_del (vat_main_t * vam) mp->learn = learn; mp->arp_term = arp_term; mp->is_add = is_add; + mp->mac_age = (u8) mac_age; S; W; -- cgit 1.2.3-korg