aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/sr
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2017-04-24 10:46:54 -0400
committerFlorin Coras <florin.coras@gmail.com>2017-04-25 16:18:42 +0000
commit11b8dbf78af49d270a0e72abe7dea73eec30d85f (patch)
tree5c9c513483f5c468efcb64b82c03c32733dc3a77 /src/vnet/sr
parent45d3496f3d86ee1a930ce0ffd6ca3d1730355eb8 (diff)
"autoreply" flag: autogenerate standard xxx_reply_t messages
Change-Id: I72298aaae7d172082ece3a8edea4217c11b28d79 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet/sr')
-rw-r--r--src/vnet/sr/sr.api60
1 files changed, 5 insertions, 55 deletions
diff --git a/src/vnet/sr/sr.api b/src/vnet/sr/sr.api
index 5feadcb03ae..9e9007418b5 100644
--- a/src/vnet/sr/sr.api
+++ b/src/vnet/sr/sr.api
@@ -25,7 +25,7 @@
@param fib_table FIB table in which we should install the localsid entry
@param nh_addr Next Hop IPv4/IPv6 address. Only for L2/L3 xconnect.
*/
-define sr_localsid_add_del
+autoreply define sr_localsid_add_del
{
u32 client_index;
u32 context;
@@ -39,16 +39,6 @@ define sr_localsid_add_del
u8 nh_addr[16];
};
-/** \brief IPv6 SR LocalSID add/del request response
- @param context - sender context, to match reply w/ request
- @param retval - return value for request
-*/
-define sr_localsid_add_del_reply
-{
- u32 context;
- i32 retval;
-};
-
/** \brief IPv6 SR policy add
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
@@ -59,7 +49,7 @@ define sr_localsid_add_del_reply
@param fib_table is the VRF where to install the FIB entry for the BSID
@param segments is a vector of IPv6 address composing the segment list
*/
-define sr_policy_add
+autoreply define sr_policy_add
{
u32 client_index;
u32 context;
@@ -72,16 +62,6 @@ define sr_policy_add
u8 segments[0];
};
-/** \brief IPv6 SR Policy add request response
- @param context - sender context, to match reply w/ request
- @param retval - return value for request
-*/
-define sr_policy_add_reply
-{
- u32 context;
- i32 retval;
-};
-
/** \brief IPv6 SR policy modification
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
@@ -94,7 +74,7 @@ define sr_policy_add_reply
@param weight is the weight of the sid list. optional.
@param is_encap Mode. Encapsulation or SRH insertion.
*/
-define sr_policy_mod
+autoreply define sr_policy_mod
{
u32 client_index;
u32 context;
@@ -108,23 +88,13 @@ define sr_policy_mod
u8 segments[0];
};
-/** \brief IPv6 SR Policy modification request response
- @param context - sender context, to match reply w/ request
- @param retval - return value for request
-*/
-define sr_policy_mod_reply
-{
- u32 context;
- i32 retval;
-};
-
/** \brief IPv6 SR policy deletion
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
@param bsid is the bindingSID of the SR Policy
@param index is the index of the SR policy
*/
-define sr_policy_del
+autoreply define sr_policy_del
{
u32 client_index;
u32 context;
@@ -132,16 +102,6 @@ define sr_policy_del
u32 sr_policy_index;
};
-/** \brief IPv6 SR Policy deletion request response
- @param context - sender context, to match reply w/ request
- @param retval - return value for request
-*/
-define sr_policy_del_reply
-{
- u32 context;
- i32 retval;
-};
-
/** \brief IPv6 SR steering add/del
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
@@ -154,7 +114,7 @@ define sr_policy_del_reply
@param sw_if_index is the incoming interface for L2 traffic
@param traffic_type describes the type of traffic
*/
-define sr_steering_add_del
+autoreply define sr_steering_add_del
{
u32 client_index;
u32 context;
@@ -168,16 +128,6 @@ define sr_steering_add_del
u8 traffic_type;
};
-/** \brief IPv6 SR steering add/del request response
- @param context - sender context, to match reply w/ request
- @param retval - return value for request
-*/
-define sr_steering_add_del_reply
-{
- u32 context;
- i32 retval;
-};
-
/** \brief Dump the list of SR LocalSIDs
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request