17 import "vnet/ip/ip_types.api";
18 import "vnet/interface_types.api";
49 define nat_control_ping
61 define nat_control_ping_reply
73 define nat_show_config
100 define nat_show_config_reply
137 autoreply define nat44_session_cleanup {
160 autoreply define nat_set_log_level {
171 autoreply define nat_set_workers {
181 define nat_worker_dump {
192 define nat_worker_details {
206 autoreply define nat_ipfix_enable_disable {
222 autoreply define nat_set_timeouts {
235 define nat_get_timeouts {
248 define nat_get_timeouts_reply {
269 autoreply define nat_set_addr_and_port_alloc_alg {
284 define nat_get_addr_and_port_alloc_alg {
301 define nat_get_addr_and_port_alloc_alg_reply {
318 autoreply define nat_set_mss_clamping {
329 define nat_get_mss_clamping {
340 define nat_get_mss_clamping_reply {
394 define nat_ha_get_listener_reply {
419 define nat_ha_get_failover_reply {
457 define nat_ha_resync_completed_event
465 rpc
nat_ha_resync returns nat_ha_resync_reply events nat_ha_resync_completed_event;
478 autoreply define nat44_del_user {
495 autoreply define nat44_add_del_address_range {
509 define nat44_address_dump {
520 define nat44_address_details {
535 autoreply define nat44_interface_add_del_feature {
547 define nat44_interface_dump {
560 define nat44_interface_details {
575 autoreply define nat44_interface_add_del_output_feature {
587 define nat44_interface_output_feature_dump {
598 define nat44_interface_output_feature_details {
625 autoreply define nat44_add_del_static_mapping {
644 define nat44_static_mapping_dump {
666 define nat44_static_mapping_details {
692 autoreply define nat44_add_del_identity_mapping {
709 define nat44_identity_mapping_dump {
724 define nat44_identity_mapping_details {
742 autoreply define nat44_add_del_interface_addr {
754 define nat44_interface_addr_dump {
765 define nat44_interface_addr_details {
775 define nat44_user_dump {
787 define nat44_user_details {
801 define nat44_user_session_dump {
829 define nat44_user_session_details {
853 vl_api_ip4_address_t
addr;
888 vl_api_nat44_lb_addr_port_t locals[local_num];
914 define nat44_lb_static_mapping_dump {
935 manual_endian define nat44_lb_static_mapping_details {
944 vl_api_nat44_lb_addr_port_t locals[local_num];
980 autoreply define nat44_forwarding_enable_disable {
990 define nat44_forwarding_is_enabled {
999 define nat44_forwarding_is_enabled_reply {
1018 autoreply define nat_det_add_del_map {
1033 define nat_det_forward {
1046 define nat_det_forward_reply {
1060 define nat_det_reverse {
1072 define nat_det_reverse_reply {
1082 define nat_det_map_dump {
1097 define nat_det_map_details {
1116 autoreply define nat_det_close_session_out {
1133 autoreply define nat_det_close_session_in {
1147 define nat_det_session_dump {
1162 define nat_det_session_details {
1184 autoreply define nat64_add_del_pool_addr_range {
1197 define nat64_pool_addr_dump {
1207 define nat64_pool_addr_details {
1233 define nat64_interface_dump {
1246 define nat64_interface_details {
1263 autoreply define nat64_add_del_static_bib {
1284 define nat64_bib_dump {
1302 define nat64_bib_details {
1323 define nat64_st_dump {
1341 define nat64_st_details {
1373 define nat64_prefix_dump {
1383 define nat64_prefix_details {
1395 autoreply define nat64_add_del_interface_addr {
1413 autoreply define nat66_add_del_interface {
1425 define nat66_interface_dump {
1436 define nat66_interface_details {
1450 autoreply define nat66_add_del_static_mapping {
1463 define nat66_static_mapping_dump {
1476 define nat66_static_mapping_details {
vl_api_ip4_address_t ext_host_address
vl_api_ip4_address_t ext_addr
vl_api_interface_index_t sw_if_index
vl_api_ip4_address_t out_addr
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t external_addr
int nat44_del_session(snat_main_t *sm, ip4_address_t *addr, u16 port, nat_protocol_t proto, u32 vrf_id, int is_in)
Delete NAT44 session.
vl_api_interface_index_t external_sw_if_index
vl_api_interface_index_t sw_if_index
vl_api_ip4_address_t external_addr
vl_api_ip4_address_t out_addr
vl_api_ip4_address_t external_addr
int nat64_add_del_interface(u32 sw_if_index, u8 is_inside, u8 is_add)
Enable/disable NAT64 feature on the interface.
vl_api_nat_config_flags_t flags
vl_api_nat_config_flags_t flags
vl_api_nat_config_flags_t flags
vl_api_ip6_address_t external_ip_address
vl_api_ip4_address_t local_ip_address
vl_api_ip4_address_t ip_address
u32 session_refresh_interval
vl_api_ip6_prefix_t prefix
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t first_ip_address
bool static_mapping_connection_tracking
vl_api_ip4_address_t or_addr
vl_api_ip4_address_t ip_address
vl_api_nat_config_flags_t flags
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t out_addr
u32 session_refresh_interval
vl_api_interface_index_t sw_if_index
vl_api_nat_config_flags_t flags
vl_api_ip6_address_t ir_addr
int nat_ha_resync(u32 client_index, u32 pid, nat_ha_resync_event_cb_t event_callback)
Resync HA (resend existing sessions to new failover)
vl_api_ip4_address_t o_addr
vl_api_nat_config_flags_t flags
vl_api_nat_config_flags_t flags
vl_api_ip6_address_t i_addr
vl_api_ip4_address_t ip_address
vl_api_ip6_address_t local_ip_address
vl_api_ip4_address_t ext_addr
vl_api_nat_config_flags_t flags
vl_api_nat_config_flags_t flags
int nat44_set_session_limit(u32 session_limit, u32 vrf_id)
Set NAT44 session limit (session limit, vrf id)
u32 max_translations_per_user
vl_api_nat_config_flags_t flags
vl_api_nat_config_flags_t flags
vl_api_nat_config_flags_t flags
u64 nat64_bib_memory_size
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t external_ip_address
void nat_ha_get_listener(ip4_address_t *addr, u16 *port, u32 *path_mtu)
Get HA listener/local configuration.
void nat_ha_flush(u8 is_resync)
Flush the current HA data (for testing)
vl_api_ip6_address_t i_addr
u32 translation_memory_size
vl_api_ip4_address_t ext_host_nat_address
vl_api_ip4_address_t outside_ip_address
vl_api_ip4_address_t address
vl_api_ip4_address_t ip_address
vl_api_ip4_address_t in_addr
vl_api_ip6_address_t il_addr
vl_api_ip6_address_t external_ip_address
vl_api_ip4_address_t last_ip_address
vl_api_interface_index_t sw_if_index
vl_api_ip4_address_t ip_address
vl_api_ip4_address_t ext_addr
vl_api_interface_index_t sw_if_index
vl_api_ip4_address_t ip_address
int nat64_add_del_prefix(ip6_address_t *prefix, u8 plen, u32 vrf_id, u8 is_add)
Add/delete NAT64 prefix.
vl_api_ip4_address_t out_addr
vl_api_ip4_address_t ol_addr
vl_api_nat_config_flags_t flags
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t ext_host_address
vl_api_ip4_address_t in_addr
int nat_ha_set_listener(ip4_address_t *addr, u16 port, u32 path_mtu)
Set HA listener (local settings)
int nat_ha_set_failover(ip4_address_t *addr, u16 port, u32 session_refresh_interval)
Set HA failover (remote settings)
vl_api_ip4_address_t in_addr
typedef nat44_lb_addr_port
NAT44 load-balancing address and port pair.
vl_api_ip4_address_t o_addr
vl_api_nat_config_flags_t flags
vl_api_interface_index_t sw_if_index
int nat44_lb_static_mapping_add_del_local(ip4_address_t e_addr, u16 e_port, ip4_address_t l_addr, u16 l_port, nat_protocol_t proto, u32 vrf_id, u8 probability, u8 is_add)
vl_api_ip4_address_t start_addr
vl_api_interface_index_t external_sw_if_index
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
vl_api_ip4_address_t ip_address
vl_api_interface_index_t sw_if_index
vl_api_ip4_address_t ip_address
vl_api_ip4_address_t end_addr
void nat_ha_get_failover(ip4_address_t *addr, u16 *port, u32 *session_refresh_interval)
Get HA failover/remote settings.
vl_api_ip4_address_t ip_address
vl_api_interface_index_t sw_if_index
vl_api_ip4_address_t external_ip_address
vl_api_ip4_address_t inside_ip_address
vl_api_ip6_prefix_t prefix
vl_api_ip4_address_t address
int nat44_add_del_lb_static_mapping(ip4_address_t e_addr, u16 e_port, nat_protocol_t proto, nat44_lb_addr_port_t *locals, u8 is_add, twice_nat_type_t twice_nat, u8 out2in_only, u8 *tag, u32 affinity)
Add/delete static mapping with load-balancing (multiple backends)
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t local_ip_address
vl_api_ip4_address_t user_addr
vl_api_ip4_address_t in_addr
vl_api_nat_log_level_t log_level
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
vl_api_ip4_address_t in_addr
vl_api_ip4_address_t out_addr
vl_api_nat44_lb_addr_port_t local
vl_api_ip6_address_t local_ip_address
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t ip_address