diff options
author | Damjan Marion <damarion@cisco.com> | 2016-12-05 14:16:38 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-12-07 17:42:07 +0000 |
commit | d171d48edc1672564db8bb920586b8ea220df14c (patch) | |
tree | d9b202cf3f8087ca1d2ec3c604f35fe42e5ba102 /vpp-api-test/vat | |
parent | 38bcb56e99774c209e5f61604a4c22839c097e04 (diff) |
l2fib: add mac aging support
Change-Id: Ib617ae0f76320d596cc6c4b384da76c91d701a24
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vpp-api-test/vat')
-rw-r--r-- | vpp-api-test/vat/api_format.c | 10 |
1 files changed, 10 insertions, 0 deletions
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; |