aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2020-04-28 01:12:04 -0400
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2020-04-28 01:12:04 -0400
commitc0e9441e79b63ea09d5b282910d104960d45026d (patch)
treee677ccc526c70a82cd2702be7c42864392b1279f /src/vnet
parentf5445bf36f3be001ca50881c66853718073771b8 (diff)
tests: move defaults from defaultmapping to .api files
facilitates use of papi beyond the tests. Type: improvement Change-Id: I3d502d9130b81a7fb65ee69bb06fe55802b28a27 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/bonding/bond.api4
-rw-r--r--src/vnet/ip/ip.api18
-rw-r--r--src/vnet/l2/l2.api2
-rw-r--r--src/vnet/mpls/mpls.api6
-rw-r--r--src/vnet/session/session.api2
-rw-r--r--src/vnet/srv6/sr.api4
-rw-r--r--src/vnet/syslog/syslog.api10
-rw-r--r--src/vnet/vxlan-gbp/vxlan_gbp.api2
8 files changed, 24 insertions, 24 deletions
diff --git a/src/vnet/bonding/bond.api b/src/vnet/bonding/bond.api
index 34fa0204a39..865dcbe0857 100644
--- a/src/vnet/bonding/bond.api
+++ b/src/vnet/bonding/bond.api
@@ -49,7 +49,7 @@ enum bond_lb_algo
@param id - if non-~0, specifies a custom interface ID
@param use_custom_mac - if set, mac_address is valid
@param mac_address - mac addr to assign to the interface if use_custom_mac is set
- @param mode - mode, required (1=round-robin, 2=active-backup, 3=xor, 4=broadcastcast, 5=lacp)
+ @param mode - mode, required (1=round-robin, 2=active-backup, 3=xor, 4=broadcast, 5=lacp)
@param lb - load balance, optional (0=l2, 1=l34, 2=l23) valid for xor and lacp modes. Otherwise ignored
@param numa_only - if numa_only is set, pkts will be transmitted by LAG members on local numa node only if have at least one, otherwise it works as usual.
*/
@@ -57,7 +57,7 @@ define bond_create
{
u32 client_index;
u32 context;
- u32 id;
+ u32 id [default=0xFFFFFFFF];
bool use_custom_mac;
vl_api_mac_address_t mac_address;
vl_api_bond_mode_t mode;
diff --git a/src/vnet/ip/ip.api b/src/vnet/ip/ip.api
index 73c73a3cee0..5624bcfaf6a 100644
--- a/src/vnet/ip/ip.api
+++ b/src/vnet/ip/ip.api
@@ -31,11 +31,11 @@ import "vnet/interface_types.api";
/** \brief An IP table
@param is_ipv6 - V4 or V6 table
@param table_id - table ID associated with the route
- This table ID will apply to both the unicats
- and mlticast FIBs
+ This table ID will apply to both the unicast
+ and multicast FIBs
@param name - A client provided name/tag for the table. If this is
not set by the client, then VPP will generate something
- meaningfull.
+ meaningful.
*/
typedef ip_table
{
@@ -73,10 +73,10 @@ define ip_table_dump
has a very different set of entries it wants in the table than VPP
currently has. The CP would thus like to 'replace' VPP's current table
only by specifying what the new set of entries shall be, i.e. it is not
- going to delete anything that already eixts.
- the CP delcartes the start of this procedure with this begin_replace
+ going to delete anything that already exists.
+ the CP declares the start of this procedure with this begin_replace
API Call, and when it has populated all the entries it wants, it calls
- the below end_replace API. From this point on it is of coursce free
+ the below end_replace API. From this point on it is of course free
to add and delete entries as usual.
The underlying mechanism by which VPP implements this replace is
purposefully left unspecified.
@@ -336,7 +336,7 @@ define ip_address_dump
/** \brief IP unnumbered configurations
@param sw_if_index The interface that has unnumbered configuration
- @param ip_sw_if_index The IP interface that it is unnnumbered to
+ @param ip_sw_if_index The IP interface that it is unnumbered to
*/
define ip_unnumbered_details
{
@@ -352,7 +352,7 @@ define ip_unnumbered_dump
{
u32 client_index;
u32 context;
- vl_api_interface_index_t sw_if_index;
+ vl_api_interface_index_t sw_if_index [default=0xffffffff];
};
define ip_details
@@ -404,7 +404,7 @@ autoreply define ip_punt_police
/** \brief Punt redirect type
@param rx_sw_if_index - specify the original RX interface of traffic
that should be redirected. ~0 means any interface.
- @param tx_sw_if_index - the TX interface to which traffic shoulde be
+ @param tx_sw_if_index - the TX interface to which traffic should be
redirected.
@param nh - the next-hop to redirect the traffic to.
@param is_ipv6 - 1 for IPv6 neighbor, 0 for IPv4
diff --git a/src/vnet/l2/l2.api b/src/vnet/l2/l2.api
index 00ff66c9019..b6bd4b5f7b1 100644
--- a/src/vnet/l2/l2.api
+++ b/src/vnet/l2/l2.api
@@ -610,7 +610,7 @@ autoreply define bvi_delete
vl_api_interface_index_t sw_if_index;
};
-/** \brief Register for IP4 ARP resolution event on receing ARP reply or
+/** \brief Register for IP4 ARP resolution event on receiving ARP reply or
MAC/IP info from ARP requests in L2 BDs
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
diff --git a/src/vnet/mpls/mpls.api b/src/vnet/mpls/mpls.api
index 25aa1c645af..fb3ab1a4798 100644
--- a/src/vnet/mpls/mpls.api
+++ b/src/vnet/mpls/mpls.api
@@ -81,7 +81,7 @@ define mpls_tunnel_dump
{
u32 client_index;
u32 context;
- vl_api_interface_index_t sw_if_index;
+ vl_api_interface_index_t sw_if_index [default=0xffffffff];
};
/** \brief mpls tunnel details
@@ -99,7 +99,7 @@ manual_endian manual_print define mpls_tunnel_details
@param mt_is_add - Is this a route add or delete
@param mt_name - A client provided name/tag for the table. If this
is not set by the client, then VPP will generate
- something meaningfull.
+ something meaningful.
*/
typedef mpls_table
{
@@ -133,7 +133,7 @@ define mpls_table_details
@param mr_table_id - The MPLS table-id the route is added in
@param mr_label - The MPLS label value
@param mr_eos - The End of stack bit
- @param mr_eos_proto - If EOS then this is the DPO packect's proto post pop
+ @param mr_eos_proto - If EOS then this is the DPO packet's proto post pop
@param mr_is_multicast - Is this a multicast route
@param mr_n_paths - The number of paths
@param mr_paths - The paths
diff --git a/src/vnet/session/session.api b/src/vnet/session/session.api
index b897ae020ed..2f5e452533c 100644
--- a/src/vnet/session/session.api
+++ b/src/vnet/session/session.api
@@ -218,7 +218,7 @@ define app_namespace_add_del {
u32 client_index;
u32 context;
u64 secret;
- vl_api_interface_index_t sw_if_index;
+ vl_api_interface_index_t sw_if_index [default=0xffffffff];
u32 ip4_fib_id;
u32 ip6_fib_id;
string namespace_id[];
diff --git a/src/vnet/srv6/sr.api b/src/vnet/srv6/sr.api
index 75a23b06e04..b33f0ebd811 100644
--- a/src/vnet/srv6/sr.api
+++ b/src/vnet/srv6/sr.api
@@ -36,7 +36,7 @@ typedef srv6_sid_list
@param end_psp Boolean of whether decapsulation is allowed in this function
@param behavior Type of behavior (function) for this localsid
@param sw_if_index Only for L2/L3 xconnect. OIF. In VRF variant the
- fib_table.
+ fib_table. Default:0xffffffff
@param vlan_index Only for L2 xconnect. Outgoing VLAN tag.
@param fib_table FIB table in which we should install the localsid entry
@param nh_addr Next Hop IPv46 address. Only for L2/L3 xconnect.
@@ -49,7 +49,7 @@ autoreply define sr_localsid_add_del
vl_api_ip6_address_t localsid;
bool end_psp;
vl_api_sr_behavior_t behavior;
- vl_api_interface_index_t sw_if_index;
+ vl_api_interface_index_t sw_if_index [default=0xffffffff];
u32 vlan_index;
u32 fib_table;
vl_api_address_t nh_addr;
diff --git a/src/vnet/syslog/syslog.api b/src/vnet/syslog/syslog.api
index 3ba5d69cc41..556de61015d 100644
--- a/src/vnet/syslog/syslog.api
+++ b/src/vnet/syslog/syslog.api
@@ -33,9 +33,9 @@ enum syslog_severity
@param context - sender context, to match reply w/ request
@param src_address - IPv4 address of syslog sender (source)
@param collector_address - IPv4 address of syslog collector (destination)
- @param collector_port - UDP port of syslog colector (destination)
+ @param collector_port - UDP port of syslog collector (destination) Default: 514
@param vrf_id - VRF/FIB table ID
- @param max_msg_size - maximum message length
+ @param max_msg_size - maximum message length. Default: 480
*/
autoreply define syslog_set_sender
{
@@ -43,9 +43,9 @@ autoreply define syslog_set_sender
u32 context;
vl_api_ip4_address_t src_address;
vl_api_ip4_address_t collector_address;
- u16 collector_port;
+ u16 collector_port [default=514];
u32 vrf_id;
- u32 max_msg_size;
+ u32 max_msg_size [default=480];
};
/** \brief Get syslog sender configuration
@@ -63,7 +63,7 @@ define syslog_get_sender
@param retval - return code for the request
@param src_address - IPv4 address of syslog sender (source)
@param collector_address - IPv4 address of syslog collector (destination)
- @param collector_port - UDP port of syslog colector (destination)
+ @param collector_port - UDP port of syslog collector (destination)
@param vrf_id - VRF/FIB table ID
@param max_msg_size - maximum message length
*/
diff --git a/src/vnet/vxlan-gbp/vxlan_gbp.api b/src/vnet/vxlan-gbp/vxlan_gbp.api
index 40d61a5f804..c3a8845dec3 100644
--- a/src/vnet/vxlan-gbp/vxlan_gbp.api
+++ b/src/vnet/vxlan-gbp/vxlan_gbp.api
@@ -69,7 +69,7 @@ define vxlan_gbp_tunnel_dump
{
u32 client_index;
u32 context;
- vl_api_interface_index_t sw_if_index;
+ vl_api_interface_index_t sw_if_index [default=0xffffffff];
};
define vxlan_gbp_tunnel_details