gpe: fix gpe enable/disable command
[vpp.git] / src / vnet / lisp-gpe / lisp_gpe_sub_interface.c
index 26664f5..3f56dbe 100644 (file)
@@ -135,7 +135,8 @@ lisp_gpe_sub_interface_find_or_create_and_lock (const ip_address_t * lrloc,
        * find the main interface from the VNI
        */
       main_sw_if_index =
-       lisp_gpe_tenant_l3_iface_add_or_lock (vni, overlay_table_id);
+       lisp_gpe_tenant_l3_iface_add_or_lock (vni, overlay_table_id,
+                                             1 /* with_default_route */ );
 
       vnet_sw_interface_t sub_itf_template = {
        .type = VNET_SW_INTERFACE_TYPE_SUB,
@@ -217,9 +218,9 @@ lisp_gpe_sub_interface_get (index_t l3si)
 }
 
 u8 *
-format_lisp_gpe_sub_interface (u8 * s, va_list ap)
+format_lisp_gpe_sub_interface (u8 * s, va_list ap)
 {
-  lisp_gpe_sub_interface_t *l3s = va_arg (ap, lisp_gpe_sub_interface_t *);
+  lisp_gpe_sub_interface_t *l3s = va_arg (*ap, lisp_gpe_sub_interface_t *);
   vnet_main_t *vnm = vnet_get_main ();
 
   s = format (s, "%-16U",