VPP-35 Add GRE tunnels to sw_interface_dump
[vpp.git] / vpp-api-test / vat / api_format.c
index c36e059..37af449 100644 (file)
@@ -2984,6 +2984,12 @@ int api_sw_interface_dump (vat_main_t * vam)
     strncpy ((char *) mp->name_filter, "l2tpv3_tunnel", sizeof(mp->name_filter)-1);
     S;
 
+    /* and GRE tunnel interfaces */
+    M(SW_INTERFACE_DUMP, sw_interface_dump);
+    mp->name_filter_valid = 1;
+    strncpy ((char *) mp->name_filter, "gre", sizeof(mp->name_filter)-1);
+    S;
+
     /* Use a control ping for synchronization */
     {
         vl_api_control_ping_t * mp;