示例#1
0
文件: VIF.cs 项目: hl10502/WCM
 public VIF(Hashtable table)
 {
     this.uuid = Marshalling.ParseString(table, "uuid");
     this.allowed_operations = Helper.StringArrayToEnumList <vif_operations>(Marshalling.ParseStringArray(table, "allowed_operations"));
     this.current_operations = Maps.convert_from_proxy_string_vif_operations(Marshalling.ParseHashTable(table, "current_operations"));
     this.device             = Marshalling.ParseString(table, "device");
     this.network            = Marshalling.ParseRef <Network>(table, "network");
     this.VM                       = Marshalling.ParseRef <WinAPI.VM>(table, "VM");
     this.MAC                      = Marshalling.ParseString(table, "MAC");
     this.MTU                      = Marshalling.ParseLong(table, "MTU");
     this.other_config             = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
     this.currently_attached       = Marshalling.ParseBool(table, "currently_attached");
     this.status_code              = Marshalling.ParseLong(table, "status_code");
     this.status_detail            = Marshalling.ParseString(table, "status_detail");
     this.runtime_properties       = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "runtime_properties"));
     this.qos_algorithm_type       = Marshalling.ParseString(table, "qos_algorithm_type");
     this.qos_algorithm_params     = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "qos_algorithm_params"));
     this.qos_supported_algorithms = Marshalling.ParseStringArray(table, "qos_supported_algorithms");
     this.metrics                  = Marshalling.ParseRef <VIF_metrics>(table, "metrics");
     this.MAC_autogenerated        = Marshalling.ParseBool(table, "MAC_autogenerated");
     this.locking_mode             = (vif_locking_mode)Helper.EnumParseDefault(typeof(vif_locking_mode), Marshalling.ParseString(table, "locking_mode"));
     this.ipv4_allowed             = Marshalling.ParseStringArray(table, "ipv4_allowed");
     this.ipv6_allowed             = Marshalling.ParseStringArray(table, "ipv6_allowed");
 }
示例#2
0
文件: VTPM.cs 项目: hl10502/WCM
 public VTPM(Hashtable table)
 {
     this.uuid    = Marshalling.ParseString(table, "uuid");
     this.VM      = Marshalling.ParseRef <WinAPI.VM>(table, "VM");
     this.backend = Marshalling.ParseRef <WinAPI.VM>(table, "backend");
 }