l3

package
v1.9.0-alpha Latest Latest
Warning

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

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

Documentation

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}"
	// IPScanNeighPrefix it the relative key prefix for IP scan neighbor feature
	IPScanNeighPrefix = "vpp/config/v1/ipneigh/"
)

Prefixes

Variables

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 StaticRoutes_Route_RouteType_name = map[int32]string{
	0: "INTRA_VRF",
	1: "INTER_VRF",
	2: "DROP",
}
View Source
var StaticRoutes_Route_RouteType_value = map[string]int32{
	"INTRA_VRF": 0,
	"INTER_VRF": 1,
	"DROP":      2,
}

Functions

func ArpEntryKey

func ArpEntryKey(iface, ipAddr string) string

ArpEntryKey returns the key to store ARP entry

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 ProxyArpRangeKey

func ProxyArpRangeKey(label string) string

ProxyArpRangeKey returns the key to store Proxy ARP range config

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.

Types

type ArpTable

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

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

func (*ArpTable) XXX_DiscardUnknown

func (m *ArpTable) XXX_DiscardUnknown()

func (*ArpTable) XXX_Marshal

func (m *ArpTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArpTable) XXX_Merge

func (dst *ArpTable) XXX_Merge(src proto.Message)

func (*ArpTable) XXX_Size

func (m *ArpTable) XXX_Size() int

func (*ArpTable) XXX_Unmarshal

func (m *ArpTable) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*ArpTable_ArpEntry) XXX_DiscardUnknown

func (m *ArpTable_ArpEntry) XXX_DiscardUnknown()

func (*ArpTable_ArpEntry) XXX_Marshal

func (m *ArpTable_ArpEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArpTable_ArpEntry) XXX_Merge

func (dst *ArpTable_ArpEntry) XXX_Merge(src proto.Message)

func (*ArpTable_ArpEntry) XXX_Size

func (m *ArpTable_ArpEntry) XXX_Size() int

func (*ArpTable_ArpEntry) XXX_Unmarshal

func (m *ArpTable_ArpEntry) XXX_Unmarshal(b []byte) error

type IPScanNeighbor

type IPScanNeighbor struct {
	Mode                 IPScanNeighbor_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=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:"-"`
}

Enables/disables IP neighbor scanning

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_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 ProxyArpInterfaces

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

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

func (*ProxyArpInterfaces) XXX_DiscardUnknown

func (m *ProxyArpInterfaces) XXX_DiscardUnknown()

func (*ProxyArpInterfaces) XXX_Marshal

func (m *ProxyArpInterfaces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProxyArpInterfaces) XXX_Merge

func (dst *ProxyArpInterfaces) XXX_Merge(src proto.Message)

func (*ProxyArpInterfaces) XXX_Size

func (m *ProxyArpInterfaces) XXX_Size() int

func (*ProxyArpInterfaces) XXX_Unmarshal

func (m *ProxyArpInterfaces) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}                                      `json:"-"`
	XXX_unrecognized     []byte                                        `json:"-"`
	XXX_sizecache        int32                                         `json:"-"`
}

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

func (*ProxyArpInterfaces_InterfaceList) XXX_DiscardUnknown

func (m *ProxyArpInterfaces_InterfaceList) XXX_DiscardUnknown()

func (*ProxyArpInterfaces_InterfaceList) XXX_Marshal

func (m *ProxyArpInterfaces_InterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProxyArpInterfaces_InterfaceList) XXX_Merge

func (dst *ProxyArpInterfaces_InterfaceList) XXX_Merge(src proto.Message)

func (*ProxyArpInterfaces_InterfaceList) XXX_Size

func (m *ProxyArpInterfaces_InterfaceList) XXX_Size() int

func (*ProxyArpInterfaces_InterfaceList) XXX_Unmarshal

func (m *ProxyArpInterfaces_InterfaceList) XXX_Unmarshal(b []byte) error

type ProxyArpInterfaces_InterfaceList_Interface

type ProxyArpInterfaces_InterfaceList_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 (*ProxyArpInterfaces_InterfaceList_Interface) Descriptor

func (*ProxyArpInterfaces_InterfaceList_Interface) GetName

func (*ProxyArpInterfaces_InterfaceList_Interface) ProtoMessage

func (*ProxyArpInterfaces_InterfaceList_Interface) Reset

func (*ProxyArpInterfaces_InterfaceList_Interface) String

func (*ProxyArpInterfaces_InterfaceList_Interface) XXX_DiscardUnknown

func (m *ProxyArpInterfaces_InterfaceList_Interface) XXX_DiscardUnknown()

func (*ProxyArpInterfaces_InterfaceList_Interface) XXX_Marshal

func (m *ProxyArpInterfaces_InterfaceList_Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProxyArpInterfaces_InterfaceList_Interface) XXX_Merge

func (*ProxyArpInterfaces_InterfaceList_Interface) XXX_Size

func (*ProxyArpInterfaces_InterfaceList_Interface) XXX_Unmarshal

type ProxyArpRanges

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

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

func (*ProxyArpRanges) XXX_DiscardUnknown

func (m *ProxyArpRanges) XXX_DiscardUnknown()

func (*ProxyArpRanges) XXX_Marshal

func (m *ProxyArpRanges) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProxyArpRanges) XXX_Merge

func (dst *ProxyArpRanges) XXX_Merge(src proto.Message)

func (*ProxyArpRanges) XXX_Size

func (m *ProxyArpRanges) XXX_Size() int

func (*ProxyArpRanges) XXX_Unmarshal

func (m *ProxyArpRanges) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
	XXX_unrecognized     []byte                            `json:"-"`
	XXX_sizecache        int32                             `json:"-"`
}

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

func (*ProxyArpRanges_RangeList) XXX_DiscardUnknown

func (m *ProxyArpRanges_RangeList) XXX_DiscardUnknown()

func (*ProxyArpRanges_RangeList) XXX_Marshal

func (m *ProxyArpRanges_RangeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProxyArpRanges_RangeList) XXX_Merge

func (dst *ProxyArpRanges_RangeList) XXX_Merge(src proto.Message)

func (*ProxyArpRanges_RangeList) XXX_Size

func (m *ProxyArpRanges_RangeList) XXX_Size() int

func (*ProxyArpRanges_RangeList) XXX_Unmarshal

func (m *ProxyArpRanges_RangeList) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*ProxyArpRanges_RangeList_Range) XXX_DiscardUnknown

func (m *ProxyArpRanges_RangeList_Range) XXX_DiscardUnknown()

func (*ProxyArpRanges_RangeList_Range) XXX_Marshal

func (m *ProxyArpRanges_RangeList_Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProxyArpRanges_RangeList_Range) XXX_Merge

func (dst *ProxyArpRanges_RangeList_Range) XXX_Merge(src proto.Message)

func (*ProxyArpRanges_RangeList_Range) XXX_Size

func (m *ProxyArpRanges_RangeList_Range) XXX_Size() int

func (*ProxyArpRanges_RangeList_Range) XXX_Unmarshal

func (m *ProxyArpRanges_RangeList_Range) XXX_Unmarshal(b []byte) error

type STNTable

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

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

func (*STNTable) XXX_DiscardUnknown

func (m *STNTable) XXX_DiscardUnknown()

func (*STNTable) XXX_Marshal

func (m *STNTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*STNTable) XXX_Merge

func (dst *STNTable) XXX_Merge(src proto.Message)

func (*STNTable) XXX_Size

func (m *STNTable) XXX_Size() int

func (*STNTable) XXX_Unmarshal

func (m *STNTable) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*STNTable_STNTableEntry) XXX_DiscardUnknown

func (m *STNTable_STNTableEntry) XXX_DiscardUnknown()

func (*STNTable_STNTableEntry) XXX_Marshal

func (m *STNTable_STNTableEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*STNTable_STNTableEntry) XXX_Merge

func (dst *STNTable_STNTableEntry) XXX_Merge(src proto.Message)

func (*STNTable_STNTableEntry) XXX_Size

func (m *STNTable_STNTableEntry) XXX_Size() int

func (*STNTable_STNTableEntry) XXX_Unmarshal

func (m *STNTable_STNTableEntry) XXX_Unmarshal(b []byte) error

type StaticRoutes

type StaticRoutes struct {
	Routes               []*StaticRoutes_Route `protobuf:"bytes,1,rep,name=routes" json:"routes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

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

func (*StaticRoutes) XXX_DiscardUnknown

func (m *StaticRoutes) XXX_DiscardUnknown()

func (*StaticRoutes) XXX_Marshal

func (m *StaticRoutes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StaticRoutes) XXX_Merge

func (dst *StaticRoutes) XXX_Merge(src proto.Message)

func (*StaticRoutes) XXX_Size

func (m *StaticRoutes) XXX_Size() int

func (*StaticRoutes) XXX_Unmarshal

func (m *StaticRoutes) XXX_Unmarshal(b []byte) error

type StaticRoutes_Route

type StaticRoutes_Route struct {
	Type              StaticRoutes_Route_RouteType `protobuf:"varint,10,opt,name=type,proto3,enum=l3.StaticRoutes_Route_RouteType" json:"type,omitempty"`
	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"`
	// (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 (*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) GetType

func (*StaticRoutes_Route) GetViaVrfId

func (m *StaticRoutes_Route) GetViaVrfId() 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

func (*StaticRoutes_Route) XXX_DiscardUnknown

func (m *StaticRoutes_Route) XXX_DiscardUnknown()

func (*StaticRoutes_Route) XXX_Marshal

func (m *StaticRoutes_Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StaticRoutes_Route) XXX_Merge

func (dst *StaticRoutes_Route) XXX_Merge(src proto.Message)

func (*StaticRoutes_Route) XXX_Size

func (m *StaticRoutes_Route) XXX_Size() int

func (*StaticRoutes_Route) XXX_Unmarshal

func (m *StaticRoutes_Route) XXX_Unmarshal(b []byte) error

type StaticRoutes_Route_RouteType

type StaticRoutes_Route_RouteType int32
const (
	StaticRoutes_Route_INTRA_VRF StaticRoutes_Route_RouteType = 0
	StaticRoutes_Route_INTER_VRF StaticRoutes_Route_RouteType = 1
	StaticRoutes_Route_DROP      StaticRoutes_Route_RouteType = 2
)

func (StaticRoutes_Route_RouteType) EnumDescriptor

func (StaticRoutes_Route_RouteType) EnumDescriptor() ([]byte, []int)

func (StaticRoutes_Route_RouteType) String

Jump to

Keyboard shortcuts

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