l3

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2017 License: Apache-2.0 Imports: 4 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

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 = "vpp/config/v1/vrf/{vrf}/fib/{net}/{mask}/{next-hop}"
)

Prefixes

Variables

This section is empty.

Functions

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 RouteKey

func RouteKey(vrf uint32, dstAddr *net.IPNet, 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 StaticRoutes

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

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

Jump to

Keyboard shortcuts

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