Documentation ¶
Overview ¶
Package model is a generated protocol buffer package.
It is generated from these files:
nodeconfig.proto
It has these top-level messages:
NodeConfig
Index ¶
- func Key(node string) string
- func KeyPrefix() string
- type NodeConfig
- func (*NodeConfig) Descriptor() ([]byte, []int)
- func (m *NodeConfig) GetGateway() string
- func (m *NodeConfig) GetMainVppInterface() *NodeConfig_InterfaceConfig
- func (m *NodeConfig) GetNatExternalTraffic() bool
- func (m *NodeConfig) GetNodeName() string
- func (m *NodeConfig) GetOtherVppInterfaces() []*NodeConfig_InterfaceConfig
- func (m *NodeConfig) GetStealInterface() string
- func (*NodeConfig) ProtoMessage()
- func (m *NodeConfig) Reset()
- func (m *NodeConfig) String() string
- type NodeConfig_InterfaceConfig
- func (*NodeConfig_InterfaceConfig) Descriptor() ([]byte, []int)
- func (m *NodeConfig_InterfaceConfig) GetInterfaceName() string
- func (m *NodeConfig_InterfaceConfig) GetIp() string
- func (m *NodeConfig_InterfaceConfig) GetUseDhcp() bool
- func (*NodeConfig_InterfaceConfig) ProtoMessage()
- func (m *NodeConfig_InterfaceConfig) Reset()
- func (m *NodeConfig_InterfaceConfig) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NodeConfig ¶
type NodeConfig struct { // name of the node to which the configuration applies NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName" json:"node_name,omitempty"` // main VPP interface used for the inter-node connectivity MainVppInterface *NodeConfig_InterfaceConfig `protobuf:"bytes,2,opt,name=main_vpp_interface,json=mainVppInterface" json:"main_vpp_interface,omitempty"` // other interfaces on VPP, not necessarily used for inter-node connectivity OtherVppInterfaces []*NodeConfig_InterfaceConfig `protobuf:"bytes,3,rep,name=other_vpp_interfaces,json=otherVppInterfaces" json:"other_vpp_interfaces,omitempty"` // interface to be stolen from the host stack and bound to VPP StealInterface string `protobuf:"bytes,4,opt,name=steal_interface,json=stealInterface" json:"steal_interface,omitempty"` // IP address of the default gateway Gateway string `protobuf:"bytes,5,opt,name=gateway" json:"gateway,omitempty"` // whether to NAT external traffic or not NatExternalTraffic bool `protobuf:"varint,6,opt,name=nat_external_traffic,json=natExternalTraffic" json:"nat_external_traffic,omitempty"` }
NodeConfig is used to store Contiv-specific node configuration entered via CRD.
func (*NodeConfig) Descriptor ¶
func (*NodeConfig) Descriptor() ([]byte, []int)
func (*NodeConfig) GetGateway ¶
func (m *NodeConfig) GetGateway() string
func (*NodeConfig) GetMainVppInterface ¶
func (m *NodeConfig) GetMainVppInterface() *NodeConfig_InterfaceConfig
func (*NodeConfig) GetNatExternalTraffic ¶
func (m *NodeConfig) GetNatExternalTraffic() bool
func (*NodeConfig) GetNodeName ¶
func (m *NodeConfig) GetNodeName() string
func (*NodeConfig) GetOtherVppInterfaces ¶
func (m *NodeConfig) GetOtherVppInterfaces() []*NodeConfig_InterfaceConfig
func (*NodeConfig) GetStealInterface ¶
func (m *NodeConfig) GetStealInterface() string
func (*NodeConfig) ProtoMessage ¶
func (*NodeConfig) ProtoMessage()
func (*NodeConfig) Reset ¶
func (m *NodeConfig) Reset()
func (*NodeConfig) String ¶
func (m *NodeConfig) String() string
type NodeConfig_InterfaceConfig ¶
type NodeConfig_InterfaceConfig struct { // interface name to which the configuration applies InterfaceName string `protobuf:"bytes,1,opt,name=interface_name,json=interfaceName" json:"interface_name,omitempty"` // ip address to statically assign to the interface Ip string `protobuf:"bytes,2,opt,name=ip" json:"ip,omitempty"` // if enabled, the interface will be assigned IP address dynamically via DHCP protocol UseDhcp bool `protobuf:"varint,3,opt,name=use_dhcp,json=useDhcp" json:"use_dhcp,omitempty"` }
InterfaceConfig stores configuration for a single interface.
func (*NodeConfig_InterfaceConfig) Descriptor ¶
func (*NodeConfig_InterfaceConfig) Descriptor() ([]byte, []int)
func (*NodeConfig_InterfaceConfig) GetInterfaceName ¶
func (m *NodeConfig_InterfaceConfig) GetInterfaceName() string
func (*NodeConfig_InterfaceConfig) GetIp ¶
func (m *NodeConfig_InterfaceConfig) GetIp() string
func (*NodeConfig_InterfaceConfig) GetUseDhcp ¶
func (m *NodeConfig_InterfaceConfig) GetUseDhcp() bool
func (*NodeConfig_InterfaceConfig) ProtoMessage ¶
func (*NodeConfig_InterfaceConfig) ProtoMessage()
func (*NodeConfig_InterfaceConfig) Reset ¶
func (m *NodeConfig_InterfaceConfig) Reset()
func (*NodeConfig_InterfaceConfig) String ¶
func (m *NodeConfig_InterfaceConfig) String() string
Click to show internal directories.
Click to hide internal directories.