openstacknet

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 13 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// AppLabel -
	AppLabel = "osp-openstacknet"

	// FinalizerName -
	FinalizerName = "openstacknet.osp-director.openstack.org"

	// NetworkNameLabelSelector -
	NetworkNameLabelSelector = "ooo-netname"
	// NetworkNameLowerLabelSelector -
	NetworkNameLowerLabelSelector = "ooo-netname-lower"
	// SubNetNameLabelSelector -
	SubNetNameLabelSelector = "ooo-subnetname"
	// ControlPlaneNetworkLabelSelector - is the network a ctlplane network?
	ControlPlaneNetworkLabelSelector = "ooo-ctlplane-network"
)

Variables

This section is empty.

Functions

func AddOSNetNameLowerLabels added in v1.2.0

func AddOSNetNameLowerLabels(
	r common.ReconcilerCommon,
	obj client.Object,
	cond *ospdirectorv1beta1.Condition,
	networkNameLowerNames []string,
) map[string]string

AddOSNetNameLowerLabels - add osnetcfg CR label reference which is used in the in the osnetcfg controller to watch this resource and reconcile

func GetAllIPReservations added in v1.2.0

func GetAllIPReservations(
	osNet *ospdirectorv1beta1.OpenStackNet,
	newReservations []ospdirectorv1beta1.IPReservation,
	staticReservations []ospdirectorv1beta1.IPReservation,
) []ospdirectorv1beta1.IPReservation

GetAllIPReservations - get all reservations from the osnet (already synamic created, static configured + just now new created)

func GetOpenStackNetWithLabel added in v1.2.0

func GetOpenStackNetWithLabel(r common.ReconcilerCommon, namespace string, labelSelector map[string]string) (*ospdirectorv1beta1.OpenStackNet, error)

GetOpenStackNetWithLabel - Return OpenStackNet with labels

func GetOpenStackNetsBindingMap

func GetOpenStackNetsBindingMap(r common.ReconcilerCommon, namespace string) (map[string]ospdirectorv1beta1.AttachType, error)

GetOpenStackNetsBindingMap - Returns map of OpenStackNet name to binding type

func GetOpenStackNetsMapWithLabel added in v1.2.0

func GetOpenStackNetsMapWithLabel(
	r common.ReconcilerCommon,
	namespace string,
	labelSelector map[string]string,
) (map[string]ospdirectorv1beta1.OpenStackNet, error)

GetOpenStackNetsMapWithLabel - Return a map[NameLower] of all OpenStackNets in the namespace that have (optional) labels

func GetOpenStackNetsWithLabel

func GetOpenStackNetsWithLabel(r common.ReconcilerCommon, namespace string, labelSelector map[string]string) (*ospdirectorv1beta1.OpenStackNetList, error)

GetOpenStackNetsWithLabel - Return a list of all OpenStackNets in the namespace that have (optional) labels

func GetSriovNetworkNodePoliciesWithLabel

func GetSriovNetworkNodePoliciesWithLabel(r common.ReconcilerCommon, labelSelector map[string]string, namespace string) (map[string]sriovnetworkv1.SriovNetworkNodePolicy, error)

GetSriovNetworkNodePoliciesWithLabel - Returns list of sriovnetworknodepolicies labeled with labelSelector

func GetSriovNetworksWithLabel

func GetSriovNetworksWithLabel(r common.ReconcilerCommon, labelSelector map[string]string, namespace string) (map[string]sriovnetworkv1.SriovNetwork, error)

GetSriovNetworksWithLabel - Returns list of sriovnetworks labeled with labelSelector

Types

This section is empty.

Jump to

Keyboard shortcuts

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