Documentation ¶
Index ¶
- Constants
- Variables
- func ArpEntryKey(iface, ipAddr string) string
- func IPScanNeighborKey() string
- func ParseProxyARPInterfaceKey(key string) (iface string, isProxyARPInterfaceKey bool)
- func ProxyARPInterfaceKey(iface string) string
- func ProxyARPKey() string
- func RouteKey(vrf uint32, dstNet string, nextHopAddr string) string
- type ARPEntry
- func (*ARPEntry) Descriptor() ([]byte, []int)
- func (m *ARPEntry) GetInterface() string
- func (m *ARPEntry) GetIpAddress() string
- func (m *ARPEntry) GetPhysAddress() string
- func (m *ARPEntry) GetStatic() bool
- func (*ARPEntry) ProtoMessage()
- func (m *ARPEntry) Reset()
- func (m *ARPEntry) String() string
- func (m *ARPEntry) XXX_DiscardUnknown()
- func (m *ARPEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ARPEntry) XXX_Merge(src proto.Message)
- func (*ARPEntry) XXX_MessageName() string
- func (m *ARPEntry) XXX_Size() int
- func (m *ARPEntry) XXX_Unmarshal(b []byte) error
- type IPScanNeighbor
- func (*IPScanNeighbor) Descriptor() ([]byte, []int)
- func (m *IPScanNeighbor) GetMaxProcTime() uint32
- func (m *IPScanNeighbor) GetMaxUpdate() uint32
- func (m *IPScanNeighbor) GetMode() IPScanNeighbor_Mode
- func (m *IPScanNeighbor) GetScanIntDelay() uint32
- func (m *IPScanNeighbor) GetScanInterval() uint32
- func (m *IPScanNeighbor) GetStaleThreshold() uint32
- func (*IPScanNeighbor) ProtoMessage()
- func (m *IPScanNeighbor) Reset()
- func (m *IPScanNeighbor) String() string
- func (m *IPScanNeighbor) XXX_DiscardUnknown()
- func (m *IPScanNeighbor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *IPScanNeighbor) XXX_Merge(src proto.Message)
- func (*IPScanNeighbor) XXX_MessageName() string
- func (m *IPScanNeighbor) XXX_Size() int
- func (m *IPScanNeighbor) XXX_Unmarshal(b []byte) error
- type IPScanNeighbor_Mode
- type ProxyARP
- func (*ProxyARP) Descriptor() ([]byte, []int)
- func (m *ProxyARP) GetInterfaces() []*ProxyARP_Interface
- func (m *ProxyARP) GetRanges() []*ProxyARP_Range
- func (*ProxyARP) ProtoMessage()
- func (m *ProxyARP) Reset()
- func (m *ProxyARP) String() string
- func (m *ProxyARP) XXX_DiscardUnknown()
- func (m *ProxyARP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProxyARP) XXX_Merge(src proto.Message)
- func (*ProxyARP) XXX_MessageName() string
- func (m *ProxyARP) XXX_Size() int
- func (m *ProxyARP) XXX_Unmarshal(b []byte) error
- type ProxyARP_Interface
- func (*ProxyARP_Interface) Descriptor() ([]byte, []int)
- func (m *ProxyARP_Interface) GetName() string
- func (*ProxyARP_Interface) ProtoMessage()
- func (m *ProxyARP_Interface) Reset()
- func (m *ProxyARP_Interface) String() string
- func (m *ProxyARP_Interface) XXX_DiscardUnknown()
- func (m *ProxyARP_Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProxyARP_Interface) XXX_Merge(src proto.Message)
- func (*ProxyARP_Interface) XXX_MessageName() string
- func (m *ProxyARP_Interface) XXX_Size() int
- func (m *ProxyARP_Interface) XXX_Unmarshal(b []byte) error
- type ProxyARP_Range
- func (*ProxyARP_Range) Descriptor() ([]byte, []int)
- func (m *ProxyARP_Range) GetFirstIpAddr() string
- func (m *ProxyARP_Range) GetLastIpAddr() string
- func (*ProxyARP_Range) ProtoMessage()
- func (m *ProxyARP_Range) Reset()
- func (m *ProxyARP_Range) String() string
- func (m *ProxyARP_Range) XXX_DiscardUnknown()
- func (m *ProxyARP_Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProxyARP_Range) XXX_Merge(src proto.Message)
- func (*ProxyARP_Range) XXX_MessageName() string
- func (m *ProxyARP_Range) XXX_Size() int
- func (m *ProxyARP_Range) XXX_Unmarshal(b []byte) error
- type Route
- func (*Route) Descriptor() ([]byte, []int)
- func (m *Route) GetDstNetwork() string
- func (m *Route) GetNextHopAddr() string
- func (m *Route) GetOutgoingInterface() string
- func (m *Route) GetPreference() uint32
- func (m *Route) GetType() Route_RouteType
- func (m *Route) GetViaVrfId() uint32
- func (m *Route) GetVrfId() uint32
- func (m *Route) GetWeight() uint32
- func (*Route) ProtoMessage()
- func (m *Route) Reset()
- func (m *Route) String() string
- func (m *Route) XXX_DiscardUnknown()
- func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Route) XXX_Merge(src proto.Message)
- func (*Route) XXX_MessageName() string
- func (m *Route) XXX_Size() int
- func (m *Route) XXX_Unmarshal(b []byte) error
- type Route_RouteType
Constants ¶
View Source
const ModuleName = "vpp"
ModuleName is the module name used for models.
Variables ¶
View Source
var ( ModelARPEntry = models.Register(&ARPEntry{}, models.Spec{ Module: ModuleName, Type: "arp", Version: "v2", }, models.WithNameTemplate( "{{.Interface}}/{{.IpAddress}}", )) ModelRoute = models.Register(&Route{}, models.Spec{ Module: ModuleName, Type: "route", Version: "v2", }, models.WithNameTemplate( `vrf/{{.VrfId}}/dst/{{with ipnet .DstNetwork}}{{printf "%s/%d" .IP .MaskSize}}{{end}}/gw/{{.NextHopAddr}}`, )) ModelProxyARP = models.Register(&ProxyARP{}, models.Spec{ Module: ModuleName, Type: "proxyarp-global", Version: "v2", }, models.WithNameTemplate("settings")) ModelIPScanNeighbor = models.Register(&IPScanNeighbor{}, models.Spec{ Module: ModuleName, Type: "ipscanneigh-global", Version: "v2", }, models.WithNameTemplate("settings")) )
View Source
var IPScanNeighbor_Mode_name = map[int32]string{
0: "DISABLED",
1: "IPv4",
2: "IPv6",
3: "BOTH",
}
View Source
var IPScanNeighbor_Mode_value = map[string]int32{
"DISABLED": 0,
"IPv4": 1,
"IPv6": 2,
"BOTH": 3,
}
View Source
var Route_RouteType_name = map[int32]string{
0: "INTRA_VRF",
1: "INTER_VRF",
2: "DROP",
}
View Source
var Route_RouteType_value = map[string]int32{
"INTRA_VRF": 0,
"INTER_VRF": 1,
"DROP": 2,
}
Functions ¶
func ArpEntryKey ¶
ArpEntryKey returns the key to store ARP entry
func IPScanNeighborKey ¶
func IPScanNeighborKey() string
ProxyARPKey is key for global ip scan neighbor
func ParseProxyARPInterfaceKey ¶
ParseProxyARPInterfaceKey parses key representing binding for interface with enabled proxy ARP.
func ProxyARPInterfaceKey ¶
ProxyARPInterfaceKey returns the key used to represent binding for interface with enabled proxy ARP.
Types ¶
type ARPEntry ¶
type ARPEntry struct { Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` PhysAddress string `protobuf:"bytes,3,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"` Static bool `protobuf:"varint,4,opt,name=static,proto3" json:"static,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ARPEntry) Descriptor ¶
func (*ARPEntry) GetInterface ¶
func (*ARPEntry) GetIpAddress ¶
func (*ARPEntry) GetPhysAddress ¶
func (*ARPEntry) ProtoMessage ¶
func (*ARPEntry) ProtoMessage()
func (*ARPEntry) XXX_DiscardUnknown ¶
func (m *ARPEntry) XXX_DiscardUnknown()
func (*ARPEntry) XXX_Marshal ¶
func (*ARPEntry) XXX_MessageName ¶
func (*ARPEntry) XXX_Unmarshal ¶
type IPScanNeighbor ¶
type IPScanNeighbor struct { Mode IPScanNeighbor_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=vpp.l3.IPScanNeighbor_Mode" json:"mode,omitempty"` ScanInterval uint32 `protobuf:"varint,2,opt,name=scan_interval,json=scanInterval,proto3" json:"scan_interval,omitempty"` MaxProcTime uint32 `protobuf:"varint,3,opt,name=max_proc_time,json=maxProcTime,proto3" json:"max_proc_time,omitempty"` MaxUpdate uint32 `protobuf:"varint,4,opt,name=max_update,json=maxUpdate,proto3" json:"max_update,omitempty"` ScanIntDelay uint32 `protobuf:"varint,5,opt,name=scan_int_delay,json=scanIntDelay,proto3" json:"scan_int_delay,omitempty"` StaleThreshold uint32 `protobuf:"varint,6,opt,name=stale_threshold,json=staleThreshold,proto3" json:"stale_threshold,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IPScanNeighbor) Descriptor ¶
func (*IPScanNeighbor) Descriptor() ([]byte, []int)
func (*IPScanNeighbor) GetMaxProcTime ¶
func (m *IPScanNeighbor) GetMaxProcTime() uint32
func (*IPScanNeighbor) GetMaxUpdate ¶
func (m *IPScanNeighbor) GetMaxUpdate() uint32
func (*IPScanNeighbor) GetMode ¶
func (m *IPScanNeighbor) GetMode() IPScanNeighbor_Mode
func (*IPScanNeighbor) GetScanIntDelay ¶
func (m *IPScanNeighbor) GetScanIntDelay() uint32
func (*IPScanNeighbor) GetScanInterval ¶
func (m *IPScanNeighbor) GetScanInterval() uint32
func (*IPScanNeighbor) GetStaleThreshold ¶
func (m *IPScanNeighbor) GetStaleThreshold() uint32
func (*IPScanNeighbor) ProtoMessage ¶
func (*IPScanNeighbor) ProtoMessage()
func (*IPScanNeighbor) Reset ¶
func (m *IPScanNeighbor) Reset()
func (*IPScanNeighbor) String ¶
func (m *IPScanNeighbor) String() string
func (*IPScanNeighbor) XXX_DiscardUnknown ¶
func (m *IPScanNeighbor) XXX_DiscardUnknown()
func (*IPScanNeighbor) XXX_Marshal ¶
func (m *IPScanNeighbor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IPScanNeighbor) XXX_Merge ¶
func (dst *IPScanNeighbor) XXX_Merge(src proto.Message)
func (*IPScanNeighbor) XXX_MessageName ¶
func (*IPScanNeighbor) XXX_MessageName() string
func (*IPScanNeighbor) XXX_Size ¶
func (m *IPScanNeighbor) XXX_Size() int
func (*IPScanNeighbor) XXX_Unmarshal ¶
func (m *IPScanNeighbor) XXX_Unmarshal(b []byte) error
type IPScanNeighbor_Mode ¶
type IPScanNeighbor_Mode int32
const ( IPScanNeighbor_DISABLED IPScanNeighbor_Mode = 0 IPScanNeighbor_IPv4 IPScanNeighbor_Mode = 1 IPScanNeighbor_IPv6 IPScanNeighbor_Mode = 2 IPScanNeighbor_BOTH IPScanNeighbor_Mode = 3 )
func (IPScanNeighbor_Mode) EnumDescriptor ¶
func (IPScanNeighbor_Mode) EnumDescriptor() ([]byte, []int)
func (IPScanNeighbor_Mode) String ¶
func (x IPScanNeighbor_Mode) String() string
type ProxyARP ¶
type ProxyARP struct { Interfaces []*ProxyARP_Interface `protobuf:"bytes,1,rep,name=interfaces,proto3" json:"interfaces,omitempty"` Ranges []*ProxyARP_Range `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProxyARP) Descriptor ¶
func (*ProxyARP) GetInterfaces ¶
func (m *ProxyARP) GetInterfaces() []*ProxyARP_Interface
func (*ProxyARP) GetRanges ¶
func (m *ProxyARP) GetRanges() []*ProxyARP_Range
func (*ProxyARP) ProtoMessage ¶
func (*ProxyARP) ProtoMessage()
func (*ProxyARP) XXX_DiscardUnknown ¶
func (m *ProxyARP) XXX_DiscardUnknown()
func (*ProxyARP) XXX_Marshal ¶
func (*ProxyARP) XXX_MessageName ¶
func (*ProxyARP) XXX_Unmarshal ¶
type ProxyARP_Interface ¶
type ProxyARP_Interface struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProxyARP_Interface) Descriptor ¶
func (*ProxyARP_Interface) Descriptor() ([]byte, []int)
func (*ProxyARP_Interface) GetName ¶
func (m *ProxyARP_Interface) GetName() string
func (*ProxyARP_Interface) ProtoMessage ¶
func (*ProxyARP_Interface) ProtoMessage()
func (*ProxyARP_Interface) Reset ¶
func (m *ProxyARP_Interface) Reset()
func (*ProxyARP_Interface) String ¶
func (m *ProxyARP_Interface) String() string
func (*ProxyARP_Interface) XXX_DiscardUnknown ¶
func (m *ProxyARP_Interface) XXX_DiscardUnknown()
func (*ProxyARP_Interface) XXX_Marshal ¶
func (m *ProxyARP_Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProxyARP_Interface) XXX_Merge ¶
func (dst *ProxyARP_Interface) XXX_Merge(src proto.Message)
func (*ProxyARP_Interface) XXX_MessageName ¶
func (*ProxyARP_Interface) XXX_MessageName() string
func (*ProxyARP_Interface) XXX_Size ¶
func (m *ProxyARP_Interface) XXX_Size() int
func (*ProxyARP_Interface) XXX_Unmarshal ¶
func (m *ProxyARP_Interface) XXX_Unmarshal(b []byte) error
type ProxyARP_Range ¶
type ProxyARP_Range struct { FirstIpAddr string `protobuf:"bytes,1,opt,name=first_ip_addr,json=firstIpAddr,proto3" json:"first_ip_addr,omitempty"` LastIpAddr string `protobuf:"bytes,2,opt,name=last_ip_addr,json=lastIpAddr,proto3" json:"last_ip_addr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProxyARP_Range) Descriptor ¶
func (*ProxyARP_Range) Descriptor() ([]byte, []int)
func (*ProxyARP_Range) GetFirstIpAddr ¶
func (m *ProxyARP_Range) GetFirstIpAddr() string
func (*ProxyARP_Range) GetLastIpAddr ¶
func (m *ProxyARP_Range) GetLastIpAddr() string
func (*ProxyARP_Range) ProtoMessage ¶
func (*ProxyARP_Range) ProtoMessage()
func (*ProxyARP_Range) Reset ¶
func (m *ProxyARP_Range) Reset()
func (*ProxyARP_Range) String ¶
func (m *ProxyARP_Range) String() string
func (*ProxyARP_Range) XXX_DiscardUnknown ¶
func (m *ProxyARP_Range) XXX_DiscardUnknown()
func (*ProxyARP_Range) XXX_Marshal ¶
func (m *ProxyARP_Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProxyARP_Range) XXX_Merge ¶
func (dst *ProxyARP_Range) XXX_Merge(src proto.Message)
func (*ProxyARP_Range) XXX_MessageName ¶
func (*ProxyARP_Range) XXX_MessageName() string
func (*ProxyARP_Range) XXX_Size ¶
func (m *ProxyARP_Range) XXX_Size() int
func (*ProxyARP_Range) XXX_Unmarshal ¶
func (m *ProxyARP_Range) XXX_Unmarshal(b []byte) error
type Route ¶
type Route struct { Type Route_RouteType `protobuf:"varint,10,opt,name=type,proto3,enum=vpp.l3.Route_RouteType" json:"type,omitempty"` VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` DstNetwork string `protobuf:"bytes,3,opt,name=dst_network,json=dstNetwork,proto3" json:"dst_network,omitempty"` NextHopAddr string `protobuf:"bytes,4,opt,name=next_hop_addr,json=nextHopAddr,proto3" json:"next_hop_addr,omitempty"` OutgoingInterface string `protobuf:"bytes,5,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` Weight uint32 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"` Preference uint32 `protobuf:"varint,7,opt,name=preference,proto3" json:"preference,omitempty"` // (a poor man's primary and backup) ViaVrfId uint32 `protobuf:"varint,8,opt,name=via_vrf_id,json=viaVrfId,proto3" json:"via_vrf_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Route) Descriptor ¶
func (*Route) GetDstNetwork ¶
func (*Route) GetNextHopAddr ¶
func (*Route) GetOutgoingInterface ¶
func (*Route) GetPreference ¶
func (*Route) GetType ¶
func (m *Route) GetType() Route_RouteType
func (*Route) GetViaVrfId ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) XXX_DiscardUnknown ¶
func (m *Route) XXX_DiscardUnknown()
func (*Route) XXX_Marshal ¶
func (*Route) XXX_MessageName ¶
func (*Route) XXX_Unmarshal ¶
type Route_RouteType ¶
type Route_RouteType int32
const ( Route_INTRA_VRF Route_RouteType = 0 Route_INTER_VRF Route_RouteType = 1 Route_DROP Route_RouteType = 2 )
func (Route_RouteType) EnumDescriptor ¶
func (Route_RouteType) EnumDescriptor() ([]byte, []int)
func (Route_RouteType) String ¶
func (x Route_RouteType) String() string
Click to show internal directories.
Click to hide internal directories.