private void ProcessRecordProtocol(string sdn_controller) { RunApiCall(() => { sdn_controller_protocol obj = XenAPI.SDN_controller.get_protocol(session, sdn_controller); WriteObject(obj, true); }); }
public SDN_controller(string uuid, sdn_controller_protocol protocol, string address, long port) { this.uuid = uuid; this.protocol = protocol; this.address = address; this.port = port; }
/// <summary> /// Introduce an SDN controller to the pool. /// First published in XenServer 7.2. /// </summary> /// <param name="session">The session</param> /// <param name="_protocol">Protocol to connect with the controller.</param> /// <param name="_address">IP address of the controller.</param> /// <param name="_port">TCP port of the controller.</param> public static XenRef <Task> async_introduce(Session session, sdn_controller_protocol _protocol, string _address, long _port) { if (session.JsonRpcClient != null) { return(session.JsonRpcClient.async_sdn_controller_introduce(session.opaque_ref, _protocol, _address, _port)); } else { return(XenRef <Task> .Create(session.proxy.async_sdn_controller_introduce(session.opaque_ref, sdn_controller_protocol_helper.ToString(_protocol), _address ?? "", _port.ToString()).parse())); } }
public static string StringOf(this sdn_controller_protocol x) { switch (x) { case sdn_controller_protocol.ssl: return("ssl"); case sdn_controller_protocol.pssl: return("pssl"); default: return("unknown"); } }
public static string ToString(sdn_controller_protocol x) { return(x.StringOf()); }
/// <summary> /// Introduce an SDN controller to the pool. /// First published in XenServer 7.2. /// </summary> /// <param name="session">The session</param> /// <param name="_protocol">Protocol to connect with the controller.</param> /// <param name="_address">IP address of the controller.</param> /// <param name="_port">TCP port of the controller.</param> public static XenRef <Task> async_introduce(Session session, sdn_controller_protocol _protocol, string _address, long _port) { return(XenRef <Task> .Create(session.proxy.async_sdn_controller_introduce(session.uuid, sdn_controller_protocol_helper.ToString(_protocol), _address ?? "", _port.ToString()).parse())); }
/// <summary> /// Introduce an SDN controller to the pool. /// First published in . /// </summary> /// <param name="session">The session</param> /// <param name="_protocol">Protocol to connect with the controller.</param> /// <param name="_address">IP address of the controller.</param> /// <param name="_port">TCP port of the controller.</param> public static XenRef <SDN_controller> introduce(Session session, sdn_controller_protocol _protocol, string _address, long _port) { return(XenRef <SDN_controller> .Create(session.proxy.sdn_controller_introduce(session.uuid, sdn_controller_protocol_helper.ToString(_protocol), (_address != null) ? _address : "", _port.ToString()).parse())); }