17 import "vnet/ip/ip_types.api";
35 define nat_control_ping
47 define nat_control_ping_reply
59 define nat_show_config
86 define nat_show_config_reply
114 autoreply define nat_set_workers {
124 define nat_worker_dump {
135 define nat_worker_details {
149 autoreply define nat_ipfix_enable_disable {
166 autoreply define nat_set_reass {
180 define nat_get_reass {
197 define nat_get_reass_reply {
214 define nat_reass_dump {
228 define nat_reass_details {
246 autoreply define nat_set_timeouts {
259 define nat_get_timeouts {
272 define nat_get_timeouts_reply {
293 autoreply define nat_set_addr_and_port_alloc_alg {
308 define nat_get_addr_and_port_alloc_alg {
325 define nat_get_addr_and_port_alloc_alg_reply {
342 autoreply define nat_set_mss_clamping {
353 define nat_get_mss_clamping {
364 define nat_get_mss_clamping_reply {
418 define nat_ha_get_listener_reply {
443 define nat_ha_get_failover_reply {
481 define nat_ha_resync_completed_event
489 rpc
nat_ha_resync returns nat_ha_resync_reply events nat_ha_resync_completed_event;
505 autoreply define nat44_add_del_address_range {
508 u8 first_ip_address[4];
509 u8 last_ip_address[4];
519 define nat44_address_dump {
530 define nat44_address_details {
544 autoreply define nat44_interface_add_del_feature {
556 define nat44_interface_dump {
566 define nat44_interface_details {
580 autoreply define nat44_interface_add_del_output_feature {
592 define nat44_interface_output_feature_dump {
602 define nat44_interface_output_feature_details {
630 autoreply define nat44_add_del_static_mapping {
635 u8 local_ip_address[4];
636 u8 external_ip_address[4];
652 define nat44_static_mapping_dump {
674 define nat44_static_mapping_details {
677 u8 local_ip_address[4];
678 u8 external_ip_address[4];
703 autoreply define nat44_add_del_identity_mapping {
720 define nat44_identity_mapping_dump {
735 define nat44_identity_mapping_details {
753 autoreply define nat44_add_del_interface_addr {
765 define nat44_interface_addr_dump {
775 define nat44_interface_addr_details {
785 define nat44_user_dump {
797 define nat44_user_details {
812 define nat44_user_session_dump {
839 define nat44_user_session_details {
841 u8 outside_ip_address[4];
843 u8 inside_ip_address[4];
852 u8 ext_host_address[4];
854 u8 ext_host_nat_address[4];
863 typeonly manual_endian define nat44_lb_addr_port {
927 define nat44_lb_static_mapping_dump {
949 manual_endian define nat44_lb_static_mapping_details {
984 u8 ext_host_address[4];
995 autoreply define nat44_forwarding_enable_disable {
1005 define nat44_forwarding_is_enabled {
1014 define nat44_forwarding_is_enabled_reply {
1034 autoreply define nat_det_add_del_map {
1052 define nat_det_forward {
1066 define nat_det_forward_reply {
1080 define nat_det_reverse {
1093 define nat_det_reverse_reply {
1104 define nat_det_map_dump {
1120 define nat_det_map_details {
1140 autoreply define nat_det_close_session_out {
1158 autoreply define nat_det_close_session_in {
1174 define nat_det_session_dump {
1190 define nat_det_session_details {
1212 autoreply define nat64_add_del_pool_addr_range {
1225 define nat64_pool_addr_dump {
1235 define nat64_pool_addr_details {
1260 define nat64_interface_dump {
1270 define nat64_interface_details {
1287 autoreply define nat64_add_del_static_bib {
1308 define nat64_bib_dump {
1325 define nat64_bib_details {
1346 define nat64_st_dump {
1364 define nat64_st_details {
1398 define nat64_prefix_dump {
1409 define nat64_prefix_details {
1422 autoreply define nat64_add_del_interface_addr {
1442 autoreply define dslite_add_del_pool_addr_range {
1454 define dslite_address_dump {
1463 define dslite_address_details {
1474 autoreply define dslite_set_aftr_addr {
1485 define dslite_get_aftr_addr {
1496 define dslite_get_aftr_addr_reply {
1509 autoreply define dslite_set_b4_addr {
1520 define dslite_get_b4_addr {
1531 define dslite_get_b4_addr_reply {
1548 autoreply define nat66_add_del_interface {
1560 define nat66_interface_dump {
1570 define nat66_interface_details {
1584 autoreply define nat66_add_del_static_mapping {
1589 u8 external_ip_address[16];
1597 define nat66_static_mapping_dump {
1610 define nat66_static_mapping_details {
1613 u8 external_ip_address[16];
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 ip_address
u32 session_refresh_interval
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
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)
NAT44 load-balancing address and port pair.
u32 max_translations_per_user
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
u8 static_mapping_connection_tracking
u8 vl_api_ip4_address_t[4]
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.
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)
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.
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_address_t ip_address
u32 nat64_bib_memory_size
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_ip4_address_t ip_address