17 import "vnet/ip/ip_types.api";
18 import "vnet/interface_types.api";
19 import "plugins/nat/nat_types.api";
58 autoreply define nat44_plugin_enable_disable {
69 vl_api_nat44_config_flags_t
flags;
76 define nat_control_ping
89 define nat_control_ping_reply
102 define nat_show_config
130 define nat_show_config_reply
158 define nat_show_config_2
188 define nat_show_config_2_reply
218 define nat44_show_running_config
244 define nat44_show_running_config_reply
267 autoreply define nat44_session_cleanup {
291 autoreply define nat_set_log_level {
303 autoreply define nat_set_workers {
313 define nat_worker_dump {
324 define nat_worker_details {
338 autoreply define nat_ipfix_enable_disable {
355 autoreply define nat_set_timeouts {
369 define nat_get_timeouts {
383 define nat_get_timeouts_reply {
405 autoreply define nat_set_addr_and_port_alloc_alg {
420 define nat_get_addr_and_port_alloc_alg {
437 define nat_get_addr_and_port_alloc_alg_reply {
454 autoreply define nat_set_mss_clamping {
465 define nat_get_mss_clamping {
476 define nat_get_mss_clamping_reply {
530 define nat_ha_get_listener_reply {
555 define nat_ha_get_failover_reply {
593 define nat_ha_resync_completed_event
601 rpc
nat_ha_resync returns nat_ha_resync_reply events nat_ha_resync_completed_event;
610 autoreply define nat44_del_user {
627 autoreply define nat44_add_del_address_range {
641 define nat44_address_dump {
652 define nat44_address_details {
667 autoreply define nat44_interface_add_del_feature {
679 define nat44_interface_dump {
692 define nat44_interface_details {
707 autoreply define nat44_interface_add_del_output_feature {
719 define nat44_interface_output_feature_dump {
730 define nat44_interface_output_feature_details {
757 autoreply define nat44_add_del_static_mapping {
795 autoreply define nat44_add_del_static_mapping_v2 {
817 define nat44_static_mapping_dump {
839 define nat44_static_mapping_details {
865 autoreply define nat44_add_del_identity_mapping {
882 define nat44_identity_mapping_dump {
897 define nat44_identity_mapping_details {
915 autoreply define nat44_add_del_interface_addr {
927 define nat44_interface_addr_dump {
938 define nat44_interface_addr_details {
948 define nat44_user_dump {
960 define nat44_user_details {
974 define nat44_user_session_dump {
1002 define nat44_user_session_details {
1026 vl_api_ip4_address_t
addr;
1061 vl_api_nat44_lb_addr_port_t locals[local_num];
1087 define nat44_lb_static_mapping_dump {
1108 define nat44_lb_static_mapping_details {
1117 vl_api_nat44_lb_addr_port_t locals[local_num];
1153 autoreply define nat44_forwarding_enable_disable {
1164 define nat44_forwarding_is_enabled {
1174 define nat44_forwarding_is_enabled_reply {
vl_api_ip4_address_t ext_host_address
vl_api_interface_index_t external_sw_if_index
u32 max_translations_per_user
vl_api_interface_index_t sw_if_index
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_nat44_config_flags_t flags
vl_api_interface_index_t sw_if_index
vl_api_ip4_address_t external_addr
vl_api_ip4_address_t external_addr
vl_api_nat_config_flags_t flags
vl_api_nat_config_flags_t flags
bool ipfix_logging_enabled
vl_api_ip4_address_t local_ip_address
vl_api_ip4_address_t ip_address
u32 session_refresh_interval
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 ip_address
vl_api_nat_config_flags_t flags
vl_api_nat_config_flags_t flags
u32 session_refresh_interval
vl_api_nat_config_flags_t flags
vl_api_nat_config_flags_t flags
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t ip_address
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t external_ip_address
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)
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 pool_ip_address
u64 nat64_bib_memory_size
vl_api_ip4_address_t last_ip_address
vl_api_ip4_address_t ip_address
vl_api_ip4_address_t ip_address
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t ext_host_address
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_nat_config_flags_t flags
typedef nat44_lb_addr_port
NAT44 load-balancing address and port pair.
vl_api_nat_log_level_t log_level
bool static_mapping_connection_tracking
u64 translation_memory_size
vl_api_ip4_address_t local_ip_address
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_interface_index_t external_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
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
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 inside_ip_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)
u32 max_translations_per_thread
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t local_ip_address
vl_api_nat_timeouts_t timeouts
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_nat44_lb_addr_port_t local
vl_api_ip4_address_t ip_address
vl_api_nat44_config_flags_t flags