diff options
author | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2021-02-25 17:42:50 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2021-03-04 12:35:15 +0000 |
commit | 516b0adf6d8bbc6533ab58d7add96ec74d8be05a (patch) | |
tree | 57cc09232a708ee6510ded4f00c3e9e0745e3b8e /src/plugins/cnat/cnat_snat_policy.h | |
parent | 3fd77f7dea1ac91c5b4c9ede69b992a4e2243153 (diff) |
cnat: Add calico/k8s src policy
This patch implements k8s-specific extensions
to the cnat plugin.
This could be done by exposing a richer semantic
on srcNAT policies, but this might be too complex
work at this point. Also k8s fits quite well as a
'cloud NAT' usecase.
Type: feature
Change-Id: I2266daf7b10a92e65f5ed430838a12ae826bd333
Signed-off-by: Aloys Augustin <aloaugus@cisco.com>
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/plugins/cnat/cnat_snat_policy.h')
-rw-r--r-- | src/plugins/cnat/cnat_snat_policy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cnat/cnat_snat_policy.h b/src/plugins/cnat/cnat_snat_policy.h index ff30d19c884..987ae494e16 100644 --- a/src/plugins/cnat/cnat_snat_policy.h +++ b/src/plugins/cnat/cnat_snat_policy.h @@ -44,6 +44,7 @@ typedef enum cnat_snat_interface_map_type_t_ { CNAT_SNAT_IF_MAP_INCLUDE_V4 = AF_IP4, CNAT_SNAT_IF_MAP_INCLUDE_V6 = AF_IP6, + CNAT_SNAT_IF_MAP_INCLUDE_POD, CNAT_N_SNAT_IF_MAP, } cnat_snat_interface_map_type_t; @@ -51,6 +52,7 @@ typedef enum cnat_snat_policy_type_t_ { CNAT_SNAT_POLICY_NONE = 0, CNAT_SNAT_POLICY_IF_PFX = 1, + CNAT_SNAT_POLICY_K8S = 2, } cnat_snat_policy_type_t; typedef struct cnat_snat_policy_main_t_ |