aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-06-07 10:59:25 +0200
committerDamjan Marion <dmarion@me.com>2019-06-07 10:06:44 +0000
commit8edca1361674ce116a3a02d3adbfe0a78a28a2ca (patch)
treee63f370b6a20a128e6f33b22ffda60b633afc73f
parent499ea648e2884ca81fa139805f6dbff3643fab8d (diff)
p2p ethernet: update p2p_ethernet.api with explicit types.
Change-Id: Id6b2c2321c5f1d56e7cfab24a7c1641b38e94e19 Type: refactor Signed-off-by: Ole Troan <ot@cisco.com>
-rw-r--r--src/vnet/ethernet/p2p_ethernet.api13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/vnet/ethernet/p2p_ethernet.api b/src/vnet/ethernet/p2p_ethernet.api
index c75ed40c61c..64e19a05f57 100644
--- a/src/vnet/ethernet/p2p_ethernet.api
+++ b/src/vnet/ethernet/p2p_ethernet.api
@@ -15,28 +15,31 @@
option version = "1.0.0";
+import "vnet/interface_types.api";
+import "vnet/ethernet/ethernet_types.api";
+
define p2p_ethernet_add
{
u32 client_index;
u32 context;
- u32 parent_if_index;
+ vl_api_interface_index_t parent_if_index;
u32 subif_id;
- u8 remote_mac[6];
+ vl_api_mac_address_t remote_mac;
};
define p2p_ethernet_add_reply
{
u32 context;
i32 retval;
- u32 sw_if_index;
+ vl_api_interface_index_t sw_if_index;
};
define p2p_ethernet_del
{
u32 client_index;
u32 context;
- u32 parent_if_index;
- u8 remote_mac[6];
+ vl_api_interface_index_t parent_if_index;
+ vl_api_mac_address_t remote_mac;
};
define p2p_ethernet_del_reply