Exemple #1
0
 public Network_sriov(string uuid,
                      XenRef <PIF> physical_PIF,
                      XenRef <PIF> logical_PIF,
                      bool requires_reboot,
                      sriov_configuration_mode configuration_mode)
 {
     this.uuid               = uuid;
     this.physical_PIF       = physical_PIF;
     this.logical_PIF        = logical_PIF;
     this.requires_reboot    = requires_reboot;
     this.configuration_mode = configuration_mode;
 }
        public static string StringOf(this sriov_configuration_mode x)
        {
            switch (x)
            {
            case sriov_configuration_mode.sysfs:
                return("sysfs");

            case sriov_configuration_mode.modprobe:
                return("modprobe");

            default:
                return("unknown");
            }
        }
 public static string ToString(sriov_configuration_mode x)
 {
     return(x.StringOf());
 }