config

package
v0.2.0-beta.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SkipVrfTemplateVni = -1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	VRFToVNI      map[string]int       `yaml:"vnimap"`
	VRFConfig     map[string]VRFConfig `yaml:"vrfConfig"`
	BPFInterfaces []string             `yaml:"bpfInterfaces"`
	SkipVRFConfig []string             `yaml:"skipVRFConfig"`
	ServerASN     int                  `yaml:"serverASN"`
}

func LoadConfig

func LoadConfig() (*Config, error)

func (*Config) ReloadConfig added in v0.2.0

func (c *Config) ReloadConfig() error

func (*Config) ShouldSkipVRFConfig

func (c *Config) ShouldSkipVRFConfig(vrf string) bool

type VRFConfig

type VRFConfig struct {
	VNI int    `yaml:"vni"`
	RT  string `yaml:"rt"`
}

Jump to

Keyboard shortcuts

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