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 {
201 autoreply define nat_set_reass {
215 define nat_get_reass {
232 define nat_get_reass_reply {
249 define nat_reass_dump {
262 define nat_reass_details {
279 autoreply define nat_set_timeouts {
292 define nat_get_timeouts {
305 define nat_get_timeouts_reply {
326 autoreply define nat_set_addr_and_port_alloc_alg {
341 define nat_get_addr_and_port_alloc_alg {
358 define nat_get_addr_and_port_alloc_alg_reply {
375 autoreply define nat_set_mss_clamping {
386 define nat_get_mss_clamping {
397 define nat_get_mss_clamping_reply {
451 define nat_ha_get_listener_reply {
476 define nat_ha_get_failover_reply {
514 define nat_ha_resync_completed_event
522 rpc
nat_ha_resync returns nat_ha_resync_reply events nat_ha_resync_completed_event;
539 autoreply define nat44_add_del_address_range {
553 define nat44_address_dump {
564 define nat44_address_details {
579 autoreply define nat44_interface_add_del_feature {
591 define nat44_interface_dump {
604 define nat44_interface_details {
619 autoreply define nat44_interface_add_del_output_feature {
631 define nat44_interface_output_feature_dump {
642 define nat44_interface_output_feature_details {
669 autoreply define nat44_add_del_static_mapping {
688 define nat44_static_mapping_dump {
710 define nat44_static_mapping_details {
736 autoreply define nat44_add_del_identity_mapping {
753 define nat44_identity_mapping_dump {
768 define nat44_identity_mapping_details {
786 autoreply define nat44_add_del_interface_addr {
798 define nat44_interface_addr_dump {
809 define nat44_interface_addr_details {
819 define nat44_user_dump {
831 define nat44_user_details {
845 define nat44_user_session_dump {
873 define nat44_user_session_details {
896 typeonly manual_endian define nat44_lb_addr_port {
958 define nat44_lb_static_mapping_dump {
979 manual_endian define nat44_lb_static_mapping_details {
1024 autoreply define nat44_forwarding_enable_disable {
1034 define nat44_forwarding_is_enabled {
1043 define nat44_forwarding_is_enabled_reply {
1062 autoreply define nat_det_add_del_map {
1077 define nat_det_forward {
1090 define nat_det_forward_reply {
1104 define nat_det_reverse {
1116 define nat_det_reverse_reply {
1126 define nat_det_map_dump {
1141 define nat_det_map_details {
1160 autoreply define nat_det_close_session_out {
1177 autoreply define nat_det_close_session_in {
1191 define nat_det_session_dump {
1206 define nat_det_session_details {
1228 autoreply define nat64_add_del_pool_addr_range {
1241 define nat64_pool_addr_dump {
1251 define nat64_pool_addr_details {
1277 define nat64_interface_dump {
1290 define nat64_interface_details {
1307 autoreply define nat64_add_del_static_bib {
1328 define nat64_bib_dump {
1346 define nat64_bib_details {
1367 define nat64_st_dump {
1385 define nat64_st_details {
1417 define nat64_prefix_dump {
1427 define nat64_prefix_details {
1439 autoreply define nat64_add_del_interface_addr {
1457 autoreply define dslite_add_del_pool_addr_range {
1469 define dslite_address_dump {
1478 define dslite_address_details {
1489 autoreply define dslite_set_aftr_addr {
1500 define dslite_get_aftr_addr {
1511 define dslite_get_aftr_addr_reply {
1524 autoreply define dslite_set_b4_addr {
1535 define dslite_get_b4_addr {
1546 define dslite_get_b4_addr_reply {
1564 autoreply define nat66_add_del_interface {
1576 define nat66_interface_dump {
1587 define nat66_interface_details {
1601 autoreply define nat66_add_del_static_mapping {
1614 define nat66_static_mapping_dump {
1627 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
u8 vl_api_ip6_address_t[16]
Conversion functions to/from (decode/encode) API types to VPP internal types.
vl_api_ip6_address_t external_ip_address
vl_api_ip4_address_t local_ip_address
vl_api_address_t dst_addr
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
NAT44 load-balancing address and port pair.
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
u8 vl_api_ip4_address_t[4]
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
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 addr
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
vl_api_address_t src_addr