FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
cnat.api File Reference

Go to the source code of this file.

Data Structures

struct  vl_api_cnat_translation_update_t
struct  vl_api_cnat_translation_update_reply_t
struct  vl_api_cnat_translation_del_t
struct  vl_api_cnat_translation_details_t
struct  vl_api_cnat_translation_dump_t
struct  vl_api_cnat_session_purge_t
struct  vl_api_cnat_session_details_t
struct  vl_api_cnat_session_dump_t
struct  vl_api_cnat_set_snat_addresses_t
struct  vl_api_cnat_get_snat_addresses_t
struct  vl_api_cnat_get_snat_addresses_reply_t
struct  vl_api_cnat_snat_policy_add_del_exclude_pfx_t
struct  vl_api_cnat_snat_policy_add_del_if_t
struct  vl_api_cnat_set_snat_policy_t


enum  cnat_translation_flags : u8 { CNAT_TRANSLATION_ALLOC_PORT = 1 }
enum  cnat_endpoint_tuple_flags : u8 { CNAT_EPT_NO_NAT = 1 }
enum  cnat_lb_type : u8 { CNAT_LB_TYPE_DEFAULT = 0, CNAT_LB_TYPE_MAGLEV = 1 }
enum  cnat_snat_policy_table : u8 { CNAT_POLICY_INCLUDE_V4 = 0, CNAT_POLICY_INCLUDE_V6 = 1, CNAT_POLICY_POD = 2 }
enum  cnat_snat_policies : u8 { CNAT_POLICY_NONE = 0, CNAT_POLICY_IF_PFX = 1, CNAT_POLICY_K8S = 2 }


option version = "0.2.0"
import vnet ip ip_types api
typedef cnat_endpoint
vl_api_interface_index_t sw_if_index
vl_api_address_family_t if_af
u16 port
typedef cnat_endpoint_tuple
vl_api_cnat_endpoint_t src_ep
u8 flags
typedef cnat_translation
u32 id
vl_api_ip_proto_t ip_proto
u8 is_real_ip
vl_api_cnat_lb_type_t lb_type
u32 n_paths
vl_api_cnat_endpoint_tuple_t paths [n_paths]
typedef cnat_session
vl_api_cnat_endpoint_t dst
vl_api_cnat_endpoint_t new
u8 location
f64 timestamp

Detailed Description

This file defines the vpp control-plane API messages used to control the ABF plugin

Definition in file cnat.api.

Enumeration Type Documentation

◆ cnat_endpoint_tuple_flags


Definition at line 32 of file cnat.api.

◆ cnat_lb_type

enum cnat_lb_type : u8

Definition at line 40 of file cnat.api.

◆ cnat_snat_policies


Definition at line 187 of file cnat.api.

◆ cnat_snat_policy_table


Definition at line 170 of file cnat.api.

◆ cnat_translation_flags


Definition at line 27 of file cnat.api.

Variable Documentation

◆ api

import vnet interface_types api

Definition at line 23 of file cnat.api.

◆ cnat_endpoint

typedef cnat_endpoint
Initial value:
vl_api_address_t addr

Definition at line 50 of file cnat.api.

◆ cnat_endpoint_tuple

typedef cnat_endpoint_tuple
Initial value:
vl_api_cnat_endpoint_t dst_ep

Definition at line 58 of file cnat.api.

◆ cnat_session

typedef cnat_session
Initial value:
vl_api_cnat_endpoint_t src

Definition at line 116 of file cnat.api.

◆ cnat_translation

typedef cnat_translation
Initial value:
vl_api_cnat_endpoint_t vip

Definition at line 65 of file cnat.api.

◆ dst

vl_api_cnat_endpoint_t dst

Definition at line 118 of file cnat.api.

◆ flags

u8 flags

Definition at line 61 of file cnat.api.

◆ id

u32 id

Definition at line 67 of file cnat.api.

◆ if_af

vl_api_address_family_t if_af

Definition at line 53 of file cnat.api.

◆ ip_proto

vl_api_ip_proto_t ip_proto

Definition at line 68 of file cnat.api.

◆ is_real_ip

u8 is_real_ip

Definition at line 69 of file cnat.api.

◆ lb_type

vl_api_cnat_lb_type_t lb_type

Definition at line 71 of file cnat.api.

◆ location

u8 location

Definition at line 121 of file cnat.api.

◆ n_paths

u32 n_paths

Definition at line 72 of file cnat.api.

◆ new

vl_api_cnat_endpoint_t new

Definition at line 119 of file cnat.api.

◆ paths

vl_api_cnat_endpoint_tuple_t paths[n_paths]

Definition at line 73 of file cnat.api.

◆ port

u16 port

Definition at line 54 of file cnat.api.

◆ src_ep

vl_api_cnat_endpoint_t src_ep

Definition at line 60 of file cnat.api.

◆ sw_if_index

vl_api_interface_index_t sw_if_index

Definition at line 52 of file cnat.api.

◆ timestamp

Definition at line 122 of file cnat.api.

◆ version

option version = "0.2.0"

Definition at line 22 of file cnat.api.

vhost_vring_addr_t addr
Definition: vhost_user.h:130
vl_api_address_t src
Definition: gre.api:54