[pve-devel] [PATCH pmg-api 1/2] api2: network: add bond-primary option

Alexandre Derumier aderumier at odiso.com
Thu Jan 9 14:25:14 CET 2020


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

diff --git a/src/PMG/API2/Network.pm b/src/PMG/API2/Network.pm
index b6a58da..1c3e8c1 100644
--- a/src/PMG/API2/Network.pm
+++ b/src/PMG/API2/Network.pm
@@ -101,6 +101,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