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 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)
}
Click to show internal directories.
Click to hide internal directories.