network

package
v3.8.23-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package network provides OpenShift-internal SDN-related APIs

Index

Constants

View Source
const (
	// Maximum VXLAN Virtual Network Identifier(VNID) as per RFC#7348
	MaxVNID = uint32((1 << 24) - 1)
	// VNID: 1 to 9 are internally reserved for any special cases in the future
	MinVNID = uint32(10)
	// VNID: 0 reserved for default namespace and can reach any network in the cluster
	GlobalVNID = uint32(0)

	// ChangePodNetworkAnnotation is an annotation on NetNamespace to request change of pod network
	ChangePodNetworkAnnotation string = "pod.network.openshift.io/multitenant.change-network"

	// Acceptable values for ChangePodNetworkAnnotation
	GlobalPodNetwork  PodNetworkAction = "global"
	JoinPodNetwork    PodNetworkAction = "join"
	IsolatePodNetwork PodNetworkAction = "isolate"
)
View Source
const (
	SingleTenantPluginName  = "redhat/openshift-ovs-subnet"
	MultiTenantPluginName   = "redhat/openshift-ovs-multitenant"
	NetworkPolicyPluginName = "redhat/openshift-ovs-networkpolicy"
)

Variables

View Source
var (
	ErrorPodNetworkAnnotationNotFound = fmt.Errorf("ChangePodNetworkAnnotation not found")
)

Functions

func DeleteChangePodNetworkAnnotation

func DeleteChangePodNetworkAnnotation(netns *networkapi.NetNamespace)

DeleteChangePodNetworkAnnotation removes network change intent from NetNamespace

func IsOpenShiftMultitenantNetworkPlugin

func IsOpenShiftMultitenantNetworkPlugin(pluginName string) bool

func IsOpenShiftNetworkPlugin

func IsOpenShiftNetworkPlugin(pluginName string) bool

func SetChangePodNetworkAnnotation

func SetChangePodNetworkAnnotation(netns *networkapi.NetNamespace, action PodNetworkAction, params string)

SetChangePodNetworkAnnotation sets network change intent on NetNamespace

func ValidVNID

func ValidVNID(vnid uint32) error

Check if the given vnid is valid or not

Types

type NodeInterface

type NodeInterface interface {
	Start() error
}

type PodNetworkAction

type PodNetworkAction string

func GetChangePodNetworkAnnotation

func GetChangePodNetworkAnnotation(netns *networkapi.NetNamespace) (PodNetworkAction, string, error)

GetChangePodNetworkAnnotation fetches network change intent from NetNamespace

type ProxyInterface

type ProxyInterface interface {
	proxyconfig.EndpointsHandler

	Start(proxyconfig.EndpointsHandler) error
}

Directories

Path Synopsis
apis
network
+groupName=network.openshift.io Package api is the internal version of the API.
+groupName=network.openshift.io Package api is the internal version of the API.
network/v1
+groupName=network.openshift.io Package v1 is the v1 version of the API.
+groupName=network.openshift.io Package v1 is the v1 version of the API.
Package common contains the OpenShift SDN code that is shared between master, node, and proxy
Package common contains the OpenShift SDN code that is shared between master, node, and proxy
generated
internalclientset
This package has the automatically generated clientset.
This package has the automatically generated clientset.
internalclientset/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
internalclientset/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
internalclientset/typed/network/internalversion
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
internalclientset/typed/network/internalversion/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
Package master contains the OpenShift SDN code that runs on the master
Package master contains the OpenShift SDN code that runs on the master
Package node contains the OpenShift SDN networking code that runs on the nodes
Package node contains the OpenShift SDN networking code that runs on the nodes
Package proxy contains the OpenShift SDN code that runs as part of the service proxy
Package proxy contains the OpenShift SDN code that runs as part of the service proxy
registry

Jump to

Keyboard shortcuts

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