frr

package
v0.1.51 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrrConfigManager

type FrrConfigManager struct {
	OrionId uint32
	// contains filtered or unexported fields
}

Struct used to interact and issue the FRR configuration file updates.

func NewFrrConfigManager

func NewFrrConfigManager(ASN uint32, OrionId uint32) (*FrrConfigManager, error)

Function used to create a config-manager instance.

func (*FrrConfigManager) GetPeer

func (c *FrrConfigManager) GetPeer(id uint32) *Peer

func (*FrrConfigManager) Update

func (c *FrrConfigManager) Update() error

This functions takes the simplified BGP configuration stored in memory and renders a new configuration for the `frr` daemon used to implement `bgpd` which is the BGP daemon used through the Orion network.

func (*FrrConfigManager) UpdatePeer

func (c *FrrConfigManager) UpdatePeer(id uint32, peer *Peer)

type Peer

type Peer struct {
	Address string
	OrionId uint32
	ASN     uint32
	Weight  uint32
}

Struct containing a peer in the orion network, this is typically on-per-connection.

Jump to

Keyboard shortcuts

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