Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SDFFilterRegex = regexp.MustCompile(`^permit (out|in) (icmp|ip|tcp|udp|\d+) from (any|[\d.]+|[\da-fA-F:]+)(?:/(\d+))?(?: (\d+|\d+-\d+))? to (assigned|any|[\d.]+|[\da-fA-F:]+)(?:/(\d+))?(?: (\d+|\d+-\d+))?$`)
)
Functions ¶
Types ¶
type Far ¶
type Far struct {
Action uint8 `mapstructure:"action"`
OuterHeaderCreation uint8 `mapstructure:"outer_header_creation"`
Teid uint32 `mapstructure:"teid"`
RemoteIP uint32 `mapstructure:"remote_ip"`
TransportLevelMarking uint16 `mapstructure:"transport_level_marking"`
}
Far Forwarding Action Rule in the pcc config view
type PCCRulesConfig ¶
type PCCRulesConfig struct {
PccRules []PccRule `mapstructure:"pcc_rules" json:"pcc_rules" validate:"dive"`
}
var PCCConf PCCRulesConfig
func (*PCCRulesConfig) Unmarshal ¶
func (pcr *PCCRulesConfig) Unmarshal() error
Unmarshal data from config file
func (*PCCRulesConfig) Validate ¶
func (pcr *PCCRulesConfig) Validate() error
type PccRule ¶
type PccRule struct {
PccName string `mapstructure:"pcc_name" validate:"required"`
Notify bool `mapstructure:"notify"`
SdfFilter string `mapstructure:"sdf_filter" validate:"required,sdfFilter"`
Far Far `mapstructure:"far"`
Qer Qer `mapstructure:"qer"`
Urr Urr `mapstructure:"urr"`
}
PccRule describes the structure of the pcc rule representation
type Qer ¶
type Qer struct {
Qfi uint8 `mapstructure:"qfi" validate:"min=1,max=255"`
MaxBitrateUl uint32 `mapstructure:"max_bitrate_ul"`
MaxBitrateDl uint32 `mapstructure:"max_bitrate_dl"`
}
Qer QoS Enforcement Rule in the pcc config view
type UpfConfig ¶
type UpfConfig struct {
InterfaceName []string `mapstructure:"interface_name" json:"interface_name"`
XDPAttachMode string `mapstructure:"xdp_attach_mode" validate:"oneof=generic native offload" json:"xdp_attach_mode"`
ApiAddress string `mapstructure:"api_address" validate:"hostname_port" json:"api_address"`
PfcpAddress string `mapstructure:"pfcp_address" validate:"hostname_port" json:"pfcp_address"`
PfcpNodeId string `mapstructure:"pfcp_node_id" validate:"hostname|ip" json:"pfcp_node_id"`
PfcpRemoteNode []string `mapstructure:"pfcp_remote_node" validate:"omitempty,dive,hostname|ip" json:"pfcp_node"`
SxaRemoteNode []string `mapstructure:"sxa_remote_node" validate:"omitempty,dive,hostname|ip" json:"sxa_node"`
SxbRemoteNode []string `mapstructure:"sxb_remote_node" validate:"omitempty,dive,hostname|ip" json:"sxb_node"`
SxaLocalAddress string `mapstructure:"sxa_address" validate:"omitempty,hostname_port" json:"sxa_address"`
SxbLocalAddress string `mapstructure:"sxb_address" validate:"omitempty,hostname_port" json:"sxb_address"`
SxaLocalNodeId string `mapstructure:"sxa_node_id" validate:"omitempty,hostname|ip" json:"sxa_node_id"`
SxbLocalNodeId string `mapstructure:"sxb_node_id" validate:"omitempty,hostname|ip" json:"sxb_node_id"`
AssociationSetupTimeout uint32 `mapstructure:"association_setup_timeout" json:"association_setup_timeout"`
MetricsAddress string `mapstructure:"metrics_address" validate:"hostname_port" json:"metrics_address"`
N3Address string `mapstructure:"n3_address" validate:"ipv4" json:"n3_address"`
N9Address string `mapstructure:"n9_address" validate:"ipv4" json:"n9_address"`
N3AdvertisedAddress string `mapstructure:"n3_adv_address" validate:"ipv4" json:"n3_adv_address"`
N3AdvertisedAddress5G string `mapstructure:"n3_adv_address_5g" validate:"ipv4" json:"n3_adv_address_5g"`
N9AdvertisedAddress string `mapstructure:"n9_adv_address" validate:"ipv4" json:"n9_adv_address"`
S1UAddress string `mapstructure:"s1u_address" validate:"omitempty,ipv4" json:"s1u_address"`
S5S8Address string `mapstructure:"s5s8_address" validate:"omitempty,ipv4" json:"s5s8_address"`
PAAddress string `mapstructure:"pa_address" validate:"omitempty,ipv4" json:"pa_address"`
GtpPeer []string `mapstructure:"gtp_peer" validate:"omitempty,dive,hostname_port" json:"gtp_peer"`
GtpEchoInterval uint32 `mapstructure:"gtp_echo_interval" validate:"min=1" json:"gtp_echo_interval"`
QerMapSize uint32 `mapstructure:"qer_map_size" json:"qer_map_size"`
FarMapSize uint32 `mapstructure:"far_map_size" json:"far_map_size"`
UrrMapSize uint32 `mapstructure:"urr_map_size" json:"urr_map_size"`
PdrMapSize uint32 `mapstructure:"pdr_map_size" json:"pdr_map_size"`
MaxSessions uint32 `mapstructure:"max_sessions" json:"max_sessions"`
HeartbeatRetries uint32 `mapstructure:"heartbeat_retries" json:"heartbeat_retries"`
HeartbeatInterval uint32 `mapstructure:"heartbeat_interval" json:"heartbeat_interval"`
HeartbeatTimeout uint32 `mapstructure:"heartbeat_timeout" json:"heartbeat_timeout"`
LoggingLevel string `mapstructure:"logging_level" validate:"required" json:"logging_level"`
LoggingCaller bool `mapstructure:"logging_caller" json:"logging_caller"`
UEIPPool string `mapstructure:"ueip_pool" validate:"cidr" json:"ueip_pool"`
FTEIDPool uint32 `mapstructure:"teid_pool" json:"teid_pool"`
FeatureUEIP bool `mapstructure:"feature_ueip" json:"feature_ueip"`
FeatureFTUP bool `mapstructure:"feature_ftup" json:"feature_ftup"`
Qci2DscpMapping map[string]int `mapstructure:"qci_dscp_mapping" json:"qci_dscp_mapping"`
AllowedApns string `mapstructure:"allowed_apns" json:"allowed_apns"`
DeniedApns string `mapstructure:"denied_apns" json:"denied_apns"`
PfcpProfile string `mapstructure:"pfcp_profile" json:"pfcp_profile"`
TraceAssociation bool `mapstructure:"trace_association" json:"trace_association"`
TraceHeartbeat bool `mapstructure:"trace_heartbeat" json:"trace_heartbeat"`
TraceIn bool `mapstructure:"trace_in" json:"trace_in"`
TraceOut bool `mapstructure:"trace_out" json:"trace_out"`
TraceBlocked bool `mapstructure:"trace_blocked" json:"trace_blocked"`
TraceMaxDumpFiles int `mapstructure:"trace_files" json:"trace_files"`
TraceMaxDumpSize int `mapstructure:"trace_max_size" json:"trace_max_size"`
TraceMaxDumpPackets int `mapstructure:"trace_max_packets" json:"trace_max_packets"`
IP6RaSupport bool `mapstructure:"ip6_ra_support" json:"ip6_ra_support"`
Ip6RaPrefix string `mapstructure:"ip6_ra_prefix" validate:"cidrv6" json:"ip6_ra_prefix"`
// contains filtered or unexported fields
}
var Conf UpfConfig
func (*UpfConfig) GetDscpMarkByQci ¶
func (*UpfConfig) GetN3AdvertisedAddress5G ¶
func (*UpfConfig) UpdateFile ¶
Click to show internal directories.
Click to hide internal directories.