Documentation ¶
Index ¶
- Constants
- Variables
- func Key(iface string) string
- func KeyPrefix() string
- type ExternalInterface
- func (*ExternalInterface) Descriptor() ([]byte, []int)
- func (m *ExternalInterface) GetName() string
- func (m *ExternalInterface) GetNetwork() string
- func (m *ExternalInterface) GetNodes() []*ExternalInterface_NodeInterface
- func (m *ExternalInterface) GetType() ExternalInterface_Type
- func (*ExternalInterface) ProtoMessage()
- func (m *ExternalInterface) Reset()
- func (m *ExternalInterface) String() string
- func (m *ExternalInterface) XXX_DiscardUnknown()
- func (m *ExternalInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExternalInterface) XXX_Merge(src proto.Message)
- func (m *ExternalInterface) XXX_Size() int
- func (m *ExternalInterface) XXX_Unmarshal(b []byte) error
- type ExternalInterface_NodeInterface
- func (*ExternalInterface_NodeInterface) Descriptor() ([]byte, []int)
- func (m *ExternalInterface_NodeInterface) GetIp() string
- func (m *ExternalInterface_NodeInterface) GetNode() string
- func (m *ExternalInterface_NodeInterface) GetVlan() uint32
- func (m *ExternalInterface_NodeInterface) GetVppInterfaceName() string
- func (*ExternalInterface_NodeInterface) ProtoMessage()
- func (m *ExternalInterface_NodeInterface) Reset()
- func (m *ExternalInterface_NodeInterface) String() string
- func (m *ExternalInterface_NodeInterface) XXX_DiscardUnknown()
- func (m *ExternalInterface_NodeInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExternalInterface_NodeInterface) XXX_Merge(src proto.Message)
- func (m *ExternalInterface_NodeInterface) XXX_Size() int
- func (m *ExternalInterface_NodeInterface) XXX_Unmarshal(b []byte) error
- type ExternalInterface_Type
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 ¶
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 (m *ExternalInterface) GetNodes() []*ExternalInterface_NodeInterface
func (*ExternalInterface) GetType ¶
func (m *ExternalInterface) GetType() ExternalInterface_Type
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 (m *ExternalInterface_NodeInterface) GetIp() string
func (*ExternalInterface_NodeInterface) GetNode ¶
func (m *ExternalInterface_NodeInterface) GetNode() string
func (*ExternalInterface_NodeInterface) GetVlan ¶
func (m *ExternalInterface_NodeInterface) GetVlan() uint32
func (*ExternalInterface_NodeInterface) GetVppInterfaceName ¶
func (m *ExternalInterface_NodeInterface) GetVppInterfaceName() string
func (*ExternalInterface_NodeInterface) ProtoMessage ¶
func (*ExternalInterface_NodeInterface) ProtoMessage()
func (*ExternalInterface_NodeInterface) Reset ¶
func (m *ExternalInterface_NodeInterface) Reset()
func (*ExternalInterface_NodeInterface) String ¶
func (m *ExternalInterface_NodeInterface) String() 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
Click to show internal directories.
Click to hide internal directories.