proxmox-backup-manager: add network create command

This commit is contained in:
Dietmar Maurer 2020-05-08 09:55:56 +02:00
parent 3dd27a3bf8
commit 86a5d56c4e

View File

@ -343,6 +343,13 @@ fn network_commands() -> CommandLineInterface {
"changes",
CliCommand::new(&API_METHOD_PENDING_NETWORK_CHANGES)
)
.insert(
"create",
CliCommand::new(&api2::node::network::API_METHOD_CREATE_INTERFACE)
.fixed_param("node", String::from("localhost"))
.arg_param(&["iface"])
.completion_cb("iface", config::network::complete_interface_name)
)
.insert(
"update",
CliCommand::new(&api2::node::network::API_METHOD_UPDATE_INTERFACE)