31 #ifndef included_vnet_gbp_h 32 #define included_vnet_gbp_h 39 #define EPG_INVALID (~0) 76 const ip46_address_t * ip,
epg_id_t epg_id);
A Group Based Policy Endpoint.
gbp_contract_key_t gc_key
source and destination EPGs
int(* gbp_endpoint_cb_t)(gbp_endpoint_t *gbpe, void *ctx)
void gbp_contract_delete(epg_id_t src_epg, epg_id_t dst_epg)
void gbp_endpoint_delete(u32 sw_if_index, const ip46_address_t *ip)
gbp_endpoint_key_t * ge_key
The endpoint's interface and IP address.
u32 gek_sw_if_index
The interface on which the EP is connected.
struct gbp_contract_t_ gbp_contract_t
A Group Based Policy Contract.
void gbp_contract_update(epg_id_t src_epg, epg_id_t dst_epg, u32 acl_index)
void gbp_endpoint_update(u32 sw_if_index, const ip46_address_t *ip, epg_id_t epg_id)
struct gbp_endpoint_key_t_ gbp_endpoint_key_t
The key for an Endpoint.
void gbp_contract_walk(gbp_contract_cb_t bgpe, void *ctx)
ip46_address_t gek_ip
The IP[46] address of the endpoint.
struct gbp_endpoint_t_ gbp_endpoint_t
A Group Based Policy Endpoint.
epg_id_t gck_src
source and destination EPGs for which the ACL applies
epg_id_t ge_epg_id
The endpoint's designated EPG.
u32 epg_id_t
Group Base Policy (GBP) defines:
u32 gc_acl_index
The ACL to apply for packets from the source to the destination EPG.
int(* gbp_contract_cb_t)(gbp_contract_t *gbpe, void *ctx)
void gbp_endpoint_walk(gbp_endpoint_cb_t bgpe, void *ctx)
struct gbp_contract_key_t_ gbp_contract_key_t
The key for an Contract.
A Group Based Policy Contract.