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 ¶
func (p *PipelineProvisioner) Provision(d *device.Device, cfg *admin.DeviceRoleConfig) error
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.