aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/dev/api.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/dev/api.h')
-rw-r--r--src/vnet/dev/api.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/vnet/dev/api.h b/src/vnet/dev/api.h
index 1b7bf27d62a..3e552e4326e 100644
--- a/src/vnet/dev/api.h
+++ b/src/vnet/dev/api.h
@@ -65,4 +65,27 @@ vnet_dev_rv_t
vnet_dev_api_remove_port_if (vlib_main_t *,
vnet_dev_api_remove_port_if_args_t *);
+typedef struct
+{
+ u32 primary_sw_if_index;
+ vnet_dev_if_name_t intf_name;
+ u8 *args;
+
+ /* return */
+ u32 sw_if_index;
+} vnet_dev_api_port_add_sec_if_args_t;
+
+vnet_dev_rv_t
+vnet_dev_api_port_add_sec_if (vlib_main_t *,
+ vnet_dev_api_port_add_sec_if_args_t *);
+
+typedef struct
+{
+ u32 sw_if_index;
+} vnet_dev_api_port_del_sec_if_args_t;
+
+vnet_dev_rv_t
+vnet_dev_api_port_del_sec_if (vlib_main_t *,
+ vnet_dev_api_port_del_sec_if_args_t *);
+
#endif /* _VNET_DEV_API_H_ */