model

package
v3.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

View Source
const Keyword = "external-interface"

Keyword defines the keyword identifying external interface data.

Variables

View Source
var ExternalInterface_Type_name = map[int32]string{
	0: "L2",
	1: "L3",
}
View Source
var ExternalInterface_Type_value = map[string]int32{
	"L2": 0,
	"L3": 1,
}

Functions

func Key

func Key(iface string) string

Key returns the key for configuration of a given external interface.

func KeyPrefix

func KeyPrefix() string

KeyPrefix return prefix where all external interface configs are persisted.

Types

type ExternalInterface

type ExternalInterface struct {
	// logical name of the external interface
	Name string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type ExternalInterface_Type `protobuf:"varint,2,opt,name=type,proto3,enum=model.ExternalInterface_Type" json:"type,omitempty"`
	// Custom network to which this interface belongs.
	// "" or "default" means no specific custom network.
	Network              string                             `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
	Nodes                []*ExternalInterface_NodeInterface `protobuf:"bytes,4,rep,name=nodes,proto3" json:"nodes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

ExternalInterface is used to store definition of an external interface defined via CRD. It is a logical entity that may mean different physical interfaces on different nodes.

func (*ExternalInterface) Descriptor

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

func (*ExternalInterface) GetName

func (m *ExternalInterface) GetName() string

func (*ExternalInterface) GetNetwork

func (m *ExternalInterface) GetNetwork() string

func (*ExternalInterface) GetNodes

func (*ExternalInterface) GetType

func (*ExternalInterface) ProtoMessage

func (*ExternalInterface) ProtoMessage()

func (*ExternalInterface) Reset

func (m *ExternalInterface) Reset()

func (*ExternalInterface) String

func (m *ExternalInterface) String() string

func (*ExternalInterface) XXX_DiscardUnknown

func (m *ExternalInterface) XXX_DiscardUnknown()

func (*ExternalInterface) XXX_Marshal

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

func (*ExternalInterface) XXX_Merge

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

func (*ExternalInterface) XXX_Size

func (m *ExternalInterface) XXX_Size() int

func (*ExternalInterface) XXX_Unmarshal

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

type ExternalInterface_NodeInterface

type ExternalInterface_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"`
	Vlan                 uint32   `protobuf:"varint,4,opt,name=vlan,proto3" json:"vlan,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

list of physical interfaces on individual nodes

func (*ExternalInterface_NodeInterface) Descriptor

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

func (*ExternalInterface_NodeInterface) GetIp

func (*ExternalInterface_NodeInterface) GetNode

func (*ExternalInterface_NodeInterface) GetVlan

func (*ExternalInterface_NodeInterface) GetVppInterfaceName

func (m *ExternalInterface_NodeInterface) GetVppInterfaceName() string

func (*ExternalInterface_NodeInterface) ProtoMessage

func (*ExternalInterface_NodeInterface) ProtoMessage()

func (*ExternalInterface_NodeInterface) Reset

func (*ExternalInterface_NodeInterface) String

func (*ExternalInterface_NodeInterface) XXX_DiscardUnknown

func (m *ExternalInterface_NodeInterface) XXX_DiscardUnknown()

func (*ExternalInterface_NodeInterface) XXX_Marshal

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

func (*ExternalInterface_NodeInterface) XXX_Merge

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

func (*ExternalInterface_NodeInterface) XXX_Size

func (m *ExternalInterface_NodeInterface) XXX_Size() int

func (*ExternalInterface_NodeInterface) XXX_Unmarshal

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

type ExternalInterface_Type

type ExternalInterface_Type int32

type of the external interface

const (
	ExternalInterface_L2 ExternalInterface_Type = 0
	ExternalInterface_L3 ExternalInterface_Type = 1
)

func (ExternalInterface_Type) EnumDescriptor

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

func (ExternalInterface_Type) String

func (x ExternalInterface_Type) String() string

Jump to

Keyboard shortcuts

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