factory

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfigFactory

func InitConfigFactory(f string)

TODO: Support configuration update from REST api

func InitRoutingConfigFactory

func InitRoutingConfigFactory(f string)

Types

type Config

type Config struct {
	Info Info `yaml:"info"`

	Configuration Configuration `yaml:"configuration"`
}
var SmfConfig Config

type Configuration

type Configuration struct {
	SmfName string `yaml:"smfName,omitempty"`

	Sbi *Sbi `yaml:"sbi,omitempty"`

	PFCP *PFCP `yaml:"pfcp,omitempty"`

	NrfUri string `yaml:"nrfUri,omitempty"`

	UserPlaneInformation UserPlaneInformation `yaml:"userplane_information"`

	UESubnet string `yaml:"ue_subnet"`

	ServiceNameList []string `yaml:"serviceNameList,omitempty"`

	SNssaiInfo []models.SnssaiSmfInfoItem `yaml:"snssai_info,omitempty"`

	ULCL bool `yaml:"ulcl,omitempty"`
}

type Info

type Info struct {
	Version string `yaml:"version,omitempty"`

	Description string `yaml:"description,omitempty"`
}

type PFCP

type PFCP struct {
	Addr string `yaml:"addr,omitempty"`
	Port uint16 `yaml:"port,omitempty"`
}

type Path

type Path struct {
	DestinationIP string `yaml:"DestinationIP,omitempty"`

	DestinationPort string `yaml:"DestinationPort,omitempty"`

	UPF []string `yaml:"UPF,omitempty"`
}

type RoutingConfig

type RoutingConfig struct {
	Info *Info `yaml:"info"`

	UERoutingInfo []*UERoutingInfo `yaml:"ueRoutingInfo"`
}
var UERoutingConfig RoutingConfig

type Sbi

type Sbi struct {
	Scheme   string `yaml:"scheme"`
	TLS      *TLS   `yaml:"tls"`
	IPv4Addr string `yaml:"ipv4Addr,omitempty"`
	// IPv6Addr string `yaml:"ipv6Addr,omitempty"`
	Port int `yaml:"port,omitempty"`
}

type TLS

type TLS struct {
	PEM string `yaml:"pem,omitempty"`
	Key string `yaml:"key,omitempty"`
}

type UERoutingInfo

type UERoutingInfo struct {
	SUPI string `yaml:"SUPI,omitempty"`

	AN string `yaml:"AN,omitempty"`

	PathList []Path `yaml:"PathList,omitempty"`
}
type UPLink struct {
	A string `yaml:"A"`
	B string `yaml:"B"`
}

type UPNode

type UPNode struct {
	Type         string `yaml:"type"`
	NodeID       string `yaml:"node_id"`
	UPResourceIP string `yaml:"node"`
	ANIP         string `yaml:"an_ip"`
	Dnn          string `yaml:"dnn"`
}

UPNode represent the user plane node

type UserPlaneInformation

type UserPlaneInformation struct {
	UPNodes map[string]UPNode `yaml:"up_nodes"`
	Links   []UPLink          `yaml:"links"`
}

UserPlaneInformation describe core network userplane information

Jump to

Keyboard shortcuts

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