networking

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: Apache-2.0 Imports: 18 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNetworkIDsByFilter

func GetNetworkIDsByFilter(networkClient *gophercloud.ServiceClient, opts networks.ListOptsBuilder) ([]string, error)

getNetworkIDsByFilter retrieves network ids by querying openstack with filters

func GetNetworksByFilter

func GetNetworksByFilter(networkClient *gophercloud.ServiceClient, opts networks.ListOptsBuilder) ([]networks.Network, error)

GetNetworksByFilter retrieves networks by querying openstack with filters

func GetSubnetsByFilter

func GetSubnetsByFilter(networkClient *gophercloud.ServiceClient, opts subnets.ListOptsBuilder) ([]subnets.Subnet, error)

A function for getting the id of a subnet by querying openstack with filters

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service interfaces with the OpenStack Networking API. It will create a network related infrastructure for the cluster, like network, subnet, router, security groups.

func NewService

func NewService(client *gophercloud.ProviderClient, clientOpts *clientconfig.ClientOpts, logger logr.Logger) (*Service, error)

NewService returns an instance of the networking service

func (*Service) DeleteNetwork added in v0.3.1

func (s *Service) DeleteNetwork(network *infrav1.Network) error

func (*Service) DeleteRouter added in v0.3.1

func (s *Service) DeleteRouter(network *infrav1.Network) error

func (*Service) DeleteSecurityGroups

func (s *Service) DeleteSecurityGroups(group *infrav1.SecurityGroup) error

func (*Service) GetNetworksByFilter

func (s *Service) GetNetworksByFilter(opts networks.ListOptsBuilder) ([]networks.Network, error)

func (*Service) GetOrCreateFloatingIP added in v0.3.2

func (s *Service) GetOrCreateFloatingIP(openStackCluster *infrav1.OpenStackCluster, ip string) (*floatingips.FloatingIP, error)

func (*Service) GetSubnetsByFilter

func (s *Service) GetSubnetsByFilter(opts subnets.ListOptsBuilder) ([]subnets.Subnet, error)

func (*Service) ReconcileExternalNetwork added in v0.3.2

func (s *Service) ReconcileExternalNetwork(openStackCluster *infrav1.OpenStackCluster) error

func (*Service) ReconcileNetwork

func (s *Service) ReconcileNetwork(clusterName string, openStackCluster *infrav1.OpenStackCluster) error

func (*Service) ReconcileRouter

func (s *Service) ReconcileRouter(clusterName string, openStackCluster *infrav1.OpenStackCluster) error

func (*Service) ReconcileSecurityGroups

func (s *Service) ReconcileSecurityGroups(clusterName string, openStackCluster *infrav1.OpenStackCluster) error

Reconcile the security groups.

func (*Service) ReconcileSubnet

func (s *Service) ReconcileSubnet(clusterName string, openStackCluster *infrav1.OpenStackCluster) error

Jump to

Keyboard shortcuts

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