private void ProcessRecordLockingMode(string vif)
        {
            RunApiCall(() =>
            {
                vif_locking_mode obj = XenAPI.VIF.get_locking_mode(session, vif);

                WriteObject(obj, true);
            });
        }
示例#2
0
 public static string ToString(vif_locking_mode x)
 {
     switch (x)
     {
         case vif_locking_mode.network_default:
             return "network_default";
         case vif_locking_mode.locked:
             return "locked";
         case vif_locking_mode.unlocked:
             return "unlocked";
         case vif_locking_mode.disabled:
             return "disabled";
         default:
             return "unknown";
     }
 }
示例#3
0
        public static string ToString(vif_locking_mode x)
        {
            switch (x)
            {
            case vif_locking_mode.network_default:
                return("network_default");

            case vif_locking_mode.locked:
                return("locked");

            case vif_locking_mode.unlocked:
                return("unlocked");

            case vif_locking_mode.disabled:
                return("disabled");
            }
            return("unknown");
        }
示例#4
0
 public VIF(string uuid,
            List <vif_operations> allowed_operations,
            Dictionary <string, vif_operations> current_operations,
            string device,
            XenRef <Network> network,
            XenRef <VM> VM,
            string MAC,
            long MTU,
            Dictionary <string, string> other_config,
            bool currently_attached,
            long status_code,
            string status_detail,
            Dictionary <string, string> runtime_properties,
            string qos_algorithm_type,
            Dictionary <string, string> qos_algorithm_params,
            string[] qos_supported_algorithms,
            XenRef <VIF_metrics> metrics,
            bool MAC_autogenerated,
            vif_locking_mode locking_mode,
            string[] ipv4_allowed,
            string[] ipv6_allowed)
 {
     this.uuid = uuid;
     this.allowed_operations = allowed_operations;
     this.current_operations = current_operations;
     this.device             = device;
     this.network            = network;
     this.VM                       = VM;
     this.MAC                      = MAC;
     this.MTU                      = MTU;
     this.other_config             = other_config;
     this.currently_attached       = currently_attached;
     this.status_code              = status_code;
     this.status_detail            = status_detail;
     this.runtime_properties       = runtime_properties;
     this.qos_algorithm_type       = qos_algorithm_type;
     this.qos_algorithm_params     = qos_algorithm_params;
     this.qos_supported_algorithms = qos_supported_algorithms;
     this.metrics                  = metrics;
     this.MAC_autogenerated        = MAC_autogenerated;
     this.locking_mode             = locking_mode;
     this.ipv4_allowed             = ipv4_allowed;
     this.ipv6_allowed             = ipv6_allowed;
 }
示例#5
0
文件: VIF.cs 项目: hl10502/WCM
 public static void set_locking_mode(Session session, string _vif, vif_locking_mode _value)
 {
     session.proxy.vif_set_locking_mode(session.uuid, (_vif != null) ? _vif : "", vif_locking_mode_helper.ToString(_value)).parse();
 }
示例#6
0
文件: VIF.cs 项目: hl10502/WCM
 public static XenRef <Task> async_set_locking_mode(Session session, string _vif, vif_locking_mode _value)
 {
     return(XenRef <Task> .Create(session.proxy.async_vif_set_locking_mode(session.uuid, (_vif != null) ? _vif : "", vif_locking_mode_helper.ToString(_value)).parse()));
 }
示例#7
0
 public static string ToString(vif_locking_mode x)
 {
     return(x.StringOf());
 }