port

package
v0.5.8 Latest Latest
Warning

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

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

Documentation

Overview

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

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

  • models-yang/models/bgp/open-traffic-generator-bgp.yang
  • models-yang/models/discovery/open-traffic-generator-discovery.yang
  • models-yang/models/flow/open-traffic-generator-flow.yang
  • models-yang/models/interface/open-traffic-generator-port.yang
  • models-yang/models/isis/open-traffic-generator-isis.yang
  • models-yang/models/lacp/open-traffic-generator-lacp.yang
  • models-yang/models/lag/open-traffic-generator-lag.yang
  • models-yang/models/lldp/open-traffic-generator-lldp.yang
  • models-yang/models/rsvp/open-traffic-generator-rsvp.yang
  • models-yang/models/types/open-traffic-generator-types.yang

Imported modules were sourced from:

  • models-yang/models/...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortPath

type PortPath struct {
	*ygnmi.NodePath
}

PortPath represents the /open-traffic-generator-port/ports/port YANG schema element.

func (*PortPath) Counters

func (n *PortPath) Counters() *Port_CountersPath

Counters (container): Counters of an OTG port.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/counters"
Path from root:       "/ports/port/state/counters"

func (*PortPath) InRate

func (n *PortPath) InRate() *Port_InRatePath

InRate (leaf): The current receive rate of an OTG port, measured in bits per second.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/in-rate"
Path from root:       "/ports/port/state/in-rate"
func (n *PortPath) Link() *Port_LinkPath

Link (leaf): The current state of an OTG port.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/link"
Path from root:       "/ports/port/state/link"

func (*PortPath) Name

func (n *PortPath) Name() *Port_NamePath

Name (leaf): An arbitary name of an OTG port determined by the OTG configuration.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "*/name"
Path from root:       "/ports/port/*/name"

func (*PortPath) OutRate

func (n *PortPath) OutRate() *Port_OutRatePath

OutRate (leaf): The current transmit rate of an OTG port, measured in bits per second.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/out-rate"
Path from root:       "/ports/port/state/out-rate"

func (*PortPath) State

func (n *PortPath) State() ygnmi.SingletonQuery[*oc.Port]

State returns a Query that can be used in gNMI operations.

type PortPathAny

type PortPathAny struct {
	*ygnmi.NodePath
}

PortPathAny represents the wildcard version of the /open-traffic-generator-port/ports/port YANG schema element.

func (*PortPathAny) Counters

func (n *PortPathAny) Counters() *Port_CountersPathAny

Counters (container): Counters of an OTG port.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/counters"
Path from root:       "/ports/port/state/counters"

func (*PortPathAny) InRate

func (n *PortPathAny) InRate() *Port_InRatePathAny

InRate (leaf): The current receive rate of an OTG port, measured in bits per second.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/in-rate"
Path from root:       "/ports/port/state/in-rate"
func (n *PortPathAny) Link() *Port_LinkPathAny

Link (leaf): The current state of an OTG port.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/link"
Path from root:       "/ports/port/state/link"

func (*PortPathAny) Name

func (n *PortPathAny) Name() *Port_NamePathAny

Name (leaf): An arbitary name of an OTG port determined by the OTG configuration.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "*/name"
Path from root:       "/ports/port/*/name"

func (*PortPathAny) OutRate

func (n *PortPathAny) OutRate() *Port_OutRatePathAny

OutRate (leaf): The current transmit rate of an OTG port, measured in bits per second.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/out-rate"
Path from root:       "/ports/port/state/out-rate"

func (*PortPathAny) State

func (n *PortPathAny) State() ygnmi.WildcardQuery[*oc.Port]

State returns a Query that can be used in gNMI operations.

type PortPathMap added in v0.1.24

type PortPathMap struct {
	*ygnmi.NodePath
}

PortPathMap represents the /open-traffic-generator-port/ports/port YANG schema element.

type PortPathMapAny added in v0.1.24

type PortPathMapAny struct {
	*ygnmi.NodePath
}

PortPathMapAny represents the wildcard version of the /open-traffic-generator-port/ports/port YANG schema element.

type Port_CountersPath

type Port_CountersPath struct {
	*ygnmi.NodePath
}

Port_CountersPath represents the /open-traffic-generator-port/ports/port/state/counters YANG schema element.

func (*Port_CountersPath) InFrames

InFrames (leaf): The total number of packets received on the port.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "in-frames"
Path from root:       "/ports/port/state/counters/in-frames"

func (*Port_CountersPath) InOctets

InOctets (leaf): The total number of octets received on the port.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "in-octets"
Path from root:       "/ports/port/state/counters/in-octets"

func (*Port_CountersPath) OutFrames

OutFrames (leaf): The total number of packets transmitted on the port.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "out-frames"
Path from root:       "/ports/port/state/counters/out-frames"

func (*Port_CountersPath) OutOctets

OutOctets (leaf): The total number of octets transmitted on the port.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "out-octets"
Path from root:       "/ports/port/state/counters/out-octets"

func (*Port_CountersPath) State

State returns a Query that can be used in gNMI operations.

type Port_CountersPathAny

type Port_CountersPathAny struct {
	*ygnmi.NodePath
}

Port_CountersPathAny represents the wildcard version of the /open-traffic-generator-port/ports/port/state/counters YANG schema element.

func (*Port_CountersPathAny) InFrames

InFrames (leaf): The total number of packets received on the port.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "in-frames"
Path from root:       "/ports/port/state/counters/in-frames"

func (*Port_CountersPathAny) InOctets

InOctets (leaf): The total number of octets received on the port.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "in-octets"
Path from root:       "/ports/port/state/counters/in-octets"

func (*Port_CountersPathAny) OutFrames

OutFrames (leaf): The total number of packets transmitted on the port.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "out-frames"
Path from root:       "/ports/port/state/counters/out-frames"

func (*Port_CountersPathAny) OutOctets

OutOctets (leaf): The total number of octets transmitted on the port.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "out-octets"
Path from root:       "/ports/port/state/counters/out-octets"

func (*Port_CountersPathAny) State

State returns a Query that can be used in gNMI operations.

type Port_Counters_InFramesPath

type Port_Counters_InFramesPath struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_Counters_InFramesPath represents the /open-traffic-generator-port/ports/port/state/counters/in-frames YANG schema element.

func (*Port_Counters_InFramesPath) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "in-frames"
Path from root:       "/ports/port/state/counters/in-frames"

type Port_Counters_InFramesPathAny

type Port_Counters_InFramesPathAny struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_Counters_InFramesPathAny represents the wildcard version of the /open-traffic-generator-port/ports/port/state/counters/in-frames YANG schema element.

func (*Port_Counters_InFramesPathAny) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "in-frames"
Path from root:       "/ports/port/state/counters/in-frames"

type Port_Counters_InOctetsPath

type Port_Counters_InOctetsPath struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_Counters_InOctetsPath represents the /open-traffic-generator-port/ports/port/state/counters/in-octets YANG schema element.

func (*Port_Counters_InOctetsPath) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "in-octets"
Path from root:       "/ports/port/state/counters/in-octets"

type Port_Counters_InOctetsPathAny

type Port_Counters_InOctetsPathAny struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_Counters_InOctetsPathAny represents the wildcard version of the /open-traffic-generator-port/ports/port/state/counters/in-octets YANG schema element.

func (*Port_Counters_InOctetsPathAny) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "in-octets"
Path from root:       "/ports/port/state/counters/in-octets"

type Port_Counters_OutFramesPath

type Port_Counters_OutFramesPath struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_Counters_OutFramesPath represents the /open-traffic-generator-port/ports/port/state/counters/out-frames YANG schema element.

func (*Port_Counters_OutFramesPath) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "out-frames"
Path from root:       "/ports/port/state/counters/out-frames"

type Port_Counters_OutFramesPathAny

type Port_Counters_OutFramesPathAny struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_Counters_OutFramesPathAny represents the wildcard version of the /open-traffic-generator-port/ports/port/state/counters/out-frames YANG schema element.

func (*Port_Counters_OutFramesPathAny) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "out-frames"
Path from root:       "/ports/port/state/counters/out-frames"

type Port_Counters_OutOctetsPath

type Port_Counters_OutOctetsPath struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_Counters_OutOctetsPath represents the /open-traffic-generator-port/ports/port/state/counters/out-octets YANG schema element.

func (*Port_Counters_OutOctetsPath) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "out-octets"
Path from root:       "/ports/port/state/counters/out-octets"

type Port_Counters_OutOctetsPathAny

type Port_Counters_OutOctetsPathAny struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_Counters_OutOctetsPathAny represents the wildcard version of the /open-traffic-generator-port/ports/port/state/counters/out-octets YANG schema element.

func (*Port_Counters_OutOctetsPathAny) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "out-octets"
Path from root:       "/ports/port/state/counters/out-octets"

type Port_InRatePath

type Port_InRatePath struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_InRatePath represents the /open-traffic-generator-port/ports/port/state/in-rate YANG schema element.

func (*Port_InRatePath) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/in-rate"
Path from root:       "/ports/port/state/in-rate"

type Port_InRatePathAny

type Port_InRatePathAny struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_InRatePathAny represents the wildcard version of the /open-traffic-generator-port/ports/port/state/in-rate YANG schema element.

func (*Port_InRatePathAny) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/in-rate"
Path from root:       "/ports/port/state/in-rate"

type Port_LinkPath

type Port_LinkPath struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_LinkPath represents the /open-traffic-generator-port/ports/port/state/link YANG schema element.

func (*Port_LinkPath) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/link"
Path from root:       "/ports/port/state/link"

type Port_LinkPathAny

type Port_LinkPathAny struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_LinkPathAny represents the wildcard version of the /open-traffic-generator-port/ports/port/state/link YANG schema element.

func (*Port_LinkPathAny) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/link"
Path from root:       "/ports/port/state/link"

type Port_NamePath

type Port_NamePath struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_NamePath represents the /open-traffic-generator-port/ports/port/state/name YANG schema element.

func (*Port_NamePath) Config

func (n *Port_NamePath) Config() ygnmi.ConfigQuery[string]

Config returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "name"
Path from root:       ""

func (*Port_NamePath) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/name"
Path from root:       "/ports/port/state/name"

type Port_NamePathAny

type Port_NamePathAny struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_NamePathAny represents the wildcard version of the /open-traffic-generator-port/ports/port/state/name YANG schema element.

func (*Port_NamePathAny) Config

Config returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "name"
Path from root:       ""

func (*Port_NamePathAny) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/name"
Path from root:       "/ports/port/state/name"

type Port_OutRatePath

type Port_OutRatePath struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_OutRatePath represents the /open-traffic-generator-port/ports/port/state/out-rate YANG schema element.

func (*Port_OutRatePath) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/out-rate"
Path from root:       "/ports/port/state/out-rate"

type Port_OutRatePathAny

type Port_OutRatePathAny struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Port_OutRatePathAny represents the wildcard version of the /open-traffic-generator-port/ports/port/state/out-rate YANG schema element.

func (*Port_OutRatePathAny) State

State returns a Query that can be used in gNMI operations.

Defining module:      "open-traffic-generator-port"
Instantiating module: "open-traffic-generator-port"
Path from parent:     "state/out-rate"
Path from root:       "/ports/port/state/out-rate"

Jump to

Keyboard shortcuts

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