diff options
author | Dave Barach <dave@barachs.net> | 2019-06-03 10:23:30 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-06-04 07:47:24 +0000 |
commit | 0c6ac791dde099346af1752aa92d0eb05fc2db11 (patch) | |
tree | f6dade9bb0beae5efb79cb04feb1fc62ed894679 /src/plugins/mactime/mactime.api | |
parent | d5cf64f8c2a08d2f41327cc99dd2d96f77d82ca3 (diff) |
mactime: upstream new features
Add per mac address data quotas (simple version)
Add mini-ACLs to turf "call home" traffic from a certain species of
security DVR.
Add FEATURE.yaml
Update the API version number
Type: feature
Feature-name: mactime
Change-Id: Ida6945f7791ab43909afa68dcf2f652b20c53afd
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/plugins/mactime/mactime.api')
-rw-r--r-- | src/plugins/mactime/mactime.api | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/plugins/mactime/mactime.api b/src/plugins/mactime/mactime.api index 7cad7828fe4..d9049d8dbd1 100644 --- a/src/plugins/mactime/mactime.api +++ b/src/plugins/mactime/mactime.api @@ -14,15 +14,15 @@ */ /** \file - This file defines vpp mactime control-plane API messages + This file defines vpp mactime control-plane API messages */ -option version = "1.0.0"; +option version = "1.1.0"; -/** \brief api to enable or disable the time-based src mac filter on +/** \brief api to enable or disable the time-based src mac filter on an interface */ -autoreply define mactime_enable_disable +autoreply define mactime_enable_disable { u32 client_index; /**< client index, from api_main */ u32 context; /**< application context */ @@ -31,14 +31,14 @@ autoreply define mactime_enable_disable }; /** \brief a time range structure - * times are in double-precision fp seconds since 1/1/1970, + * times are in double-precision fp seconds since 1/1/1970, * which was a Thursday. */ typeonly define time_range { f64 start; /**< start of the time range */ f64 end; /**< end of the time range */ -}; +}; /** \brief configure per src-mac time ranges * @@ -54,9 +54,9 @@ typeonly define time_range * set count = number of ranges * set each range start/end in seconds since Sunday began * As in: start/end >= 0.0 && start/end < 7.0 *86400.0 - * + * * to create a (time-range-based) dynamic drop entry: - * Same procedure to create a dynamic allow entry, + * Same procedure to create a dynamic allow entry, * set drop=1 instead of allow=1 * * to delete a per src-mac entry (of any kind) @@ -74,11 +74,13 @@ autoreply define mactime_add_del_range u8 is_add; /**< add=1, del=0 */ u8 drop; /**< drop flag */ u8 allow; /**< allow flag */ + u8 no_udp_10001; /**< drop udp to port 10001 */ + u64 data_quota; /**< max bytes this device */ u8 mac_address[6]; /**< src mac address */ u8 device_name[64]; /**< device name */ u32 count; /**< number of time ranges to follow */ /** time ranges, in seconds since Sunday began */ - vl_api_time_range_t ranges[count]; + vl_api_time_range_t ranges[count]; }; /* |