L2 over LISP and GRE (VPP-457)
[vpp.git] / vnet / vnet / dpo / drop_dpo.c
index 62f5648..048518c 100644 (file)
@@ -55,7 +55,7 @@ format_drop_dpo (u8 *s, va_list *ap)
     CLIB_UNUSED(index_t index) = va_arg(ap, index_t);
     CLIB_UNUSED(u32 indent) = va_arg(ap, u32);
 
-    return (format(s, "dpo-drop"));
+    return (format(s, "dpo-drop %U", format_dpo_proto, index));
 }
 
 const static dpo_vft_t drop_vft = {
@@ -86,11 +86,17 @@ const static char* const drop_mpls_nodes[] =
     "mpls-drop",
     NULL,
 };
+const static char* const drop_ethernet_nodes[] =
+{
+    "error-drop",
+    NULL,
+};
 const static char* const * const drop_nodes[DPO_PROTO_NUM] =
 {
     [DPO_PROTO_IP4]  = drop_ip4_nodes,
     [DPO_PROTO_IP6]  = drop_ip6_nodes,
     [DPO_PROTO_MPLS] = drop_mpls_nodes,
+    [DPO_PROTO_ETHERNET] = drop_ethernet_nodes,
 };
 
 void