model

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 4 Imported by: 2 modules, 4 packages

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 Keyword = "customnetwork"

Keyword defines the keyword identifying CustomNetwork data.

Variables

View Source
var CustomNetwork_Type_name = map[int32]string{
	0: "L2",
	1: "L3",
	2: "STUB",
}
View Source
var CustomNetwork_Type_value = map[string]int32{
	"L2":   0,
	"L3":   1,
	"STUB": 2,
}

Functions

func Key

func Key(network string) string

Key returns the key for configuration of a given network.

func KeyPrefix

func KeyPrefix() string

KeyPrefix return prefix where all custom network configs are persisted.

Types

type CustomNetwork

type CustomNetwork struct {
	// name of the custom network
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// type of the custom network
	Type                 CustomNetwork_Type                 `protobuf:"varint,2,opt,name=type,proto3,enum=model.CustomNetwork_Type" json:"type,omitempty"`
	SubnetCIDR           string                             `protobuf:"bytes,3,opt,name=subnetCIDR,proto3" json:"subnetCIDR,omitempty"`
	SubnetOneNodePrefix  uint32                             `protobuf:"varint,4,opt,name=subnet_one_node_prefix,json=subnetOneNodePrefix,proto3" json:"subnet_one_node_prefix,omitempty"`
	ExternalInterfaces   []*CustomNetwork_ExternalInterface `protobuf:"bytes,5,rep,name=externalInterfaces,proto3" json:"externalInterfaces,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

CustomNetwork is used to store definition of custom network defined via CRD.

func (*CustomNetwork) Descriptor

func (*CustomNetwork) Descriptor() ([]byte, []int)

func (*CustomNetwork) GetExternalInterfaces

func (m *CustomNetwork) GetExternalInterfaces() []*CustomNetwork_ExternalInterface

func (*CustomNetwork) GetName

func (m *CustomNetwork) GetName() string

func (*CustomNetwork) GetSubnetCIDR

func (m *CustomNetwork) GetSubnetCIDR() string

func (*CustomNetwork) GetSubnetOneNodePrefix

func (m *CustomNetwork) GetSubnetOneNodePrefix() uint32

func (*CustomNetwork) GetType

func (m *CustomNetwork) GetType() CustomNetwork_Type

func (*CustomNetwork) ProtoMessage

func (*CustomNetwork) ProtoMessage()

func (*CustomNetwork) Reset

func (m *CustomNetwork) Reset()

func (*CustomNetwork) String

func (m *CustomNetwork) String() string

func (*CustomNetwork) XXX_DiscardUnknown

func (m *CustomNetwork) XXX_DiscardUnknown()

func (*CustomNetwork) XXX_Marshal

func (m *CustomNetwork) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CustomNetwork) XXX_Merge

func (m *CustomNetwork) XXX_Merge(src proto.Message)

func (*CustomNetwork) XXX_Size

func (m *CustomNetwork) XXX_Size() int

func (*CustomNetwork) XXX_Unmarshal

func (m *CustomNetwork) XXX_Unmarshal(b []byte) error

type CustomNetwork_ExternalInterface

type CustomNetwork_ExternalInterface struct {
	Name                 string                         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Nodes                []*CustomNetwork_NodeInterface `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

external interface defines mapping of logical interface name to particul interfaces on nodes

func (*CustomNetwork_ExternalInterface) Descriptor

func (*CustomNetwork_ExternalInterface) Descriptor() ([]byte, []int)

func (*CustomNetwork_ExternalInterface) GetName

func (*CustomNetwork_ExternalInterface) GetNodes

func (*CustomNetwork_ExternalInterface) ProtoMessage

func (*CustomNetwork_ExternalInterface) ProtoMessage()

func (*CustomNetwork_ExternalInterface) Reset

func (*CustomNetwork_ExternalInterface) String

func (*CustomNetwork_ExternalInterface) XXX_DiscardUnknown

func (m *CustomNetwork_ExternalInterface) XXX_DiscardUnknown()

func (*CustomNetwork_ExternalInterface) XXX_Marshal

func (m *CustomNetwork_ExternalInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CustomNetwork_ExternalInterface) XXX_Merge

func (m *CustomNetwork_ExternalInterface) XXX_Merge(src proto.Message)

func (*CustomNetwork_ExternalInterface) XXX_Size

func (m *CustomNetwork_ExternalInterface) XXX_Size() int

func (*CustomNetwork_ExternalInterface) XXX_Unmarshal

func (m *CustomNetwork_ExternalInterface) XXX_Unmarshal(b []byte) error

type CustomNetwork_NodeInterface

type CustomNetwork_NodeInterface struct {
	Node                 string   `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	VppInterfaceName     string   `protobuf:"bytes,2,opt,name=vpp_interface_name,json=vppInterfaceName,proto3" json:"vpp_interface_name,omitempty"`
	Ip                   string   `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CustomNetwork_NodeInterface) Descriptor

func (*CustomNetwork_NodeInterface) Descriptor() ([]byte, []int)

func (*CustomNetwork_NodeInterface) GetIp

func (*CustomNetwork_NodeInterface) GetNode

func (m *CustomNetwork_NodeInterface) GetNode() string

func (*CustomNetwork_NodeInterface) GetVppInterfaceName

func (m *CustomNetwork_NodeInterface) GetVppInterfaceName() string

func (*CustomNetwork_NodeInterface) ProtoMessage

func (*CustomNetwork_NodeInterface) ProtoMessage()

func (*CustomNetwork_NodeInterface) Reset

func (m *CustomNetwork_NodeInterface) Reset()

func (*CustomNetwork_NodeInterface) String

func (m *CustomNetwork_NodeInterface) String() string

func (*CustomNetwork_NodeInterface) XXX_DiscardUnknown

func (m *CustomNetwork_NodeInterface) XXX_DiscardUnknown()

func (*CustomNetwork_NodeInterface) XXX_Marshal

func (m *CustomNetwork_NodeInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CustomNetwork_NodeInterface) XXX_Merge

func (m *CustomNetwork_NodeInterface) XXX_Merge(src proto.Message)

func (*CustomNetwork_NodeInterface) XXX_Size

func (m *CustomNetwork_NodeInterface) XXX_Size() int

func (*CustomNetwork_NodeInterface) XXX_Unmarshal

func (m *CustomNetwork_NodeInterface) XXX_Unmarshal(b []byte) error

type CustomNetwork_Type

type CustomNetwork_Type int32
const (
	CustomNetwork_L2   CustomNetwork_Type = 0
	CustomNetwork_L3   CustomNetwork_Type = 1
	CustomNetwork_STUB CustomNetwork_Type = 2
)

func (CustomNetwork_Type) EnumDescriptor

func (CustomNetwork_Type) EnumDescriptor() ([]byte, []int)

func (CustomNetwork_Type) String

func (x CustomNetwork_Type) String() string

Jump to

Keyboard shortcuts

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