module

package
v0.0.0-...-7c77b90 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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 VLAN_NODE_SELECTORS = [...]string{VLAN_NODE_ANY, VLAN_NODE_SPECIFIC}

Functions

func IsValidMetadata

func IsValidMetadata(metadata Metadata) error

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

func NewClient

func NewClient() *Client

NewClient creates a new client for using the services

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 Metadata

type Metadata struct {
	Name        string `json:"name" yaml:"name"`
	Description string `json:"description" yaml:"-"`
	UserData1   string `json:"userData1" yaml:"-"`
	UserData2   string `json:"userData2" yaml:"-"`
}

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"`
}

Directories

Path Synopsis
SPDX-License-Identifier: Apache-2.0 Copyright (c) 2020 Intel Corporation
SPDX-License-Identifier: Apache-2.0 Copyright (c) 2020 Intel Corporation

Jump to

Keyboard shortcuts

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