rismirror

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 12 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

func (*RISMirror) RemoveRouter added in v0.1.9

func (rism *RISMirror) RemoveRouter(rtrName string)

func (*RISMirror) RemoveTarget added in v0.1.9

func (rism *RISMirror) RemoveTarget(rtrName string, vrfRD uint64) error

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(rd uint64) *vrf.VRF

GetVRF gets a VRF by its RD

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

func (*Router) Ready added in v0.1.2

func (r *Router) Ready(vrf uint64, afi uint16) (bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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