Documentation
¶
Overview ¶
SPDX-License-Identifier: Apache-2.0 Copyright (c) 2020 Intel Corporation
Index ¶
Constants ¶
View Source
const CNI_TYPE_OVN4NFV string = "ovn4nfv"
View Source
const MAX_DESCRIPTION_LEN int = 1024
It implements the interface for managing the ClusterProviders
View Source
const MAX_USERDATA_LEN int = 4096
View Source
const VLAN_NODE_ANY = "any"
View Source
const VLAN_NODE_SPECIFIC = "specific"
View Source
const VLAN_PROVIDER_NET_TYPE_DIRECT string = "DIRECT"
View Source
const VLAN_PROVIDER_NET_TYPE_VLAN string = "VLAN"
Variables ¶
View Source
var CNI_TYPES = [...]string{CNI_TYPE_OVN4NFV}
View Source
var PROVIDER_NET_TYPES = [...]string{VLAN_PROVIDER_NET_TYPE_VLAN, VLAN_PROVIDER_NET_TYPE_DIRECT}
View Source
var VLAN_NODE_SELECTORS = [...]string{VLAN_NODE_ANY, VLAN_NODE_SPECIFIC}
Functions ¶
func IsValidMetadata ¶
Check for valid format Metadata
func ValidateSubnet ¶
func ValidateSubnet(sub Ipv4Subnet) error
Check for valid format of an Ipv4Subnet
Types ¶
type Client ¶
type Client struct { Network *networkintents.NetworkClient ProviderNet *networkintents.ProviderNetClient Scheduler *scheduler.SchedulerClient }
Client for using the services in the ncm
type ClientDbInfo ¶
type ClientDbInfo struct {
// contains filtered or unexported fields
}
type Ipv4Subnet ¶
type Ipv4Subnet struct { Subnet string `json:"subnet" yaml:"subnet"` // CIDR notation, e.g. 172.16.33.0/24 Name string `json:"name" yaml:"name"` Gateway string `json:"gateway" yaml:"gateway"` // IPv4 addre, e.g. 172.16.33.1/24 Exclude string `json:"excludeIps" yaml:"excludeIps"` // space separated list of single IPs or ranges e.g. "172.16.33.2 172.16.33.5..172.16.33.10" }
type Vlan ¶
type Vlan struct { VlanId string `json:"vlanID" yaml:"vlanId"` ProviderInterfaceName string `json:"providerInterfaceName" yaml:"providerInterfaceName"` LogicalInterfaceName string `json:"logicalInterfaceName" yaml:"logicalInterfaceName"` VlanNodeSelector string `json:"vlanNodeSelector" yaml:"vlanNodeSelector"` NodeLabelList []string `json:"nodeLabelList" yaml:"nodeLabelList"` }
Click to show internal directories.
Click to hide internal directories.