neutron

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NeutronClient

type NeutronClient struct {
	*gophercloud.ServiceClient
	// contains filtered or unexported fields
}

func ConnectToNeutron

func ConnectToNeutron(providerClient *gophercloud.ProviderClient) (*NeutronClient, error)

func (*NeutronClient) AllocateNeutronEndpointPort

func (n *NeutronClient) AllocateNeutronEndpointPort(target *models.EndpointTarget, endpoint *models.Endpoint,
	projectID string, host string, client *gophercloud.ServiceClient) (*ports.Port, error)

func (NeutronClient) ClearCache added in v1.1.0

func (n NeutronClient) ClearCache(networkId string)

func (*NeutronClient) DeletePort

func (n *NeutronClient) DeletePort(portId string) error

func (*NeutronClient) EnsureNeutronSelfIPs added in v1.1.0

func (n *NeutronClient) EnsureNeutronSelfIPs(deviceIDs []string, subnetID string, dryRun bool) (map[string]*ports.Port, error)

EnsureNeutronSelfIPs ensures that a SelfIPs exists for the given deviceID and subnetID

func (*NeutronClient) FetchSNATPorts added in v1.1.0

func (n *NeutronClient) FetchSNATPorts(networkId string) (map[string]*ports.Port, error)

TODO: Remove after a while

func (*NeutronClient) GetMask added in v1.1.0

func (n *NeutronClient) GetMask(subnetID string) (int, error)

func (*NeutronClient) GetNetwork added in v1.1.0

func (n *NeutronClient) GetNetwork(networkId string) (*networks.Network, error)

func (*NeutronClient) GetNetworkSegment

func (n *NeutronClient) GetNetworkSegment(networkId string) (int, error)

func (*NeutronClient) GetPort

func (n *NeutronClient) GetPort(portId string) (*ports.Port, error)

func (*NeutronClient) InitCache added in v1.1.0

func (n *NeutronClient) InitCache()

func (*NeutronClient) ResetCache added in v1.1.0

func (n *NeutronClient) ResetCache()

type PortListOpts

type PortListOpts struct {
	IDs []string
}

func (PortListOpts) ToPortListQuery

func (opts PortListOpts) ToPortListQuery() (string, error)

type PortListOptsExt added in v1.1.0

type PortListOptsExt struct {
	ports.ListOptsBuilder

	// The ID of the host where the port is allocated
	HostID string
}

PortListOptsExt adds the PortBinding options to the base port ListOpts.

func (PortListOptsExt) ToPortListQuery added in v1.1.0

func (opts PortListOptsExt) ToPortListQuery() (string, error)

ToPortListQuery adds the PortBinding options to the base port list options.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL