Documentation ¶
Index ¶
- Constants
- func AddPodNetworkAnnotations(pod corev1.Pod, networkname string, toDelete bool) (string, error)
- func CalculateDstforTail(networklist []string) ([]string, error)
- func CalculateRoutes(cr *k8sv1alpha1.NetworkChaining, cs bool, onlyPodSelector bool) ([]PodNetworkInfo, []RoutingInfo, error)
- func CheckForOnlyNFLabel(cr *k8sv1alpha1.NetworkChaining) (bool, string, error)
- func CheckNetForNetPool(cr *k8sv1alpha1.NetworkChaining) error
- func CheckNetFromLabel(label string) error
- func CheckPodStatusFromPodLabel(podLabel string) (bool, string, error)
- func CheckSFCPodLabelStatus(cr *k8sv1alpha1.NetworkChaining) (bool, error)
- func ConfigureforSFC(podname string, podnamespace string) (bool, []PodNetworkInfo, []RoutingInfo, error)
- func ContainerAddInteface(containerPid int, payload *pb.PodAddNetwork) error
- func ContainerAddRoute(containerPid int, route []*pb.RouteData) error
- func ContainerDelInteface(containerPid int, payload *pb.PodDelNetwork) error
- func ContainerDelRoute(containerPid int, route []*pb.RouteData) error
- func DerivedNetworkFromNetworklist(networklabellist []string) ([]string, error)
- func GetPidForContainer(id string) (int, error)
- func IsPodNetwork(pod corev1.Pod, networkname string) (bool, error)
- func ValidateNetworkChaining(cr *k8sv1alpha1.NetworkChaining) (string, error)
- type PodNetworkInfo
- type RoutingInfo
Constants ¶
View Source
const ( // Ovn4nfvAnnotationTag tag on already processed Pods SFCannotationTag = "k8s.plugin.opnfv.org/sfc" SFCcreated = "created" SFCprocessing = "processing" SFCNotrequired = "notrequired" SFCHead = "sfchead" SFCTail = "sfctail" )
Variables ¶
This section is empty.
Functions ¶
func AddPodNetworkAnnotations ¶
AddPodNetworkAnnotations returns ...
func CalculateDstforTail ¶
CalculateDstforTail return ...
func CalculateRoutes ¶
func CalculateRoutes(cr *k8sv1alpha1.NetworkChaining, cs bool, onlyPodSelector bool) ([]PodNetworkInfo, []RoutingInfo, error)
CalculateRoutes returns the routing info
func CheckForOnlyNFLabel ¶
func CheckForOnlyNFLabel(cr *k8sv1alpha1.NetworkChaining) (bool, string, error)
CheckForOnlyNFLabel return
func CheckNetForNetPool ¶
func CheckNetForNetPool(cr *k8sv1alpha1.NetworkChaining) error
CheckNetForNetPool return
func CheckPodStatusFromPodLabel ¶
CheckPodStatusFromPodLabel return error
func CheckSFCPodLabelStatus ¶
func CheckSFCPodLabelStatus(cr *k8sv1alpha1.NetworkChaining) (bool, error)
CheckSFCPodLabelStatus returns true, if all the pods in the SFC are up and running
func ConfigureforSFC ¶
func ConfigureforSFC(podname string, podnamespace string) (bool, []PodNetworkInfo, []RoutingInfo, error)
ConfigureforSFC returns
func ContainerAddInteface ¶
func ContainerAddInteface(containerPid int, payload *pb.PodAddNetwork) error
ContainerAddInteface return
func ContainerAddRoute ¶
ContainerAddRoute return containerPid and route
func ContainerDelInteface ¶
func ContainerDelInteface(containerPid int, payload *pb.PodDelNetwork) error
ContainerDelInteface return
func ContainerDelRoute ¶
ContainerDelRoute return containerPid and route
func DerivedNetworkFromNetworklist ¶
DerivedNetworkFromNetworklist returns the network list
func GetPidForContainer ¶
func IsPodNetwork ¶
IsPodNetwork return ...
func ValidateNetworkChaining ¶
func ValidateNetworkChaining(cr *k8sv1alpha1.NetworkChaining) (string, error)
ValidateNetworkChaining return ...
Types ¶
type PodNetworkInfo ¶
type PodNetworkInfo struct { Name string Namespace string Id string Node string NetworkInfo string Route []k8sv1alpha1.Route }
PodNetworkInfo is ...
type RoutingInfo ¶
type RoutingInfo struct { Name string // Name of the pod Namespace string // Namespace of the Pod Id string // Container ID for pod Node string // Hostname where Pod is scheduled LeftNetworkRoute []k8sv1alpha1.Route // TODO: Update to support multiple networks RightNetworkRoute []k8sv1alpha1.Route // TODO: Update to support multiple networks DynamicNetworkRoutes []k8sv1alpha1.Route }
RoutingInfo is ...
Click to show internal directories.
Click to hide internal directories.