X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fmactime%2Fmactime.api;h=edad2c48362f756f0587602737789202399f7c96;hb=7071952df81122a601ff84cccb7e1a2539a49941;hp=d9049d8dbd197569e6d1d4b01ac442ed598a7d91;hpb=0c6ac791dde099346af1752aa92d0eb05fc2db11;p=vpp.git diff --git a/src/plugins/mactime/mactime.api b/src/plugins/mactime/mactime.api index d9049d8dbd1..edad2c48362 100644 --- a/src/plugins/mactime/mactime.api +++ b/src/plugins/mactime/mactime.api @@ -16,7 +16,7 @@ /** \file This file defines vpp mactime control-plane API messages */ -option version = "1.1.0"; +option version = "1.1.1"; /** \brief api to enable or disable the time-based src mac filter on an interface @@ -28,13 +28,14 @@ autoreply define mactime_enable_disable u32 context; /**< application context */ u8 enable_disable; /**< enable=1, disable=0 */ u32 sw_if_index; /**< the interface handle */ + option vat_help = " [disable]"; }; /** \brief a time range structure * times are in double-precision fp seconds since 1/1/1970, * which was a Thursday. */ -typeonly define time_range +typedef time_range { f64 start; /**< start of the time range */ f64 end; /**< end of the time range */ @@ -74,6 +75,7 @@ autoreply define mactime_add_del_range u8 is_add; /**< add=1, del=0 */ u8 drop; /**< drop flag */ u8 allow; /**< allow flag */ + u8 allow_quota; /**< allow subject to quota */ u8 no_udp_10001; /**< drop udp to port 10001 */ u64 data_quota; /**< max bytes this device */ u8 mac_address[6]; /**< src mac address */ @@ -81,6 +83,7 @@ autoreply define mactime_add_del_range u32 count; /**< number of time ranges to follow */ /** time ranges, in seconds since Sunday began */ vl_api_time_range_t ranges[count]; + option vat_help = "name mac allow drop allow-range Mon - Fri 9:00 - 17:00"; }; /*