16 #ifndef __GBP_ENDPOINT_GROUP_H__ 17 #define __GBP_ENDPOINT_GROUP_H__ 76 u32 uplink_sw_if_index);
129 return (&gg->
gg_dpo[fproto]);
EPG DB, key'd on EGP-ID.
void gbp_endpoint_group_walk(gbp_endpoint_group_cb_t bgpe, void *ctx)
#define FIB_PROTOCOL_IP_MAX
Definition outside of enum so it does not need to be included in non-defaulted switch statements...
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
index_t gg_rd
route-domain/IP-table ID the EPG is in
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
static u32 gbp_epg_itf_lookup(epg_id_t epg)
struct gpb_endpoint_group_t_ gbp_endpoint_group_t
An Endpoint Group representation.
gbp_endpoint_group_t * gbp_endpoint_group_pool
Pool of GBP endpoint_groups.
u8 gg_is_ext
Is the EPG an external/NAT.
index_t gbp_endpoint_group_find(epg_id_t epg_id)
int(* gbp_endpoint_group_cb_t)(gbp_endpoint_group_t *gbpe, void *ctx)
u8 * format_gbp_endpoint_group(u8 *s, va_list *args)
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
static const dpo_id_t * gbp_epg_dpo_lookup(epg_id_t epg, fib_protocol_t fproto)
gbp_endpoint_group_db_t gbp_endpoint_group_db
DP functions and databases.
An Endpoint Group representation.
gbp_endpoint_group_t * gbp_endpoint_group_get(index_t i)
u32 gbp_endpoint_group_get_bd_id(const gbp_endpoint_group_t *)
u32 gg_locks
Locks/references to this EPG.
int gbp_endpoint_group_add_and_lock(epg_id_t epg_id, u32 bd_id, u32 rd_id, u32 uplink_sw_if_index)
int gbp_endpoint_group_delete(epg_id_t epg_id)
struct gbp_endpoint_group_db_t_ gbp_endpoint_group_db_t
EPG DB, key'd on EGP-ID.
index_t gbp_endpoint_group_get_fib_index(const gbp_endpoint_group_t *gg, fib_protocol_t fproto)
dpo_id_t gg_dpo[FIB_PROTOCOL_IP_MAX]
The DPO used in the L3 path for forwarding internal subnets.
void gbp_endpoint_group_unlock(index_t index)
void gbp_endpoint_group_lock(index_t index)
u32 gg_uplink_sw_if_index
the uplink interface dedicated to the EPG
index_t gg_gbd
Bridge-domain ID the EPG is in.