FD.io VPP
v19.01.3-6-g70449b9b9
Vector Packet Processing
|
configure per src-mac time ranges More...
Data Fields | |
u32 | client_index |
client index, from api_main More... | |
u32 | context |
application context More... | |
u8 | is_add |
add=1, del=0 More... | |
u8 | drop |
drop flag More... | |
u8 | allow |
allow flag More... | |
u8 | mac_address [6] |
src mac address More... | |
u8 | device_name [64] |
device name More... | |
u32 | count |
number of time ranges to follow More... | |
vl_api_time_range_t | ranges [count] |
time ranges, in seconds since Sunday began More... | |
configure per src-mac time ranges
Usage: to create a static allow entry: set mac_address, device_name, is_add=1, and allow=1.
to create a static drop entry: set mac_address, device_name, is_add=1, and drop=1.
to create a (time-range-based) dynamic allow entry: set mac_address, device_name, is_add=1, set allow=1. 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, set drop=1 instead of allow=1
to delete a per src-mac entry (of any kind) set mac_address, is_add=0 note: deletes all ranges.
See mactime_test.c:api_mactime_add_del_range(...) for a working example.
Definition at line 70 of file mactime.api.
u8 vl_api_mactime_add_del_range_t::allow |
allow flag
Definition at line 76 of file mactime.api.
u32 vl_api_mactime_add_del_range_t::client_index |
client index, from api_main
Definition at line 72 of file mactime.api.
u32 vl_api_mactime_add_del_range_t::context |
application context
Definition at line 73 of file mactime.api.
u32 vl_api_mactime_add_del_range_t::count |
number of time ranges to follow
Definition at line 79 of file mactime.api.
u8 vl_api_mactime_add_del_range_t::device_name[64] |
device name
Definition at line 78 of file mactime.api.
u8 vl_api_mactime_add_del_range_t::drop |
drop flag
Definition at line 75 of file mactime.api.
u8 vl_api_mactime_add_del_range_t::is_add |
add=1, del=0
Definition at line 74 of file mactime.api.
u8 vl_api_mactime_add_del_range_t::mac_address[6] |
src mac address
Definition at line 77 of file mactime.api.
vl_api_time_range_t vl_api_mactime_add_del_range_t::ranges[count] |
time ranges, in seconds since Sunday began
Definition at line 81 of file mactime.api.