uexampleocpath

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package uexampleocpath is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.

This package was generated by ygnmi version: (devel): (ygot: v0.29.17) using the following YANG input files:

  • ../../pathgen/testdata/yang/openconfig-simple.yang
  • ../../pathgen/testdata/yang/openconfig-withlistval.yang
  • ../../pathgen/testdata/yang/openconfig-nested.yang

Imported modules were sourced from:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

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

Batch contains a collection of paths. Use batch to call Lookup, Watch, etc. on multiple paths at once.

func (*Batch) AddPaths

func (b *Batch) AddPaths(paths ...ygnmi.PathStruct) *Batch

AddPaths adds the paths to the batch.

func (*Batch) Query

func (b *Batch) Query() ygnmi.SingletonQuery[*oc.Device]

Query returns a Query that can be used in gNMI operations. The returned query is immutable, adding paths does not modify existing queries.

type DevicePath added in v0.10.0

type DevicePath struct {
	*ygnmi.DeviceRootBase
}

DevicePath represents the /device YANG schema element.

func Root

func Root() *DevicePath

Root returns a root path object from which YANG paths can be constructed.

func (*DevicePath) A added in v0.10.0

A (container):

Defining module:      "openconfig-nested"
Instantiating module: "openconfig-nested"
Path from parent:     "a"
Path from root:       "/a"

func (*DevicePath) Container added in v0.10.0

Container (container):

Defining module:      "openconfig-nested"
Instantiating module: "openconfig-nested"
Path from parent:     "container"
Path from root:       "/container"

func (*DevicePath) Model added in v0.10.0

Model (container):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "model"
Path from root:       "/model"

func (*DevicePath) Parent added in v0.10.0

Parent (container): I am a parent container that has 4 children.

Defining module:      "openconfig-simple"
Instantiating module: "openconfig-simple"
Path from parent:     "parent"
Path from root:       "/parent"

func (*DevicePath) RemoteContainer added in v0.10.0

RemoteContainer (container):

Defining module:      "openconfig-remote"
Instantiating module: "openconfig-simple"
Path from parent:     "remote-container"
Path from root:       "/remote-container"

Jump to

Keyboard shortcuts

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