summaryrefslogtreecommitdiffstats
path: root/src/plugins/memif/memif.api
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-10-09 12:39:32 +0200
committerNeale Ranns <nranns@cisco.com>2019-10-10 07:33:42 +0000
commit3ae9f5a90ac23ceaa1d5052cfdab417c1ef8dfdc (patch)
tree8227537e35b4a55428ab15334c83a4591514e21c /src/plugins/memif/memif.api
parent1890e9ce57a4b6dbc732f8f11d78001bea7c5855 (diff)
memif: remove api boilerplate
Type: refactor Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Icab769607c4a5890dc80b8f2661faa7e297c2a27
Diffstat (limited to 'src/plugins/memif/memif.api')
-rw-r--r--src/plugins/memif/memif.api3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/memif/memif.api b/src/plugins/memif/memif.api
index 4c4b587aac7..1f2c547c740 100644
--- a/src/plugins/memif/memif.api
+++ b/src/plugins/memif/memif.api
@@ -48,6 +48,7 @@ autoreply define memif_socket_filename_add_del
bool is_add; /* 0 = remove, 1 = add association */
u32 socket_id; /* unique non-0 id for given socket file name */
string socket_filename[108]; /* NUL terminated filename */
+ option vat_help = "[add|del] id <id> filename <file>";
};
/** \brief Create memory interface
@@ -83,6 +84,7 @@ define memif_create
bool no_zero_copy; /* disable zero copy */
vl_api_mac_address_t hw_addr; /* optional, randomly generated if zero */
string secret[24]; /* optional, default is "", max length 24 */
+ option vat_help = "[id <id>] [socket-id <id>] [ring_size <size>] [buffer_size <size>] [hw_addr <mac_address>] [secret <string>] [mode ip] <master|slave>";
};
/** \brief Create memory interface response
@@ -108,6 +110,7 @@ autoreply define memif_delete
u32 context;
vl_api_interface_index_t sw_if_index;
+ option vat_help = "<sw_if_index>";
};
/** \brief Memory interface details structure