* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
+vl_api_version 1.0.0
+
/**
* @file nat.api
* @brief VPP control-plane API messages.
/** \brief NAT44 interface details response
@param context - sender context, to match reply w/ request
- @param is_inside - 1 if inside, 0 if outside
+ @param is_inside - 1 if inside, 0 if outside, 2 if inside and outside
@param sw_if_index - software index of the interface
*/
define nat44_interface_details {
vl_api_nat44_lb_addr_port_t locals[local_num];
};
+/** \brief Delete NAT44 session
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param is_in - 1 if inside network addres and port pari, 0 if outside
+ @param ip_address - IPv4 address
+ @param protocol - IP protocol
+ @param port - port number
+ @param vfr_id - VRF ID
+*/
+autoreply define nat44_del_session {
+ u32 client_index;
+ u32 context;
+ u8 is_in;
+ u8 address[4];
+ u8 protocol;
+ u16 port;
+ u32 vrf_id;
+};
+
+
/*
* Deterministic NAT (CGN) APIs
*/
u8 prefix_len;
u32 vrf_id;
};
+
+
+/*
+ * DS-Lite APIs
+ */
+
+/** \brief Add/delete address range to DS-Lite pool
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param start_addr - start address of the range
+ @param end_addr - end address of the range
+ @param is_add - 1 if add, 0 if delete
+*/
+autoreply define dslite_add_del_pool_addr_range {
+ u32 client_index;
+ u32 context;
+ u8 start_addr[4];
+ u8 end_addr[4];
+ u8 is_add;
+};
+
+autoreply define dslite_set_aftr_addr {
+ u32 client_index;
+ u32 context;
+ u8 ip4_addr[4];
+ u8 ip6_addr[16];
+};