diff options
author | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2021-08-10 15:05:29 +0200 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2021-08-13 18:29:23 +0000 |
commit | 2a1783fd6ae7e17c994010fca414c180eb48bc40 (patch) | |
tree | c7f12d0894ccd57a3098da77414338cb394c5efc /src/vnet/ip/ip.api | |
parent | 8034a36a9cedc95f6762bf0a07f6617d0bf69bfe (diff) |
ip: punt redirect add nh in api
Type: feature
Change-Id: Ia970f444ba2f38b7a42ea94942c906f1b541511b
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/ip/ip.api')
-rw-r--r-- | src/vnet/ip/ip.api | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/vnet/ip/ip.api b/src/vnet/ip/ip.api index c8d4c397182..28786fa5a90 100644 --- a/src/vnet/ip/ip.api +++ b/src/vnet/ip/ip.api @@ -557,6 +557,7 @@ typedef punt_redirect */ autoreply define ip_punt_redirect { + option deprecated; u32 client_index; u32 context; vl_api_punt_redirect_t punt; @@ -577,6 +578,48 @@ define ip_punt_redirect_details vl_api_punt_redirect_t punt; }; +/** \brief Punt redirect type + @param rx_sw_if_index - specify the original RX interface of traffic + that should be redirected. ~0 means any interface. + @param af - Address family (ip4 or ip6) + @param paths - the TX paths to which traffic should be redirected. +*/ +typedef punt_redirect_v2 +{ + vl_api_interface_index_t rx_sw_if_index [default=0xffffffff]; + vl_api_address_family_t af; + u32 n_paths; + vl_api_fib_path_t paths[n_paths]; +}; + +/** \brief Add IP punt redirect rule + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param punt - punt definition + @param is_add - 1 to add punt_redirect rule, 0 to delete +*/ +autoreply define add_del_ip_punt_redirect_v2 +{ + u32 client_index; + u32 context; + bool is_add [default=true]; + vl_api_punt_redirect_v2_t punt; +}; + +define ip_punt_redirect_v2_dump +{ + u32 client_index; + u32 context; + vl_api_interface_index_t sw_if_index; + vl_api_address_family_t af; +}; + +define ip_punt_redirect_v2_details +{ + u32 context; + vl_api_punt_redirect_v2_t punt; +}; + autoreply define ip_container_proxy_add_del { u32 client_index; |