Skip to content

servers: Tag is missing for servers.Network #2192

@majewsky

Description

@majewsky

This type:

// Network is used within CreateOpts to control a new server's network
// attachments.
type Network struct {
// UUID of a network to attach to the newly provisioned server.
// Required unless Port is provided.
UUID string
// Port of a neutron network to attach to the newly provisioned server.
// Required unless UUID is provided.
Port string
// FixedIP specifies a fixed IPv4 address to be used on this network.
FixedIP string
}

should have an additional field Tag string for device-role tags, as mentioned in the API docs. I tried finding a single line in the codebase that demonstrates this field being read, and was once again overwhelmed by OpenStack's signature dish, spaghetti code. As for evidence, let's go with this commit that last touched the definition of the field in the API reference. It contains several API samples both for docs and tests that demonstrate the tag attribute on networks in create-server requests.

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