rismirror

package
v0.0.3-pre4.0...-0ec3cfc Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RISMirror

type RISMirror struct {
	// contains filtered or unexported fields
}

func New

func New() *RISMirror

New creates a new RISMirror

func (*RISMirror) AddTarget

func (rism *RISMirror) AddTarget(rtrName string, address net.IP, vrfRD uint64, sources []*grpc.ClientConn)

AddTarget adds a target to the RISMirror

func (*RISMirror) GetRouter

func (rism *RISMirror) GetRouter(rtr string) server.RouterInterface

GetRouter gets a router

func (*RISMirror) GetRouters

func (rism *RISMirror) GetRouters() []server.RouterInterface

GetRouters gets all routers

func (*RISMirror) Metrics

func (rism *RISMirror) Metrics() *metrics.RISMirrorMetrics

Metrics gets a RISMirrors metrics

type Router

type Router struct {
	// contains filtered or unexported fields
}

Router represents a router

func (*Router) Address

func (r *Router) Address() net.IP

Address gets a routers address

func (*Router) GetVRF

func (r *Router) GetVRF(vrfID uint64) *vrf.VRF

GetVRF gets a VRF by its ID

func (*Router) GetVRFs

func (r *Router) GetVRFs() []*vrf.VRF

GetVRFs gets all VRFs

func (*Router) Name

func (r *Router) Name() string

Name gets the routers name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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