17 import "vnet/ip/ip_types.api";
18 import "vnet/interface_types.api";
19 import "plugins/nat/nat_types.api";
37 define nat_control_ping
49 define nat_control_ping_reply
61 define nat_show_config
89 define nat_show_config_reply
116 define nat_show_config_2
145 define nat_show_config_2_reply
184 autoreply define nat44_session_cleanup {
207 autoreply define nat_set_log_level {
218 autoreply define nat_set_workers {
228 define nat_worker_dump {
239 define nat_worker_details {
253 autoreply define nat_ipfix_enable_disable {
269 autoreply define nat_set_timeouts {
282 define nat_get_timeouts {
295 define nat_get_timeouts_reply {
316 autoreply define nat_set_addr_and_port_alloc_alg {
331 define nat_get_addr_and_port_alloc_alg {
348 define nat_get_addr_and_port_alloc_alg_reply {
365 autoreply define nat_set_mss_clamping {
376 define nat_get_mss_clamping {
387 define nat_get_mss_clamping_reply {
441 define nat_ha_get_listener_reply {
466 define nat_ha_get_failover_reply {
504 define nat_ha_resync_completed_event
512 rpc
nat_ha_resync returns nat_ha_resync_reply events nat_ha_resync_completed_event;
525 autoreply define nat44_del_user {
542 autoreply define nat44_add_del_address_range {
556 define nat44_address_dump {
567 define nat44_address_details {
582 autoreply define nat44_interface_add_del_feature {
594 define nat44_interface_dump {
607 define nat44_interface_details {
622 autoreply define nat44_interface_add_del_output_feature {
634 define nat44_interface_output_feature_dump {
645 define nat44_interface_output_feature_details {
672 autoreply define nat44_add_del_static_mapping {
710 autoreply define nat44_add_del_static_mapping_v2 {
711 option status=
"in_progress";
732 define nat44_static_mapping_dump {
754 define nat44_static_mapping_details {
780 autoreply define nat44_add_del_identity_mapping {
797 define nat44_identity_mapping_dump {
812 define nat44_identity_mapping_details {
830 autoreply define nat44_add_del_interface_addr {
842 define nat44_interface_addr_dump {
853 define nat44_interface_addr_details {
863 define nat44_user_dump {
875 define nat44_user_details {
889 define nat44_user_session_dump {
917 define nat44_user_session_details {
941 vl_api_ip4_address_t
addr;
976 vl_api_nat44_lb_addr_port_t locals[local_num];
1002 define nat44_lb_static_mapping_dump {
1023 manual_endian define nat44_lb_static_mapping_details {
1032 vl_api_nat44_lb_addr_port_t locals[local_num];
1068 autoreply define nat44_forwarding_enable_disable {
1078 define nat44_forwarding_is_enabled {
1087 define nat44_forwarding_is_enabled_reply {
1104 autoreply define nat64_add_del_pool_addr_range {
1117 define nat64_pool_addr_dump {
1127 define nat64_pool_addr_details {
1153 define nat64_interface_dump {
1166 define nat64_interface_details {
1183 autoreply define nat64_add_del_static_bib {
1204 define nat64_bib_dump {
1222 define nat64_bib_details {
1243 define nat64_st_dump {
1261 define nat64_st_details {
1293 define nat64_prefix_dump {
1303 define nat64_prefix_details {
1315 autoreply define nat64_add_del_interface_addr {
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_interface_index_t sw_if_index
vl_api_ip4_address_t external_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_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
u32 session_refresh_interval
vl_api_nat_config_flags_t flags
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_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)
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_ip6_address_t il_addr
vl_api_ip4_address_t pool_ip_address
u64 nat64_bib_memory_size
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 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 ol_addr
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)
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
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_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_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)
u32 max_translations_per_thread
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t local_ip_address
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_nat_config_flags_t flags
vl_api_ip4_address_t ip_address