config

package
Version: v0.0.3-pre7 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RIBConfig

type RIBConfig struct {
	Router string `yaml:"router"`

	VRFs []string `yaml:"vrfs"`

	IPVersions      []uint8  `yaml:"IPVersions"`
	SrcRISInstances []string `yaml:"source_ris_instances"`
	// contains filtered or unexported fields
}

RIBConfig is a RIB configuration

func (*RIBConfig) GetRouter

func (rc *RIBConfig) GetRouter() net.IP

GetRouter gets a routers IP address

func (*RIBConfig) GetVRFs

func (rc *RIBConfig) GetVRFs() []uint64

GetVRFs gets a routers VRFs

type RISMirrorConfig

type RISMirrorConfig struct {
	RIBConfigs []*RIBConfig `yaml:"ribs"`
}

RISMirrorConfig is the config of RISMirror instance

func LoadConfig

func LoadConfig(filepath string) (*RISMirrorConfig, error)

LoadConfig loads a RISMirror config

func (*RISMirrorConfig) GetRISInstances

func (rismc *RISMirrorConfig) GetRISInstances() []string

GetRISInstances returns a list of all RIS instances in the config

Source Files

Jump to

Keyboard shortcuts

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