fea

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Inits  []func() error
	VrfAdd func(vrfName string, index uint32) error
)

Functions

func PrefixFromPb added in v1.8.1

func PrefixFromPb(from *pb.Prefix) *netutil.Prefix

Types

type Address added in v1.8.1

type Address struct {
	Address *netutil.Prefix
	Flags   uint32
}

func AddressFromPb added in v1.8.1

func AddressFromPb(from *pb.Address) *Address

type FeaComponent

type FeaComponent struct {
	Params *FeaParam
}

func NewFeaComponent

func NewFeaComponent(param *FeaParam) *FeaComponent

func (*FeaComponent) Start

func (fea *FeaComponent) Start() component.Component

func (*FeaComponent) Stop

func (fea *FeaComponent) Stop() component.Component

type FeaParam

type FeaParam map[string]string

type Interface added in v1.8.1

type Interface struct {
	Name     string     `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
	Index    uint32     `protobuf:"varint,4,opt,name=index" json:"index,omitempty"`
	Flags    uint32     `protobuf:"varint,5,opt,name=flags" json:"flags,omitempty"`
	Mtu      uint32     `protobuf:"varint,6,opt,name=mtu" json:"mtu,omitempty"`
	Metric   uint32     `protobuf:"varint,7,opt,name=metric" json:"metric,omitempty"`
	HwAddr   []byte     `protobuf:"bytes,8,opt,name=hw_addr,json=hwAddr" json:"hw_addr,omitempty"`
	AddrIpv4 []*Address `protobuf:"bytes,9,rep,name=addr_ipv4,json=addrIpv4" json:"addr_ipv4,omitempty"`
	AddrIpv6 []*Address `protobuf:"bytes,10,rep,name=addr_ipv6,json=addrIpv6" json:"addr_ipv6,omitempty"`
	Info     interface{}
}

func InterfaceFromPb added in v1.8.1

func InterfaceFromPb(from *pb.InterfaceUpdate) *Interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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