mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-22 07:51:16 +00:00
bin: vhost_user_net: Rename "--backend" to "--net-backend"
This will prevent it from conflicting when it is aggregated into the cloud-hypervisor binary. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
3ede2dc53a
commit
e12179a3e6
@ -431,10 +431,10 @@ fn main() {
|
|||||||
.author(crate_authors!())
|
.author(crate_authors!())
|
||||||
.about("Launch a vhost-user-net backend.")
|
.about("Launch a vhost-user-net backend.")
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("backend")
|
Arg::with_name("net-backend")
|
||||||
.long("backend")
|
.long("net-backend")
|
||||||
.help(
|
.help(
|
||||||
"Backend parameters \"ip=<ip_addr>,\
|
"vhost-user-net backend parameters \"ip=<ip_addr>,\
|
||||||
mask=<net_mask>,sock=<socket_path>,\
|
mask=<net_mask>,sock=<socket_path>,\
|
||||||
num_queues=<number_of_queues>,\
|
num_queues=<number_of_queues>,\
|
||||||
queue_size=<size_of_each_queue>\"",
|
queue_size=<size_of_each_queue>\"",
|
||||||
@ -444,7 +444,7 @@ fn main() {
|
|||||||
)
|
)
|
||||||
.get_matches();
|
.get_matches();
|
||||||
|
|
||||||
let vhost_user_net_backend = cmd_arguments.value_of("backend").unwrap();
|
let vhost_user_net_backend = cmd_arguments.value_of("net-backend").unwrap();
|
||||||
|
|
||||||
let backend_config = match VhostUserNetBackendConfig::parse(vhost_user_net_backend) {
|
let backend_config = match VhostUserNetBackendConfig::parse(vhost_user_net_backend) {
|
||||||
Ok(config) => config,
|
Ok(config) => config,
|
||||||
|
@ -2638,7 +2638,7 @@ mod tests {
|
|||||||
// Start the daemon
|
// Start the daemon
|
||||||
let mut daemon_child = Command::new("target/release/vhost_user_net")
|
let mut daemon_child = Command::new("target/release/vhost_user_net")
|
||||||
.args(&[
|
.args(&[
|
||||||
"--backend",
|
"--net-backend",
|
||||||
format!(
|
format!(
|
||||||
"ip={},mask=255.255.255.0,sock=/tmp/vunet.sock,num_queues=4,queue_size=1024",
|
"ip={},mask=255.255.255.0,sock=/tmp/vunet.sock,num_queues=4,queue_size=1024",
|
||||||
guest.network.host_ip
|
guest.network.host_ip
|
||||||
|
Loading…
Reference in New Issue
Block a user