Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
gtpu: remove api boilerplate
[vpp.git]
/
src
/
plugins
/
gtpu
/
gtpu.api
diff --git
a/src/plugins/gtpu/gtpu.api
b/src/plugins/gtpu/gtpu.api
index
fea4791
..
b5f4f02
100644
(file)
--- a/
src/plugins/gtpu/gtpu.api
+++ b/
src/plugins/gtpu/gtpu.api
@@
-13,7
+13,7
@@
* limitations under the License.
*/
* limitations under the License.
*/
-vl_api_version 1.0.0
+option version = "1.0.0";
/** \brief Set or delete an GTPU tunnel
@param client_index - opaque cookie to identify the sender
/** \brief Set or delete an GTPU tunnel
@param client_index - opaque cookie to identify the sender
@@
-39,6
+39,7
@@
define gtpu_add_del_tunnel
u32 encap_vrf_id;
u32 decap_next_index;
u32 teid;
u32 encap_vrf_id;
u32 decap_next_index;
u32 teid;
+ option vat_help = "src <ip-addr> { dst <ip-addr> | group <mcast-ip-addr> { <intfc> | mcast_sw_if_index <nn> } } teid <teid> [encap-vrf-id <nn>] [decap-next <l2|nn>] [del]";
};
/** \brief reply for set or delete an GTPU tunnel
};
/** \brief reply for set or delete an GTPU tunnel
@@
-63,6
+64,7
@@
define gtpu_tunnel_dump
u32 client_index;
u32 context;
u32 sw_if_index;
u32 client_index;
u32 context;
u32 sw_if_index;
+ option vat_help = "[<intfc> | sw_if_index <nn>]";
};
/** \brief dump details of an GTPU tunnel
};
/** \brief dump details of an GTPU tunnel
@@
-96,23
+98,14
@@
define gtpu_tunnel_details
@param is_ipv6 - if non-zero, enable ipv6-gtpu-bypass, else ipv4-gtpu-bypass
@param enable - if non-zero enable, else disable
*/
@param is_ipv6 - if non-zero, enable ipv6-gtpu-bypass, else ipv4-gtpu-bypass
@param enable - if non-zero enable, else disable
*/
-define sw_interface_set_gtpu_bypass
+
autoreply
define sw_interface_set_gtpu_bypass
{
u32 client_index;
u32 context;
u32 sw_if_index;
u8 is_ipv6;
u8 enable;
{
u32 client_index;
u32 context;
u32 sw_if_index;
u8 is_ipv6;
u8 enable;
-};
-
-/** \brief Interface set gtpu-bypass response
- @param context - sender context, to match reply w/ request
- @param retval - return code for the request
-*/
-define sw_interface_set_gtpu_bypass_reply
-{
- u32 context;
- i32 retval;
+ option vat_help = "<intfc> | sw_if_index <id> [ip4 | ip6] [enable | disable]";
};
/*
};
/*