From 76814e14cfa7cdfdf48ccb02f962fcc15bc40eac Mon Sep 17 00:00:00 2001 From: Sharath Babu Date: Thu, 2 Mar 2017 12:18:26 +0530 Subject: [PATCH] Adding new APIs for pool reconfigure managment interface --- XenModel/XenAPI/Pool.cs | 22 ++++++++++++++++++++++ XenModel/XenAPI/Proxy.cs | 8 ++++++++ 2 files changed, 30 insertions(+) diff --git a/XenModel/XenAPI/Pool.cs b/XenModel/XenAPI/Pool.cs index 3d9a23527..6aaab8c60 100644 --- a/XenModel/XenAPI/Pool.cs +++ b/XenModel/XenAPI/Pool.cs @@ -1196,6 +1196,28 @@ namespace XenAPI return XenRef.Create(session.proxy.async_pool_recover_slaves(session.uuid).parse()); } + /// + /// Reconfigure the management network interface for all Hosts in the Pool + /// First published in . + /// + /// The session + /// The network + public static void management_reconfigure(Session session, string _network) + { + session.proxy.pool_management_reconfigure(session.uuid, (_network != null) ? _network : "").parse(); + } + + /// + /// Reconfigure the management network interface for all Hosts in the Pool + /// First published in . + /// + /// The session + /// The network + public static XenRef async_management_reconfigure(Session session, string _network) + { + return XenRef.Create(session.proxy.async_pool_management_reconfigure(session.uuid, (_network != null) ? _network : "").parse()); + } + /// /// Create PIFs, mapping a network to the same physical interface/VLAN on each host. This call is deprecated: use Pool.create_VLAN_from_PIF instead. /// First published in XenServer 4.0. diff --git a/XenModel/XenAPI/Proxy.cs b/XenModel/XenAPI/Proxy.cs index a36d66830..617def696 100644 --- a/XenModel/XenAPI/Proxy.cs +++ b/XenModel/XenAPI/Proxy.cs @@ -3528,6 +3528,14 @@ namespace XenAPI Response async_host_management_reconfigure(string session, string _pif); + [XmlRpcMethod("pool.management_reconfigure")] + Response + pool_management_reconfigure(string session, string _network); + + [XmlRpcMethod("Async.pool.management_reconfigure")] + Response + async_pool_management_reconfigure(string session, string _network); + [XmlRpcMethod("host.local_management_reconfigure")] Response host_local_management_reconfigure(string session, string _interface);