gnmi

package
v0.10.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTopoClient added in v0.10.12

func NewTopoClient() (toposdk.Client, error)

NewTopoClient creates a new topo SDK client

Types

type TestSuite

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

TestSuite is the onos-config GNMI test suite

func (*TestSuite) SetupTestSuite

func (s *TestSuite) SetupTestSuite(c *input.Context) error

SetupTestSuite sets up the onos-config GNMI test suite

func (*TestSuite) TestCompactChanges

func (s *TestSuite) TestCompactChanges(t *testing.T)

TestCompactChanges tests the CompactChanges and Snapshot RPCs on the Admin gRPC interface. This 1) sets up 2 simulators 2a) makes 2 gnmi change on sim 1 2b) makes 3 gnmi changes on sim 2 2c) makes another gnmi change on both sim1 and sim2 3) waits for the network changes to be complete (and for the simulators to start) 4) calls compact_changes to create a snapshot 5) retrieves the snapshot using both Get and List 6) makes another NW change 7) make sure the aggregate config includes snapshot + subsequent change See also TestSnapshotErrors

func (*TestSuite) TestCreatedRemovedDevice

func (s *TestSuite) TestCreatedRemovedDevice(t *testing.T)

TestCreatedRemovedDevice tests set/query of a single GNMI path to a single device that is created, removed, then created again

func (*TestSuite) TestDelete added in v0.6.16

func (s *TestSuite) TestDelete(t *testing.T)

TestDelete :

func (*TestSuite) TestDeviceState

func (s *TestSuite) TestDeviceState(t *testing.T)

TestDeviceState tests that a device is connected and available.

func (*TestSuite) TestModels

func (s *TestSuite) TestModels(t *testing.T)

TestModels tests GNMI operation involving unknown or illegal paths

func (*TestSuite) TestMultipleSet added in v0.6.15

func (s *TestSuite) TestMultipleSet(t *testing.T)

TestMultipleSet tests multiple query/set/delete of a single GNMI path to a single device

func (*TestSuite) TestOfflineDevice

func (s *TestSuite) TestOfflineDevice(t *testing.T)

TestOfflineDevice tests set/query of a single GNMI path to a single device that is initially not in the config

func (*TestSuite) TestOfflineDeviceInTopo

func (s *TestSuite) TestOfflineDeviceInTopo(t *testing.T)

TestOfflineDeviceInTopo tests set/query of a single GNMI path to a single device that is in the config but offline

func (*TestSuite) TestOneLiveOneDeadDevice

func (s *TestSuite) TestOneLiveOneDeadDevice(t *testing.T)

TestOneLiveOneDeadDevice tests GNMI operations to an offline device followed by operations to a connected device

func (*TestSuite) TestSinglePath

func (s *TestSuite) TestSinglePath(t *testing.T)

TestSinglePath tests query/set/delete of a single GNMI path to a single device

func (*TestSuite) TestSingleState

func (s *TestSuite) TestSingleState(t *testing.T)

TestSingleState tests query of a single GNMI path of a read/only value to a single device

func (*TestSuite) TestSubscribe

func (s *TestSuite) TestSubscribe(t *testing.T)

TestSubscribe tests a stream subscription to updates to a device

func (*TestSuite) TestSubscribeOnce

func (s *TestSuite) TestSubscribeOnce(t *testing.T)

TestSubscribeOnce tests subscription ONCE mode

func (*TestSuite) TestSubscribeStateDiags

func (s *TestSuite) TestSubscribeStateDiags(t *testing.T)

TestSubscribeStateDiags tests a stream subscription to updates to a device using the diags API

func (*TestSuite) TestSubscribeStateGnmi

func (s *TestSuite) TestSubscribeStateGnmi(t *testing.T)

TestSubscribeStateGnmi tests a stream subscription to updates to a device

func (*TestSuite) TestTopoIntegration added in v0.10.12

func (s *TestSuite) TestTopoIntegration(t *testing.T)

TestTopoIntegration checks that the correct topology entities and relations are created

func (*TestSuite) TestTransaction

func (s *TestSuite) TestTransaction(t *testing.T)

TestTransaction tests setting multiple paths in a single request and rolling it back

func (*TestSuite) TestTreePath

func (s *TestSuite) TestTreePath(t *testing.T)

TestTreePath tests create/set/delete of a tree of GNMI paths to a single device

func (*TestSuite) TestUnreachableDevice

func (s *TestSuite) TestUnreachableDevice(t *testing.T)

TestUnreachableDevice tests set/query of a single GNMI path to a device that will never respond

func (*TestSuite) TestUpdateDelete

func (s *TestSuite) TestUpdateDelete(t *testing.T)

TestUpdateDelete tests update and delete paths in a single GNMI request

Jump to

Keyboard shortcuts

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