Documentation ¶
Overview ¶
Package l3 is a generated protocol buffer package.
It is generated from these files:
l3.proto
It has these top-level messages:
StaticRoutes ArpTable ProxyArpRanges ProxyArpInterfaces STNTable
Index ¶
- Constants
- func ArpEntryKey(iface, ipAddr string) string
- func ArpKeyPrefix() string
- func ParseArpKey(key string) (iface string, ipAddr string, err error)
- func ParseRouteKey(key string) (isRouteKey bool, vrfIndex string, dstNetAddr string, dstNetMask int, ...)
- func RouteKey(vrf uint32, dstAddr *net.IPNet, nextHopAddr string) string
- func RouteKeyPrefix() string
- func VrfKeyPrefix() string
- type ArpTable
- type ArpTable_ArpTableEntry
- type ProxyArpInterfaces
- type ProxyArpInterfaces_ProxyArpInterface
- type ProxyArpRanges
- type ProxyArpRanges_ProxyArpRange
- type STNTable
- type STNTable_STNTableEntry
- type StaticRoutes
- type StaticRoutes_Route
Constants ¶
View Source
const ( // VrfPrefix is the relative key prefix for VRFs. VrfPrefix = "vpp/config/v1/vrf/" // RoutesPrefix is the relative key prefix for routes. RoutesPrefix = VrfPrefix + "{vrf}/fib/{net}/{mask}/{next-hop}" // ArpPrefix is the relative key prefix for ARP. ArpPrefix = "vpp/config/v1/arp/" // ArpEntryPrefix is the relative key prefix for ARP table entries. ArpKey = ArpPrefix + "{if}/{ip}" // ProxyARPPrefix is the relative key prefix for proxy ARP configuration. ProxyARPPrefix = "vpp/config/v1/proxyarp/" // ProxyARPRangePrefix is the relative key prefix for proxy ARP ranges. ProxyARPRangePrefix = ProxyARPPrefix + "range/{lo_ip}/{hi_ip}" // ProxyARPInterfacePrefix is the relative key prefix for proxy ARP-enabled interfaces. ProxyARPInterfacePrefix = ProxyARPPrefix + "interface/{if}" // STNPrefix is the relative key prefix for STN entries. STNPrefix = "vpp/config/v1/stn/{ip}" )
Prefixes
Variables ¶
This section is empty.
Functions ¶
func ArpEntryKey ¶ added in v1.0.8
ArpEntryKey returns the key to store ARP entry
func ArpKeyPrefix ¶ added in v1.0.8
func ArpKeyPrefix() string
ArpKeyPrefix returns the prefix used in ETCD to store vpp APR tables for vpp instance.
func ParseArpKey ¶ added in v1.0.8
ParseArpKey parses ARP entry from a key
func ParseRouteKey ¶
func ParseRouteKey(key string) (isRouteKey bool, vrfIndex string, dstNetAddr string, dstNetMask int, nextHopAddr string)
ParseRouteKey parses VRF label and route address from a route key.
func RouteKeyPrefix ¶
func RouteKeyPrefix() string
RouteKeyPrefix returns the prefix used in ETCD to store vpp routes for vpp instance.
func VrfKeyPrefix ¶
func VrfKeyPrefix() string
VrfKeyPrefix returns the prefix used in ETCD to store VRFs for vpp instance.
Types ¶
type ArpTable ¶ added in v1.0.7
type ArpTable struct {
ArpTableEntries []*ArpTable_ArpTableEntry `protobuf:"bytes,100,rep,name=arp_table_entries" json:"arp_table_entries,omitempty"`
}
Static IP ARP entries
func (*ArpTable) GetArpTableEntries ¶ added in v1.0.7
func (m *ArpTable) GetArpTableEntries() []*ArpTable_ArpTableEntry
func (*ArpTable) ProtoMessage ¶ added in v1.0.7
func (*ArpTable) ProtoMessage()
type ArpTable_ArpTableEntry ¶ added in v1.0.7
type ArpTable_ArpTableEntry struct { Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` IpAddress string `protobuf:"bytes,2,opt,name=ip_address,proto3" json:"ip_address,omitempty"` PhysAddress string `protobuf:"bytes,3,opt,name=phys_address,proto3" json:"phys_address,omitempty"` Static bool `protobuf:"varint,4,opt,name=static,proto3" json:"static,omitempty"` }
func (*ArpTable_ArpTableEntry) ProtoMessage ¶ added in v1.0.7
func (*ArpTable_ArpTableEntry) ProtoMessage()
func (*ArpTable_ArpTableEntry) Reset ¶ added in v1.0.7
func (m *ArpTable_ArpTableEntry) Reset()
func (*ArpTable_ArpTableEntry) String ¶ added in v1.0.7
func (m *ArpTable_ArpTableEntry) String() string
type ProxyArpInterfaces ¶ added in v1.0.7
type ProxyArpInterfaces struct {
ProxyArpInterfaces []*ProxyArpInterfaces_ProxyArpInterface `protobuf:"bytes,100,rep,name=proxy_arp_interfaces" json:"proxy_arp_interfaces,omitempty"`
}
Proxy ARP interfaces
func (*ProxyArpInterfaces) GetProxyArpInterfaces ¶ added in v1.0.7
func (m *ProxyArpInterfaces) GetProxyArpInterfaces() []*ProxyArpInterfaces_ProxyArpInterface
func (*ProxyArpInterfaces) ProtoMessage ¶ added in v1.0.7
func (*ProxyArpInterfaces) ProtoMessage()
func (*ProxyArpInterfaces) Reset ¶ added in v1.0.7
func (m *ProxyArpInterfaces) Reset()
func (*ProxyArpInterfaces) String ¶ added in v1.0.7
func (m *ProxyArpInterfaces) String() string
type ProxyArpInterfaces_ProxyArpInterface ¶ added in v1.0.7
type ProxyArpInterfaces_ProxyArpInterface struct {
Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"`
}
func (*ProxyArpInterfaces_ProxyArpInterface) ProtoMessage ¶ added in v1.0.7
func (*ProxyArpInterfaces_ProxyArpInterface) ProtoMessage()
func (*ProxyArpInterfaces_ProxyArpInterface) Reset ¶ added in v1.0.7
func (m *ProxyArpInterfaces_ProxyArpInterface) Reset()
func (*ProxyArpInterfaces_ProxyArpInterface) String ¶ added in v1.0.7
func (m *ProxyArpInterfaces_ProxyArpInterface) String() string
type ProxyArpRanges ¶ added in v1.0.7
type ProxyArpRanges struct {
ProxyArpRanges []*ProxyArpRanges_ProxyArpRange `protobuf:"bytes,100,rep,name=proxy_arp_ranges" json:"proxy_arp_ranges,omitempty"`
}
Proxy ARP ranges
func (*ProxyArpRanges) GetProxyArpRanges ¶ added in v1.0.7
func (m *ProxyArpRanges) GetProxyArpRanges() []*ProxyArpRanges_ProxyArpRange
func (*ProxyArpRanges) ProtoMessage ¶ added in v1.0.7
func (*ProxyArpRanges) ProtoMessage()
func (*ProxyArpRanges) Reset ¶ added in v1.0.7
func (m *ProxyArpRanges) Reset()
func (*ProxyArpRanges) String ¶ added in v1.0.7
func (m *ProxyArpRanges) String() string
type ProxyArpRanges_ProxyArpRange ¶ added in v1.0.7
type ProxyArpRanges_ProxyArpRange struct { RangeIpStart string `protobuf:"bytes,1,opt,name=range_ip_start,proto3" json:"range_ip_start,omitempty"` RangeIpEnd string `protobuf:"bytes,2,opt,name=range_ip_end,proto3" json:"range_ip_end,omitempty"` }
func (*ProxyArpRanges_ProxyArpRange) ProtoMessage ¶ added in v1.0.7
func (*ProxyArpRanges_ProxyArpRange) ProtoMessage()
func (*ProxyArpRanges_ProxyArpRange) Reset ¶ added in v1.0.7
func (m *ProxyArpRanges_ProxyArpRange) Reset()
func (*ProxyArpRanges_ProxyArpRange) String ¶ added in v1.0.7
func (m *ProxyArpRanges_ProxyArpRange) String() string
type STNTable ¶ added in v1.0.7
type STNTable struct {
StnTableEntries []*STNTable_STNTableEntry `protobuf:"bytes,100,rep,name=stn_table_entries" json:"stn_table_entries,omitempty"`
}
STN (Steal The NIC) feature table
func (*STNTable) GetStnTableEntries ¶ added in v1.0.7
func (m *STNTable) GetStnTableEntries() []*STNTable_STNTableEntry
func (*STNTable) ProtoMessage ¶ added in v1.0.7
func (*STNTable) ProtoMessage()
type STNTable_STNTableEntry ¶ added in v1.0.7
type STNTable_STNTableEntry struct { IpAddress string `protobuf:"bytes,1,opt,name=ip_address,proto3" json:"ip_address,omitempty"` Interface string `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` }
func (*STNTable_STNTableEntry) ProtoMessage ¶ added in v1.0.7
func (*STNTable_STNTableEntry) ProtoMessage()
func (*STNTable_STNTableEntry) Reset ¶ added in v1.0.7
func (m *STNTable_STNTableEntry) Reset()
func (*STNTable_STNTableEntry) String ¶ added in v1.0.7
func (m *STNTable_STNTableEntry) String() string
type StaticRoutes ¶
type StaticRoutes struct {
Route []*StaticRoutes_Route `protobuf:"bytes,1,rep,name=route" json:"route,omitempty"`
}
Static IPv4 / IPv6 routes
func (*StaticRoutes) GetRoute ¶
func (m *StaticRoutes) GetRoute() []*StaticRoutes_Route
func (*StaticRoutes) ProtoMessage ¶
func (*StaticRoutes) ProtoMessage()
func (*StaticRoutes) Reset ¶
func (m *StaticRoutes) Reset()
func (*StaticRoutes) String ¶
func (m *StaticRoutes) String() string
type StaticRoutes_Route ¶
type StaticRoutes_Route struct { VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,proto3" json:"vrf_id,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` DstIpAddr string `protobuf:"bytes,3,opt,name=dst_ip_addr,proto3" json:"dst_ip_addr,omitempty"` NextHopAddr string `protobuf:"bytes,4,opt,name=next_hop_addr,proto3" json:"next_hop_addr,omitempty"` OutgoingInterface string `protobuf:"bytes,5,opt,name=outgoing_interface,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"` }
func (*StaticRoutes_Route) ProtoMessage ¶
func (*StaticRoutes_Route) ProtoMessage()
func (*StaticRoutes_Route) Reset ¶
func (m *StaticRoutes_Route) Reset()
func (*StaticRoutes_Route) String ¶
func (m *StaticRoutes_Route) String() string
Click to show internal directories.
Click to hide internal directories.