diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2018-09-26 05:07:25 -0700 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2018-09-26 16:54:46 +0000 |
commit | f5fa5ae2b021f946fbb8ec56e692459cd34bc7fb (patch) | |
tree | c5ba2b4602d39d8a7b366706b5535c1c6ac01f81 /src/vat | |
parent | 2ac7edeeaf01dc21d9b87e764b6147c035a87c58 (diff) |
MPLS tunnel dump: use sw_if_index not tunnel_index
Change-Id: I6c0d5aec6ee96a0d40358f0e09a0901b22265063
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vat')
-rw-r--r-- | src/vat/api_format.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c index d334bcce870..9a31f187bef 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -20424,23 +20424,20 @@ api_mpls_tunnel_dump (vat_main_t * vam) { vl_api_mpls_tunnel_dump_t *mp; vl_api_control_ping_t *mp_ping; - i32 index = -1; + u32 sw_if_index = ~0; int ret; /* Parse args required to build the message */ while (unformat_check_input (vam->input) != UNFORMAT_END_OF_INPUT) { - if (!unformat (vam->input, "tunnel_index %d", &index)) - { - index = -1; - break; - } + if (unformat (vam->input, "sw_if_index %d", &sw_if_index)) + ; } - print (vam->ofp, " tunnel_index %d", index); + print (vam->ofp, " sw_if_index %d", sw_if_index); M (MPLS_TUNNEL_DUMP, mp); - mp->tunnel_index = htonl (index); + mp->sw_if_index = htonl (sw_if_index); S (mp); /* Use a control ping for synchronization */ |