Enable af_packet interfaces in the API test apps
[vpp.git] / vpp-api-test / vat / api_format.c
index 180e76e..959d33b 100644 (file)
@@ -2619,6 +2619,12 @@ int api_sw_interface_dump (vat_main_t * vam)
     strncpy ((char *) mp->name_filter, "vxlan", sizeof(mp->name_filter-1)); 
     S;
 
+    /* and host (af_packet) interfaces */
+    M(SW_INTERFACE_DUMP, sw_interface_dump);
+    mp->name_filter_valid = 1;
+    strncpy ((char *) mp->name_filter, "host", sizeof(mp->name_filter-1));
+    S;
+
     /* and l2tpv3 tunnel interfaces */
     M(SW_INTERFACE_DUMP, sw_interface_dump);
     mp->name_filter_valid = 1;