if (NULL == lt)
{
pool_get (lisp_gpe_tenant_pool, lt);
- memset (lt, 0, sizeof (*lt));
+ clib_memset (lt, 0, sizeof (*lt));
lt->lt_vni = vni;
lt->lt_table_id = ~0;
*
* @paran vni The tenant's VNI
* @param table_id the Tenant's L3 table ID.
+ * @param with_default_route Install default route for the interface
*
* @return the SW IF index of the L3 interface
*/
u32
-lisp_gpe_tenant_l3_iface_add_or_lock (u32 vni, u32 table_id)
+lisp_gpe_tenant_l3_iface_add_or_lock (u32 vni, u32 table_id,
+ u8 with_default_route)
{
lisp_gpe_tenant_t *lt;
{
/* create the l3 interface since there are currently no users of it */
lt->lt_l3_sw_if_index =
- lisp_gpe_add_l3_iface (&lisp_gpe_main, vni, table_id);
+ lisp_gpe_add_l3_iface (&lisp_gpe_main, vni, table_id,
+ with_default_route);
}
lt->lt_locks[LISP_GPE_TENANT_LOCK_L3_IFACE]++;
* @brif Show/display one tenant
*/
static u8 *
-format_lisp_gpe_tenant (u8 * s, va_list ap)
+format_lisp_gpe_tenant (u8 * s, va_list * ap)
{
- const lisp_gpe_tenant_t *lt = va_arg (ap, lisp_gpe_tenant_t *);
+ const lisp_gpe_tenant_t *lt = va_arg (*ap, lisp_gpe_tenant_t *);
s = format (s, "VNI:%d ", lt->lt_vni);
/* *INDENT-OFF* */
VLIB_CLI_COMMAND (lisp_gpe_tenant_command) = {
- .path = "show lisp gpe tenant",
- .short_help = "show lisp gpe tenant",
+ .path = "show gpe tenant",
+ .short_help = "show gpe tenant",
.function = lisp_gpe_tenant_show,
};
/* *INDENT-ON* */