Documentation ¶
Index ¶
- Constants
- func Key(id uint32) string
- func ParseKey(key string) (id uint32)
- type VppNode
- func (*VppNode) Descriptor() ([]byte, []int)
- func (m *VppNode) GetId() uint32
- func (m *VppNode) GetIpAddress() string
- func (m *VppNode) GetIpAddresses() []string
- func (m *VppNode) GetName() string
- func (*VppNode) ProtoMessage()
- func (m *VppNode) Reset()
- func (m *VppNode) String() string
- func (m *VppNode) XXX_DiscardUnknown()
- func (m *VppNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VppNode) XXX_Merge(src proto.Message)
- func (m *VppNode) XXX_Size() int
- func (m *VppNode) XXX_Unmarshal(b []byte) error
Constants ¶
const KeyPrefix = "allocatedIDs/"
KeyPrefix is a key prefix used in DB to store instances of VppNode, one for every node in the cluster.
const Keyword = "vppnode"
Keyword defines the keyword identifying VppNode data.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VppNode ¶
type VppNode struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` IpAddress string `protobuf:"bytes,3,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` IpAddresses []string `protobuf:"bytes,5,rep,name=ip_addresses,json=ipAddresses,proto3" json:"ip_addresses,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
VppNode represents a node in the k8s cluster with container networking based on VPP vswitch. The key attribute is the integer attribute <id>, a cluster-wide unique identifier starting from 1 and re-using free entries, used primarily to dissect cluster IP ranges to obtain subnets suitable for address allocation for endpoints inside the given node. <name> is the node identifier as used by Kubernetes. <ip_addresses> is a list of IP addresses assigned to the node in the VPP network stack. As opposed to node management IP addresses, which are assigned to host interfaces, these IP addresses are not known to Kubernetes. For compatibility with older Contiv versions, <ip_address> should be appended to <ip_addresses> to get all the VPP node IP addresses.
func (*VppNode) Descriptor ¶
func (*VppNode) GetIpAddress ¶
func (*VppNode) GetIpAddresses ¶
func (*VppNode) ProtoMessage ¶
func (*VppNode) ProtoMessage()
func (*VppNode) XXX_DiscardUnknown ¶
func (m *VppNode) XXX_DiscardUnknown()