Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_CLI_PATH = "/usr/bin" NC_HOME_ENV = "NC_HOME" DEFAULT_LXC_MTU = 9000 )
View Source
const ( DEFAULT_API_ADDR = "localhost:50056" DEFAULT_CONFIG = "/etc/nc_module/nc_module.conf" )
Variables ¶
This section is empty.
Functions ¶
func GetCliPathFromEnv ¶
func GetCliPathFromEnv() string
Types ¶
type CliConfig ¶
type CliConfig struct { Path string `toml:"path"` LxcInit string `toml:"lxcinit"` Lxd string `toml:"lxd"` Sys string `toml:"sys"` Vty string `toml:"vty"` GoBgp string `toml:"gobgp"` }
Config - cli
func (*CliConfig) LxcInitPath ¶
type Config ¶
type Config struct { Global *GlobalConfig `toml:"global"` Frr *FrrConfig `toml:"frr"` Cli *CliConfig `toml:"cli"` }
Config
type FrrConfig ¶
type FrrConfig struct {
AutoRstart string `toml:"auto_restart"` // 'restart', 'reload' or others(no operation)
}
Config - FRR
type GlobalConfig ¶
Config - Global
func (*GlobalConfig) String ¶
func (c *GlobalConfig) String() string
Click to show internal directories.
Click to hide internal directories.