vmm: Give deprecation warning for "--vhost-user-net" syntax

This will be removed in a future release.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-01-27 16:18:00 +00:00
parent f322e924ad
commit 2c6f528c23

View File

@ -899,6 +899,7 @@ fn default_vunetconfig_mac() -> MacAddr {
impl VhostUserNetConfig {
pub fn parse(vhost_user_net: &str) -> Result<Self> {
error!("Using deprecated --vhost-user-net syntax. Use --net with vhost_user=true,socket=<socket path>");
// Split the parameters based on the comma delimiter
let params_list: Vec<&str> = vhost_user_net.split(',').collect();