config

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2024 Louis Royer and the NextMN contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT

Copyright 2024 Louis Royer and the NextMN contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Area added in v0.0.5

type Area struct {
	Gnbs  []jsonapi.ControlURI      `yaml:"gnbs"`
	Paths map[string][]GTPInterface `yaml:"paths"`
}

type CPConfig

type CPConfig struct {
	Control Control          `yaml:"control"`
	Pfcp    netip.Addr       `yaml:"pfcp"`
	Slices  map[string]Slice `yaml:"slices"`
	Areas   map[string]Area  `yaml:"areas"`
	Logger  *Logger          `yaml:"logger,omitempty"`
}

func ParseConf

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

type Control

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 GTPInterface added in v0.0.6

type GTPInterface struct {
	NodeID        netip.Addr `yaml:"node-id"`
	InterfaceAddr netip.Addr `yaml:"interface-addr"`
}

type Interface

type Interface struct {
	Type string     `yaml:"type"`
	Addr netip.Addr `yaml:"addr"`
}

type Logger

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

type Slice

type Slice struct {
	Pool netip.Prefix `yaml:"pool"`
	Upfs []Upf        `yaml:"upfs"`
}

type Upf

type Upf struct {
	NodeID     netip.Addr  `yaml:"node-id"`
	Interfaces []Interface `yaml:"interfaces"`
}

Jump to

Keyboard shortcuts

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