server

package
v0.0.3-pre8 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISISServer

type ISISServer interface {
	AddInterface(*InterfaceConfig) error
	Start() error
}

ISISServer is generic ISIS server interface

type InterfaceConfig

type InterfaceConfig struct {
	Name         string
	Passive      bool
	PointToPoint bool
	Level1       *InterfaceLevelConfig
	Level2       *InterfaceLevelConfig
	// contains filtered or unexported fields
}

InterfaceConfig represents a network interfaces ISIS config

type InterfaceLevelConfig

type InterfaceLevelConfig struct {
	HelloInterval uint16
	HoldingTimer  uint16
	Metric        uint32
	Passive       bool
	Priority      uint8
}

InterfaceLevelConfig is the ISIS level config of an interface

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents an ISIS server

func New

func New(nets []*types.NET, ds device.Updater, lspLifetime uint16) (*Server, error)

New creates a new ISIS server

func (*Server) AddInterface

func (s *Server) AddInterface(cfg *InterfaceConfig) error

AddInterface adds an interface to the ISIS server

func (*Server) Start

func (s *Server) Start() error

Start starts the ISIS server

Jump to

Keyboard shortcuts

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