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
138 autoreply define nat_set_log_level {
149 autoreply define nat_set_workers {
159 define nat_worker_dump {
170 define nat_worker_details {
184 autoreply define nat_ipfix_enable_disable {
200 autoreply define nat_set_timeouts {
213 define nat_get_timeouts {
226 define nat_get_timeouts_reply {
247 autoreply define nat_set_addr_and_port_alloc_alg {
262 define nat_get_addr_and_port_alloc_alg {
279 define nat_get_addr_and_port_alloc_alg_reply {
296 autoreply define nat_set_mss_clamping {
307 define nat_get_mss_clamping {
318 define nat_get_mss_clamping_reply {
372 define nat_ha_get_listener_reply {
397 define nat_ha_get_failover_reply {
435 define nat_ha_resync_completed_event
443 rpc
nat_ha_resync returns nat_ha_resync_reply events nat_ha_resync_completed_event;
460 autoreply define nat44_add_del_address_range {
474 define nat44_address_dump {
485 define nat44_address_details {
500 autoreply define nat44_interface_add_del_feature {
512 define nat44_interface_dump {
525 define nat44_interface_details {
540 autoreply define nat44_interface_add_del_output_feature {
552 define nat44_interface_output_feature_dump {
563 define nat44_interface_output_feature_details {
590 autoreply define nat44_add_del_static_mapping {
609 define nat44_static_mapping_dump {
631 define nat44_static_mapping_details {
657 autoreply define nat44_add_del_identity_mapping {
674 define nat44_identity_mapping_dump {
689 define nat44_identity_mapping_details {
707 autoreply define nat44_add_del_interface_addr {
719 define nat44_interface_addr_dump {
730 define nat44_interface_addr_details {
740 define nat44_user_dump {
752 define nat44_user_details {
766 define nat44_user_session_dump {
794 define nat44_user_session_details {
818 vl_api_ip4_address_t
addr;
853 vl_api_nat44_lb_addr_port_t locals[local_num];
879 define nat44_lb_static_mapping_dump {
900 manual_endian define nat44_lb_static_mapping_details {
909 vl_api_nat44_lb_addr_port_t locals[local_num];
945 autoreply define nat44_forwarding_enable_disable {
955 define nat44_forwarding_is_enabled {
964 define nat44_forwarding_is_enabled_reply {
983 autoreply define nat_det_add_del_map {
998 define nat_det_forward {
1011 define nat_det_forward_reply {
1025 define nat_det_reverse {
1037 define nat_det_reverse_reply {
1047 define nat_det_map_dump {
1062 define nat_det_map_details {
1081 autoreply define nat_det_close_session_out {
1098 autoreply define nat_det_close_session_in {
1112 define nat_det_session_dump {
1127 define nat_det_session_details {
1149 autoreply define nat64_add_del_pool_addr_range {
1162 define nat64_pool_addr_dump {
1172 define nat64_pool_addr_details {
1198 define nat64_interface_dump {
1211 define nat64_interface_details {
1228 autoreply define nat64_add_del_static_bib {
1249 define nat64_bib_dump {
1267 define nat64_bib_details {
1288 define nat64_st_dump {
1306 define nat64_st_details {
1338 define nat64_prefix_dump {
1348 define nat64_prefix_details {
1360 autoreply define nat64_add_del_interface_addr {
1378 autoreply define dslite_add_del_pool_addr_range {
1390 define dslite_address_dump {
1399 define dslite_address_details {
1410 autoreply define dslite_set_aftr_addr {
1421 define dslite_get_aftr_addr {
1432 define dslite_get_aftr_addr_reply {
1445 autoreply define dslite_set_b4_addr {
1456 define dslite_get_b4_addr {
1467 define dslite_get_b4_addr_reply {
1485 autoreply define nat66_add_del_interface {
1497 define nat66_interface_dump {
1508 define nat66_interface_details {
1522 autoreply define nat66_add_del_static_mapping {
1535 define nat66_static_mapping_dump {
1548 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
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_ip4_address_t ip4_addr
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_ip4_address_t start_addr
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t out_addr
int nat44_add_del_lb_static_mapping(ip4_address_t e_addr, u16 e_port, snat_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 session_refresh_interval
vl_api_ip4_address_t ip4_addr
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
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
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 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 ip4_addr
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 out_addr
vl_api_ip4_address_t ol_addr
vl_api_nat_config_flags_t flags
vl_api_ip6_address_t ip6_addr
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t ext_host_address
vl_api_ip4_address_t in_addr
vl_api_ip4_address_t end_addr
int nat_ha_set_listener(ip4_address_t *addr, u16 port, u32 path_mtu)
Set HA listener (local settings)
vl_api_ip6_address_t ip6_addr
int nat_ha_set_failover(ip4_address_t *addr, u16 port, u32 session_refresh_interval)
Set HA failover (remote settings)
vl_api_ip6_address_t ip6_addr
vl_api_ip4_address_t in_addr
vl_api_ip6_address_t ip6_addr
typedef nat44_lb_addr_port
NAT44 load-balancing address and port pair.
int nat44_del_session(snat_main_t *sm, ip4_address_t *addr, u16 port, snat_protocol_t proto, u32 vrf_id, int is_in)
Delete NAT44 session.
vl_api_ip4_address_t ip4_addr
vl_api_ip4_address_t o_addr
vl_api_nat_config_flags_t flags
vl_api_interface_index_t sw_if_index
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
u32 nat64_bib_memory_size
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
int nat44_lb_static_mapping_add_del_local(ip4_address_t e_addr, u16 e_port, ip4_address_t l_addr, u16 l_port, snat_protocol_t proto, u32 vrf_id, u8 probability, u8 is_add)
vl_api_ip6_address_t local_ip_address
vl_api_nat_config_flags_t flags
vl_api_ip4_address_t ip_address