diff options
author | Hongjun Ni <hongjun.ni@intel.com> | 2019-09-10 00:49:24 +0800 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-09-26 11:40:18 +0000 |
commit | 33538a15087eea7c994b6f3d8a952c4b6ea98ee4 (patch) | |
tree | df163312f706753c154546fdbaf3d5623318a04e /src/plugins/lb/lb.api | |
parent | 8304933922620cef005b788a36a4d3f2eab45bb5 (diff) |
lb: add APIs for set interface nat4 and nat6
Type: feature
Change-Id: I5656cd798b108dd780381b87f574554442ed7b23
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'src/plugins/lb/lb.api')
-rw-r--r-- | src/plugins/lb/lb.api | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/lb/lb.api b/src/plugins/lb/lb.api index b9f5c22126a..b479b1b3034 100644 --- a/src/plugins/lb/lb.api +++ b/src/plugins/lb/lb.api @@ -1,5 +1,6 @@ option version = "1.0.0"; import "plugins/lb/lb_types.api"; +import "vnet/interface_types.api"; /** \brief Configure Load-Balancer global parameters (unlike the CLI, both ip4_src_address and ip6_src_address need to be specified. @param client_index - opaque cookie to identify the sender @@ -143,3 +144,28 @@ define lb_as_details { u32 in_use_since; }; +/** \brief Enable/disable NAT4 feature on the interface + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param is_add - true if add, false if delete + @param sw_if_index - software index of the interface +*/ +autoreply define lb_add_del_intf_nat4 { + u32 client_index; + u32 context; + bool is_add; + vl_api_interface_index_t sw_if_index; +}; + +/** \brief Enable/disable NAT6 feature on the interface + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param is_add - true if add, false if delete + @param sw_if_index - software index of the interface +*/ +autoreply define lb_add_del_intf_nat6 { + u32 client_index; + u32 context; + bool is_add; + vl_api_interface_index_t sw_if_index; +}; |