aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/interface.api
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2021-07-26 13:38:05 -0700
committerDamjan Marion <dmarion@me.com>2021-09-08 14:35:54 +0000
commitf49734d3b9afb27e3f527e1477fee4952d546f9a (patch)
tree2d67c929ffe367c881134b3e87e558c08b88bb0d /src/vnet/interface.api
parent0c373fc928316ef9928f4171b7c602c259c60d77 (diff)
interface: add custom interface name support
add CLI "set interface name <current-int-name> <new-int-name> and the corresponding binary API to allow custom interface name setting for any interface. Type: feature Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: I2b39da59879fd4526bcb5aa5854b6bd21e72ea73
Diffstat (limited to 'src/vnet/interface.api')
-rw-r--r--src/vnet/interface.api18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/vnet/interface.api b/src/vnet/interface.api
index 38dc4320b8d..d89dea4e353 100644
--- a/src/vnet/interface.api
+++ b/src/vnet/interface.api
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-option version = "3.2.2";
+option version = "3.2.3";
import "vnet/interface_types.api";
import "vnet/ethernet/ethernet_types.api";
@@ -458,6 +458,22 @@ autoreply define sw_interface_set_rx_placement
bool is_main;
};
+/** \brief Set custom interface name
+ Set custom interface name for the interface.
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param sw_if_index - the interface whose name will be set
+ @param name - the custom interface name to be set
+k
+*/
+autoreply define sw_interface_set_interface_name
+{
+ u32 client_index;
+ u32 context;
+ vl_api_interface_index_t sw_if_index;
+ string name[64];
+};
+
/** \brief dump the rx queue placement of interface(s)
@param sw_if_index - optional interface index for which queue placement to
be requested. sw_if_index = ~0 will dump placement information for all