Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Suggesting to support gpu in flavor #647

@QuillaChow

Description

@QuillaChow

Hi,
In the doc, I can see the structure of flavor

type Flavor struct {
    // The Id field contains the flavor's unique identifier.
    // For example, this identifier will be useful when specifying which hardware configuration to use for a new server instance.
    ID  string `mapstructure:"id"`

    // The Disk and RA< fields provide a measure of storage space offered by the flavor, in GB and MB, respectively.
    Disk int `mapstructure:"disk"`
    RAM  int `mapstructure:"ram"`

    // The Name field provides a human-readable moniker for the flavor.
    Name string `mapstructure:"name"`

    RxTxFactor float64 `mapstructure:"rxtx_factor"`

    // Swap indicates how much space is reserved for swap.
    // If not provided, this field will be set to 0.
    Swap int `mapstructure:"swap"`

    // VCPUs indicates how many (virtual) CPUs are available for this flavor.
    VCPUs int `mapstructure:"vcpus"`
}

I would like to manage flavor with gpu in my code, but I cannot find any field that related to this.
Can anyone tell me how to distinguish flavor with gpu in the code?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions