southbound

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package southbound is has facilities for monitoring topology and provisioning new devices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceMonitor

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

DeviceMonitor is responsible for monitoring topology for new device events.

func (*DeviceMonitor) Init

func (m *DeviceMonitor) Init(dialOptions ...grpc.DialOption) error

Init initializes the connection to the topo server

func (*DeviceMonitor) Start

func (m *DeviceMonitor) Start(ch chan<- *device.Device)

Start starts listening for events from the DeviceService

func (*DeviceMonitor) Stop

func (m *DeviceMonitor) Stop()

Stop stops the device monitor and associated resources

type DeviceProvisioner

type DeviceProvisioner struct {
	Tasks []ProvisionerTask
	Store *store.RoleStore
}

DeviceProvisioner is responsible for provisioning devices with the role-specific configurations.

func (*DeviceProvisioner) Start

func (p *DeviceProvisioner) Start(devices chan *device.Device)

Start starts the provisioner

type GNMIProvisioner

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

GNMIProvisioner handles provisioning of device configuration via gNMI interface.

func (*GNMIProvisioner) Init

func (p *GNMIProvisioner) Init(opts ...grpc.DialOption) error

Init initializes the gNMI provisioner

func (*GNMIProvisioner) Provision

func (p *GNMIProvisioner) Provision(d *device.Device, cfg *admin.DeviceRoleConfig) error

Provision runs the gNMI provisioning task

type PipelineProvisioner

type PipelineProvisioner struct {
}

PipelineProvisioner handles provisioning of device pipeline via onos-netcfg

func (*PipelineProvisioner) Init

func (p *PipelineProvisioner) Init(opts ...grpc.DialOption) error

Init initializes the pipeline provisioner

func (*PipelineProvisioner) Provision

Provision runs the pipeline provisioning task

type ProvisionerTask

type ProvisionerTask interface {
	// Provision sets up a device for an aspect of device operation.
	Provision(d *device.Device, cfg *admin.DeviceRoleConfig) error
}

ProvisionerTask defines a contract of an activity that provisions an aspect of device operation.

Directories

Path Synopsis
Package mock_gnmi is a generated GoMock package.
Package mock_gnmi is a generated GoMock package.

Jump to

Keyboard shortcuts

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