mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vhost_user_net: Use config::OptionParser to simplify net backend parsing
Switch to using the recently added OptionParser in the code that parses the network backend. Whilst doing this also update the net-backend syntax to use "sock" rather than socket. Fixes: #1092 Partially fixes: #1091 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
f3f398eb44
commit
592de97fbd
@@ -444,12 +444,12 @@ mod tests {
|
||||
// Start the daemon
|
||||
let net_params = if let Some(tap_str) = tap {
|
||||
format!(
|
||||
"tap={},ip={},mask=255.255.255.0,sock={},num_queues={},queue_size=1024",
|
||||
"tap={},ip={},mask=255.255.255.0,socket={},num_queues={},queue_size=1024",
|
||||
tap_str, ip, vunet_socket_path, num_queues
|
||||
)
|
||||
} else {
|
||||
format!(
|
||||
"ip={},mask=255.255.255.0,sock={},num_queues={},queue_size=1024",
|
||||
"ip={},mask=255.255.255.0,socket={},num_queues={},queue_size=1024",
|
||||
ip, vunet_socket_path, num_queues
|
||||
)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user