config

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control added in v0.0.18

type Control struct {
	Uri      jsonapi.ControlURI `yaml:"uri"`       // may contain domain name instead of ip address
	BindAddr netip.AddrPort     `yaml:"bind-addr"` // in the form `ip:port`
}

type CtrlConfig

type CtrlConfig struct {
	PFCPAddress netip.Addr `yaml:"pfcp-address"`
	Control     Control    `yaml:"control"`
	Logger      *Logger    `yaml:"logger,omitempty"`
	Uplink      []Rule     `yaml:"uplink"`
	Downlink    []Rule     `yaml:"downlink"`
}

func ParseConf

func ParseConf(file string) (*CtrlConfig, error)

type Logger

type Logger struct {
	Level logrus.Level `yaml:"level"`
}

type Rule added in v0.0.16

type Rule struct {
	ControlURI   jsonapi.ControlURI `yaml:"control-uri"`    // e.g. http://srgw.local:8080
	Area         *[]netip.Prefix    `yaml:"area,omitempty"` // list of gnbs in this area (can be aggregated in prefixes)
	Enabled      bool               `yaml:"enabled"`
	SegmentsList []string           `yaml:"segments-list"`       // Segment[0] is the ultimate node, Segment[n-1] is the next hop ; Segment[0] can be a prefix (for downlink)
	SrgwGtp4     *netip.Addr        `yaml:"srgw-gtp4,omitempty"` // GTP4 Address of the SRGW (for downlink rules only)
	Service      *netip.Addr        `yaml:"service,omitempty"`   // IP Address of the service (for uplink rules only)
}

Jump to

Keyboard shortcuts

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