package
Version:
v1.2.2
Opens a new window with list of versions in this module.
Published: Mar 27, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
UpfDefaultConfigPath = "./config/upfcfg.yaml"
UpfDefaultIPv4 = "127.0.0.8"
UpfPfcpDefaultPort = 8805
UpfGtpDefaultPort = 2152
)
TODO: Support configuration update from REST api
type Config struct {
Version string `yaml:"version" valid:"required,in(1.0.3)"`
Description string `yaml:"description" valid:"optional"`
Pfcp *Pfcp `yaml:"pfcp" valid:"required"`
Gtpu *Gtpu `yaml:"gtpu" valid:"required"`
DnnList []DnnList `yaml:"dnnList" valid:"required"`
Logger *Logger `yaml:"logger" valid:"required"`
}
type DnnList struct {
Dnn string `yaml:"dnn" valid:"required"`
Cidr string `yaml:"cidr" valid:"required,cidr"`
NatIfName string `yaml:"natifname" valid:"optional"`
}
type Gtpu struct {
Forwarder string `yaml:"forwarder" valid:"required,in(gtp5g)"`
IfList []IfInfo `yaml:"ifList" valid:"optional"`
}
type IfInfo struct {
Addr string `yaml:"addr" valid:"required,host"`
Type string `yaml:"type" valid:"required,in(N3|N9)"`
Name string `yaml:"name" valid:"optional"`
IfName string `yaml:"ifname" valid:"optional"`
MTU uint32 `yaml:"mtu" valid:"optional"`
}
type Logger struct {
Enable bool `yaml:"enable" valid:"optional"`
Level string `yaml:"level" valid:"required,in(trace|debug|info|warn|error|fatal|panic)"`
ReportCaller bool `yaml:"reportCaller" valid:"optional"`
}
type Pfcp struct {
Addr string `yaml:"addr" valid:"required,host"`
NodeID string `yaml:"nodeID" valid:"required,host"`
RetransTimeout time.Duration `yaml:"retransTimeout" valid:"required"`
MaxRetrans uint8 `yaml:"maxRetrans" valid:"optional"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.