diff options
author | Chris Luke <chrisy@flirble.org> | 2016-05-06 10:12:30 -0400 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-05-07 13:01:55 +0000 |
commit | a6116ef5cf0e970187e520c133ad4c6880b735c8 (patch) | |
tree | fb91cbc4c7257f9bbdf097d7839380c9613cc011 /vpp-api-test/vat/api_format.c | |
parent | 716490069ed21c23f51b928a35d3f6ba9e3e7de9 (diff) |
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 <chrisy@flirble.org>
Diffstat (limited to 'vpp-api-test/vat/api_format.c')
-rw-r--r-- | vpp-api-test/vat/api_format.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |