From a6116ef5cf0e970187e520c133ad4c6880b735c8 Mon Sep 17 00:00:00 2001 From: Chris Luke Date: Fri, 6 May 2016 10:12:30 -0400 Subject: VPP-35 Add GRE tunnels to sw_interface_dump GRE tunnels were missing from vpp_api_test's sw_interface_dump command. $ sudo ./build-root/install-vpp_debug-native/vpp-api-test/bin/vpp_api_test json vat# sw_interface_dump [ ... { "sw_if_index": 7, "sup_sw_if_index": 7, "l2_address_length": 0, "l2_address": [0, 0, 0, 0, 0, 0, 0, 0], "interface_name": "gre0", "admin_up_down": 1, "link_up_down": 0, "link_duplex": 0, "link_speed": 0, "mtu": 0, "sub_id": 0, "sub_dot1ad": 0, "sub_number_of_tags": 0, "sub_outer_vlan_id": 0, "sub_inner_vlan_id": 0, "sub_exact_match": 0, "sub_default": 0, "sub_outer_vlan_id_any": 0, "sub_inner_vlan_id_any": 0, "vtr_op": 0, "vtr_push_dot1q": 0, "vtr_tag1": 0, "vtr_tag2": 0 } ] Change-Id: I6f174f3c384eac464250b22f43b25be6a844aa66 Signed-off-by: Chris Luke --- vpp-api-test/vat/api_format.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vpp-api-test/vat/api_format.c b/vpp-api-test/vat/api_format.c index c36e0591b39..37af449f371 100644 --- a/vpp-api-test/vat/api_format.c +++ b/vpp-api-test/vat/api_format.c @@ -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; -- cgit 1.2.3-korg