config

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Copyright 2023 Louis Royer and the NextMN-SRv6-ctrl 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-SRv6-ctrl 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 2023 Louis Royer and the NextMN-SRv6-ctrl 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 CtrlConfig

type CtrlConfig struct {
	PFCPAddress netip.Addr `yaml:"pfcp-address"`
	HTTPAddress netip.Addr `yaml:"http-address"`
	HTTPPort    *string    `yaml:"http-port,omitempty"` // default: 80
	Logger      *Logger    `yaml:"logger,omitempty"`
	Uplink      []Rule     `yaml:"uplink"`
	Downlink    []Rule     `yaml:"downlink"`
}

func ParseConf

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

type Logger

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

type Rule added in v0.0.16

type Rule struct {
	ControlURI   string   `yaml:"control-uri"` // e.g. http://srgw.local:8080
	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)
}

Jump to

Keyboard shortcuts

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