From 86a5d56c4e0d2e68a6ceaa70003d15ffbd1cccc4 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 8 May 2020 09:55:56 +0200 Subject: [PATCH] proxmox-backup-manager: add network create command --- src/bin/proxmox-backup-manager.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bin/proxmox-backup-manager.rs b/src/bin/proxmox-backup-manager.rs index 09d5b661..49626f2b 100644 --- a/src/bin/proxmox-backup-manager.rs +++ b/src/bin/proxmox-backup-manager.rs @@ -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)