l3

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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

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.
	ProxyARPRangePrefix = "vpp/config/v1/proxyarp/range/"
	// ProxyARPPrefix is the relative key prefix for proxy ARP configuration.
	ProxyARPInterfacePrefix = "vpp/config/v1/proxyarp/interface/"
	// ProxyARPRangePrefix is the relative key prefix for proxy ARP ranges.
	ProxyARPRangeKey = ProxyARPRangePrefix + "{label}"
	// ProxyARPInterfacePrefix is the relative key prefix for proxy ARP-enabled interfaces.
	ProxyARPInterfaceKey = ProxyARPInterfacePrefix + "{label}"
)

Prefixes

Variables

This section is empty.

Functions

func ArpEntryKey

func ArpEntryKey(iface, ipAddr string) string

ArpEntryKey returns the key to store ARP entry

func ArpKeyPrefix

func ArpKeyPrefix() string

ArpKeyPrefix returns the prefix used in ETCD to store vpp APR tables for vpp instance.

func ParseArpKey

func ParseArpKey(key string) (iface string, ipAddr string, err error)

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 ProxyArpInterfaceKey

func ProxyArpInterfaceKey(label string) string

ProxyArpInterfaceKey returns the key to store Proxy ARP interface config

func ProxyArpInterfacePrefix

func ProxyArpInterfacePrefix() string

ProxyArpPrefix returns the prefix used in ETCD to store proxy APR interfaces for vpp instance.

func ProxyArpRangeKey

func ProxyArpRangeKey(label string) string

ProxyArpRangeKey returns the key to store Proxy ARP range config

func ProxyArpRangePrefix

func ProxyArpRangePrefix() string

ProxyArpPrefix returns the prefix used in ETCD to store proxy APR ranges for vpp instance.

func RouteKey

func RouteKey(vrf uint32, dstAddr string, nextHopAddr string) string

RouteKey returns the key used in ETCD to store vpp route for vpp instance.

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

type ArpTable struct {
	ArpEntries []*ArpTable_ArpEntry `protobuf:"bytes,1,rep,name=arp_entries,json=arpEntries" json:"arp_entries,omitempty"`
}

IP ARP entries

func (*ArpTable) Descriptor

func (*ArpTable) Descriptor() ([]byte, []int)

func (*ArpTable) GetArpEntries

func (m *ArpTable) GetArpEntries() []*ArpTable_ArpEntry

func (*ArpTable) ProtoMessage

func (*ArpTable) ProtoMessage()

func (*ArpTable) Reset

func (m *ArpTable) Reset()

func (*ArpTable) String

func (m *ArpTable) String() string

type ArpTable_ArpEntry

type ArpTable_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"`
}

func (*ArpTable_ArpEntry) Descriptor

func (*ArpTable_ArpEntry) Descriptor() ([]byte, []int)

func (*ArpTable_ArpEntry) GetInterface

func (m *ArpTable_ArpEntry) GetInterface() string

func (*ArpTable_ArpEntry) GetIpAddress

func (m *ArpTable_ArpEntry) GetIpAddress() string

func (*ArpTable_ArpEntry) GetPhysAddress

func (m *ArpTable_ArpEntry) GetPhysAddress() string

func (*ArpTable_ArpEntry) GetStatic

func (m *ArpTable_ArpEntry) GetStatic() bool

func (*ArpTable_ArpEntry) ProtoMessage

func (*ArpTable_ArpEntry) ProtoMessage()

func (*ArpTable_ArpEntry) Reset

func (m *ArpTable_ArpEntry) Reset()

func (*ArpTable_ArpEntry) String

func (m *ArpTable_ArpEntry) String() string

type ProxyArpInterfaces

type ProxyArpInterfaces struct {
	InterfaceLists []*ProxyArpInterfaces_InterfaceList `protobuf:"bytes,1,rep,name=interface_lists,json=interfaceLists" json:"interface_lists,omitempty"`
}

Proxy ARP interfaces

func (*ProxyArpInterfaces) Descriptor

func (*ProxyArpInterfaces) Descriptor() ([]byte, []int)

func (*ProxyArpInterfaces) GetInterfaceLists

func (m *ProxyArpInterfaces) GetInterfaceLists() []*ProxyArpInterfaces_InterfaceList

func (*ProxyArpInterfaces) ProtoMessage

func (*ProxyArpInterfaces) ProtoMessage()

func (*ProxyArpInterfaces) Reset

func (m *ProxyArpInterfaces) Reset()

func (*ProxyArpInterfaces) String

func (m *ProxyArpInterfaces) String() string

type ProxyArpInterfaces_InterfaceList

type ProxyArpInterfaces_InterfaceList struct {
	Label      string                                        `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	Interfaces []*ProxyArpInterfaces_InterfaceList_Interface `protobuf:"bytes,2,rep,name=interfaces" json:"interfaces,omitempty"`
}

func (*ProxyArpInterfaces_InterfaceList) Descriptor

func (*ProxyArpInterfaces_InterfaceList) Descriptor() ([]byte, []int)

func (*ProxyArpInterfaces_InterfaceList) GetInterfaces

func (*ProxyArpInterfaces_InterfaceList) GetLabel

func (*ProxyArpInterfaces_InterfaceList) ProtoMessage

func (*ProxyArpInterfaces_InterfaceList) ProtoMessage()

func (*ProxyArpInterfaces_InterfaceList) Reset

func (*ProxyArpInterfaces_InterfaceList) String

type ProxyArpInterfaces_InterfaceList_Interface

type ProxyArpInterfaces_InterfaceList_Interface struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}

func (*ProxyArpInterfaces_InterfaceList_Interface) Descriptor

func (*ProxyArpInterfaces_InterfaceList_Interface) GetName

func (*ProxyArpInterfaces_InterfaceList_Interface) ProtoMessage

func (*ProxyArpInterfaces_InterfaceList_Interface) Reset

func (*ProxyArpInterfaces_InterfaceList_Interface) String

type ProxyArpRanges

type ProxyArpRanges struct {
	RangeLists []*ProxyArpRanges_RangeList `protobuf:"bytes,1,rep,name=range_lists,json=rangeLists" json:"range_lists,omitempty"`
}

Proxy ARP ranges

func (*ProxyArpRanges) Descriptor

func (*ProxyArpRanges) Descriptor() ([]byte, []int)

func (*ProxyArpRanges) GetRangeLists

func (m *ProxyArpRanges) GetRangeLists() []*ProxyArpRanges_RangeList

func (*ProxyArpRanges) ProtoMessage

func (*ProxyArpRanges) ProtoMessage()

func (*ProxyArpRanges) Reset

func (m *ProxyArpRanges) Reset()

func (*ProxyArpRanges) String

func (m *ProxyArpRanges) String() string

type ProxyArpRanges_RangeList

type ProxyArpRanges_RangeList struct {
	Label  string                            `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	Ranges []*ProxyArpRanges_RangeList_Range `protobuf:"bytes,2,rep,name=ranges" json:"ranges,omitempty"`
}

func (*ProxyArpRanges_RangeList) Descriptor

func (*ProxyArpRanges_RangeList) Descriptor() ([]byte, []int)

func (*ProxyArpRanges_RangeList) GetLabel

func (m *ProxyArpRanges_RangeList) GetLabel() string

func (*ProxyArpRanges_RangeList) GetRanges

func (*ProxyArpRanges_RangeList) ProtoMessage

func (*ProxyArpRanges_RangeList) ProtoMessage()

func (*ProxyArpRanges_RangeList) Reset

func (m *ProxyArpRanges_RangeList) Reset()

func (*ProxyArpRanges_RangeList) String

func (m *ProxyArpRanges_RangeList) String() string

type ProxyArpRanges_RangeList_Range

type ProxyArpRanges_RangeList_Range struct {
	FirstIp string `protobuf:"bytes,1,opt,name=first_ip,json=firstIp,proto3" json:"first_ip,omitempty"`
	LastIp  string `protobuf:"bytes,2,opt,name=last_ip,json=lastIp,proto3" json:"last_ip,omitempty"`
}

func (*ProxyArpRanges_RangeList_Range) Descriptor

func (*ProxyArpRanges_RangeList_Range) Descriptor() ([]byte, []int)

func (*ProxyArpRanges_RangeList_Range) GetFirstIp

func (m *ProxyArpRanges_RangeList_Range) GetFirstIp() string

func (*ProxyArpRanges_RangeList_Range) GetLastIp

func (m *ProxyArpRanges_RangeList_Range) GetLastIp() string

func (*ProxyArpRanges_RangeList_Range) ProtoMessage

func (*ProxyArpRanges_RangeList_Range) ProtoMessage()

func (*ProxyArpRanges_RangeList_Range) Reset

func (m *ProxyArpRanges_RangeList_Range) Reset()

func (*ProxyArpRanges_RangeList_Range) String

type STNTable

type STNTable struct {
	StnEntries []*STNTable_STNTableEntry `protobuf:"bytes,1,rep,name=stn_entries,json=stnEntries" json:"stn_entries,omitempty"`
}

STN (Steal The NIC) feature table

func (*STNTable) Descriptor

func (*STNTable) Descriptor() ([]byte, []int)

func (*STNTable) GetStnEntries

func (m *STNTable) GetStnEntries() []*STNTable_STNTableEntry

func (*STNTable) ProtoMessage

func (*STNTable) ProtoMessage()

func (*STNTable) Reset

func (m *STNTable) Reset()

func (*STNTable) String

func (m *STNTable) String() string

type STNTable_STNTableEntry

type STNTable_STNTableEntry struct {
	IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	Interface string `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"`
}

func (*STNTable_STNTableEntry) Descriptor

func (*STNTable_STNTableEntry) Descriptor() ([]byte, []int)

func (*STNTable_STNTableEntry) GetInterface

func (m *STNTable_STNTableEntry) GetInterface() string

func (*STNTable_STNTableEntry) GetIpAddress

func (m *STNTable_STNTableEntry) GetIpAddress() string

func (*STNTable_STNTableEntry) ProtoMessage

func (*STNTable_STNTableEntry) ProtoMessage()

func (*STNTable_STNTableEntry) Reset

func (m *STNTable_STNTableEntry) Reset()

func (*STNTable_STNTableEntry) String

func (m *STNTable_STNTableEntry) String() string

type StaticRoutes

type StaticRoutes struct {
	Routes []*StaticRoutes_Route `protobuf:"bytes,1,rep,name=routes" json:"routes,omitempty"`
}

Static routes

func (*StaticRoutes) Descriptor

func (*StaticRoutes) Descriptor() ([]byte, []int)

func (*StaticRoutes) GetRoutes

func (m *StaticRoutes) GetRoutes() []*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,json=vrfId,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,json=dstIpAddr,proto3" json:"dst_ip_addr,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"`
}

func (*StaticRoutes_Route) Descriptor

func (*StaticRoutes_Route) Descriptor() ([]byte, []int)

func (*StaticRoutes_Route) GetDescription

func (m *StaticRoutes_Route) GetDescription() string

func (*StaticRoutes_Route) GetDstIpAddr

func (m *StaticRoutes_Route) GetDstIpAddr() string

func (*StaticRoutes_Route) GetNextHopAddr

func (m *StaticRoutes_Route) GetNextHopAddr() string

func (*StaticRoutes_Route) GetOutgoingInterface

func (m *StaticRoutes_Route) GetOutgoingInterface() string

func (*StaticRoutes_Route) GetPreference

func (m *StaticRoutes_Route) GetPreference() uint32

func (*StaticRoutes_Route) GetVrfId

func (m *StaticRoutes_Route) GetVrfId() uint32

func (*StaticRoutes_Route) GetWeight

func (m *StaticRoutes_Route) GetWeight() uint32

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL