[pve-devel] [PATCH pve-manager 2/3] api2: network: add bond-primary option

Alexandre Derumier aderumier at odiso.com
Wed Jan 8 04:31:19 CET 2020


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/API2/Network.pm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm
index 2d201c0e..a754c0bf 100644
--- a/PVE/API2/Network.pm
+++ b/PVE/API2/Network.pm
@@ -110,6 +110,11 @@ my $confdesc = {
 	optional => 1,
 	type => 'string', enum => $bond_mode_enum,
     },
+    'bond-primary' => {
+	description => "Specify the primary interface for active-backup bond.",
+	optional => 1,
+	type => 'string', format => 'pve-iface',
+    },
     bond_xmit_hash_policy => {
 	description => "Selects the transmit hash policy to use for slave selection in balance-xor and 802.3ad modes.",
 	optional => 1,
-- 
2.20.1




More information about the pve-devel mailing list