summaryrefslogtreecommitdiffstats
path: root/src/vat/api_format.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2019-09-27 13:44:28 +0200
committerNeale Ranns <nranns@cisco.com>2019-10-09 11:08:49 +0000
commitde312c2d5fd709e2562955f0a57a56ea91455d7d (patch)
tree6583b0e79ae0c9ddbc791ec5cabe959870160839 /src/vat/api_format.c
parent2429f8bdac28cae419d8d95ee4f039554f95d9a5 (diff)
interface: dump the interface device type
Type: feature Change-Id: I22e2ef34631c9432311ff6457504e0649e0512b4 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vat/api_format.c')
-rw-r--r--src/vat/api_format.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index 9f02507e4f7..1a2fca1622e 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -1029,6 +1029,8 @@ static void vl_api_sw_interface_details_t_handler_json
sizeof (mp->l2_address));
vat_json_object_add_string_copy (node, "interface_name",
mp->interface_name);
+ vat_json_object_add_string_copy (node, "interface_dev_type",
+ mp->interface_dev_type);
vat_json_object_add_uint (node, "flags", mp->flags);
vat_json_object_add_uint (node, "link_duplex", mp->link_duplex);
vat_json_object_add_uint (node, "link_speed", mp->link_speed);