diff options
author | Jon Loeliger <jdl@netgate.com> | 2018-03-12 14:50:08 -0500 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-03-12 21:33:25 +0000 |
commit | 179ab361b78076bb3732d8c518c15f496a9373a5 (patch) | |
tree | 47899ad930db4437d119f04bbff8bcad67a585d1 /src/vat | |
parent | 611d918f80d23ef2a9b7de6a00b725ebc2929866 (diff) |
SPAN: Add 'is_l2" flag to DETAILS response messages.
Change-Id: I375bb0e663bc082d98a29fb101c653557ddc8f55
Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'src/vat')
-rw-r--r-- | src/vat/api_format.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c index 776f3500675..7bb463c867f 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -20522,8 +20522,9 @@ vl_api_sw_interface_span_details_t_handler (vl_api_sw_interface_span_details_t } })); /* *INDENT-ON* */ - print (vam->ofp, "%20s => %20s (%s)", - sw_if_from_name, sw_if_to_name, states[mp->state]); + print (vam->ofp, "%20s => %20s (%s) %s", + sw_if_from_name, sw_if_to_name, states[mp->state], + mp->is_l2 ? "l2" : "device"); } static void @@ -20572,6 +20573,7 @@ static void vat_json_object_add_string_copy (node, "dst-if-name", sw_if_to_name); } vat_json_object_add_uint (node, "state", mp->state); + vat_json_object_add_uint (node, "is-l2", mp->is_l2); } static int |