controller

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package controller implements the device provisioning controller

Package controller implements the device provisioning controller

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller drives the device provisioning control logic

func NewController

func NewController(realmLabel string, realmValue string, configStore store.ConfigStore, topoAddress string, conns p4rtclient.ConnManager, topoOpts ...grpc.DialOption) *Controller

NewController creates a new device provisioner controller

func (*Controller) Start

func (c *Controller) Start()

Start starts the controller

func (*Controller) Stop

func (c *Controller) Stop()

Stop stops the controller

type State

type State int

State represents the various states of controller lifecycle

const (
	// Disconnected represents the default/initial state
	Disconnected State = iota
	// Connected represents state where connection to onos-topo has been established
	Connected
	// Initialized represents state after the initial reconciliation pass has completed
	Initialized
	// Monitoring represents state of monitoring topology changes
	Monitoring
	// Stopped represents state where the controller has been issued a stop command
	Stopped
)

Jump to

Keyboard shortcuts

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