From b3605eab5ad6b8acb758caf7ce04c39d91f9e969 Mon Sep 17 00:00:00 2001 From: hedi bouattour Date: Wed, 14 Sep 2022 12:39:23 +0000 Subject: urpf: add mode for specific fib index lookup this patch adds a mode to urpf in order to perform the lookup in a specified vrf instead of the interface vrf Type: feature Change-Id: Ieb91de6ccdfbf32b6939364f3bebeecd2d57af19 Signed-off-by: hedi bouattour --- src/plugins/urpf/urpf.api | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/plugins/urpf/urpf.api') diff --git a/src/plugins/urpf/urpf.api b/src/plugins/urpf/urpf.api index 944db08cc94..4665743a57a 100644 --- a/src/plugins/urpf/urpf.api +++ b/src/plugins/urpf/urpf.api @@ -50,6 +50,27 @@ autoreply define urpf_update vl_api_interface_index_t sw_if_index; }; +/** + * @brief Enable uRPF on a given interface in a given direction + * @param client_index - opaque cookie to identify the sender + * @param context - sender context, to match reply w/ request + * @param mode - Mode + * @param af - Address Family + * @param sw_if_index - Interface + * @param is_input - Direction. + * @param table-id - Table ID + */ +autoreply define urpf_update_v2 +{ + u32 client_index; + u32 context; + bool is_input[default = true]; + vl_api_urpf_mode_t mode; + vl_api_address_family_t af; + vl_api_interface_index_t sw_if_index; + u32 table_id [default=0xffffffff]; +}; + /* * fd.io coding-style-patch-verification: ON * -- cgit 1.2.3-korg