southbound

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package southbound contains utilities to interact with Stratum devices via gNMI and P4Runtime

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host added in v1.1.10

type Host struct {
	MAC        string
	IP         string
	Port       uint32
	CreateTime uint64
}

Host is a simple representation of a host network interface discovered by the ONOS lite

type HostDiscovery added in v1.1.10

type HostDiscovery interface {
	GetHosts(object *topo.Object, listener HostListener) (*HostReport, error)
}

HostDiscovery is an abstraction of an entity capable of discovering hosts

func NewGNMIHostDiscovery added in v1.1.10

func NewGNMIHostDiscovery() HostDiscovery

NewGNMIHostDiscovery returns new host discovery based on gNMI

type HostListener added in v1.1.10

type HostListener interface {
	HostAdded(host *Host, agentID string)
	HostDeleted(host *Host, agentID string)
}

HostListener is an abstraction of an entity capable of handling host changes

type HostReport added in v1.1.10

type HostReport struct {
	AgentID string
	Hosts   map[string]*Host
}

HostReport provides results of a host query against the host local agent

type IngressLinkDiscovery added in v1.1.2

type IngressLinkDiscovery interface {
	GetIngressLinks(object *topo.Object, listener IngressLinkListener) (*LinkReport, error)
}

IngressLinkDiscovery is an abstraction of an entity capable of discovering ingress links

func NewGNMILinkDiscovery added in v1.1.2

func NewGNMILinkDiscovery() IngressLinkDiscovery

NewGNMILinkDiscovery returns new ingress link discovery based on gNMI

type IngressLinkListener added in v1.1.2

type IngressLinkListener interface {
	LinkAdded(link *Link)
	LinkDeleted(link *Link)
}

IngressLinkListener is an abstraction of an entity capable of handling ingress link changes

type Link struct {
	IngressDevice string
	IngressPort   uint32
	EgressDevice  string
	EgressPort    uint32
	CreateTime    uint64
}

Link holds information about an ingress link

type LinkReport added in v0.2.4

type LinkReport struct {
	AgentID string
	Links   map[uint32]*Link
}

LinkReport provides results of a link query against the link local agent

type PortDiscovery added in v1.1.2

type PortDiscovery interface {
	GetPorts(object *topo.Object, listener PortStatusListener) (map[string]*topo.Port, error)
}

PortDiscovery is an abstraction of an entity capable of discovering device ports

func NewGNMIPortDiscovery added in v1.1.2

func NewGNMIPortDiscovery() PortDiscovery

NewGNMIPortDiscovery returns new port discovery based on gNMI

type PortStatusListener added in v1.1.2

type PortStatusListener interface {
	HandlePortStatus(object *topo.Object, port *topo.Port)
}

PortStatusListener is an abstraction of an entity capable of handling port status updates

Jump to

Keyboard shortcuts

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