sampling

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

Package sampling 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.10.0: (ygot: v0.29.12) using the following YANG input files:

  • gnmi-collector-metadata.yang
  • gnsi/authz/gnsi-authz.yang
  • gnsi/cert/gnsi-cert.yang
  • gnsi/console/gnsi-console.yang
  • gnsi/pathz/gnsi-pathz.yang
  • gnsi/ssh/gnsi-ssh.yang
  • public/release/models/acl/openconfig-acl.yang
  • public/release/models/acl/openconfig-packet-match.yang
  • public/release/models/aft/openconfig-aft.yang
  • public/release/models/aft/openconfig-aft-network-instance.yang
  • public/release/models/aft/openconfig-aft-summary.yang
  • public/release/models/ate/openconfig-ate-flow.yang
  • public/release/models/ate/openconfig-ate-intf.yang
  • public/release/models/bfd/openconfig-bfd.yang
  • public/release/models/bgp/openconfig-bgp-policy.yang
  • public/release/models/bgp/openconfig-bgp-types.yang
  • public/release/models/extensions/openconfig-metadata.yang
  • public/release/models/interfaces/openconfig-if-aggregate.yang
  • public/release/models/interfaces/openconfig-if-ethernet.yang
  • public/release/models/interfaces/openconfig-if-ethernet-ext.yang
  • public/release/models/interfaces/openconfig-if-ip-ext.yang
  • public/release/models/interfaces/openconfig-if-ip.yang
  • public/release/models/interfaces/openconfig-if-sdn-ext.yang
  • public/release/models/interfaces/openconfig-interfaces.yang
  • public/release/models/isis/openconfig-isis.yang
  • public/release/models/lacp/openconfig-lacp.yang
  • public/release/models/lldp/openconfig-lldp-types.yang
  • public/release/models/lldp/openconfig-lldp.yang
  • public/release/models/local-routing/openconfig-local-routing.yang
  • public/release/models/mpls/openconfig-mpls-types.yang
  • public/release/models/multicast/openconfig-pim.yang
  • public/release/models/network-instance/openconfig-network-instance.yang
  • public/release/models/openconfig-extensions.yang
  • public/release/models/optical-transport/openconfig-terminal-device.yang
  • public/release/models/optical-transport/openconfig-transport-types.yang
  • public/release/models/ospf/openconfig-ospfv2.yang
  • public/release/models/ospf/openconfig-ospf-policy.yang
  • public/release/models/p4rt/openconfig-p4rt.yang
  • public/release/models/platform/openconfig-platform-controller-card.yang
  • public/release/models/platform/openconfig-platform-cpu.yang
  • public/release/models/platform/openconfig-platform-ext.yang
  • public/release/models/platform/openconfig-platform-fabric.yang
  • public/release/models/platform/openconfig-platform-fan.yang
  • public/release/models/platform/openconfig-platform-integrated-circuit.yang
  • public/release/models/platform/openconfig-platform-linecard.yang
  • public/release/models/platform/openconfig-platform-pipeline-counters.yang
  • public/release/models/platform/openconfig-platform-psu.yang
  • public/release/models/platform/openconfig-platform-software.yang
  • public/release/models/platform/openconfig-platform-transceiver.yang
  • public/release/models/platform/openconfig-platform.yang
  • public/release/models/platform/openconfig-platform-common.yang
  • public/release/models/policy-forwarding/openconfig-policy-forwarding.yang
  • public/release/models/policy/openconfig-policy-types.yang
  • public/release/models/qos/openconfig-qos-elements.yang
  • public/release/models/qos/openconfig-qos-interfaces.yang
  • public/release/models/qos/openconfig-qos-types.yang
  • public/release/models/qos/openconfig-qos.yang
  • public/release/models/rib/openconfig-rib-bgp.yang
  • public/release/models/sampling/openconfig-sampling-sflow.yang
  • public/release/models/segment-routing/openconfig-segment-routing-types.yang
  • public/release/models/system/openconfig-system.yang
  • public/release/models/system/openconfig-system-bootz.yang
  • public/release/models/system/openconfig-system-controlplane.yang
  • public/release/models/system/openconfig-system-utilization.yang
  • public/release/models/types/openconfig-inet-types.yang
  • public/release/models/types/openconfig-types.yang
  • public/release/models/types/openconfig-yang-types.yang
  • public/release/models/vlan/openconfig-vlan.yang
  • public/third_party/ietf/iana-if-type.yang
  • public/third_party/ietf/ietf-inet-types.yang
  • public/third_party/ietf/ietf-interfaces.yang
  • public/third_party/ietf/ietf-yang-types.yang

Imported modules were sourced from:

  • public/release/models/...
  • public/third_party/ietf/...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SamplingPath

type SamplingPath struct {
	*ygnmi.NodePath
}

SamplingPath represents the /openconfig-sampling/sampling YANG schema element.

func (*SamplingPath) Config

func (n *SamplingPath) Config() ygnmi.ConfigQuery[*oc.Sampling]

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

func (*SamplingPath) Sflow

func (n *SamplingPath) Sflow() *Sampling_SflowPath

Sflow (container): Top-level container for sFlow data.

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

func (*SamplingPath) State

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

type SamplingPathAny

type SamplingPathAny struct {
	*ygnmi.NodePath
}

SamplingPathAny represents the wildcard version of the /openconfig-sampling/sampling YANG schema element.

func (*SamplingPathAny) Config

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

func (*SamplingPathAny) Sflow

Sflow (container): Top-level container for sFlow data.

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

func (*SamplingPathAny) State

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

type Sampling_SflowPath

type Sampling_SflowPath struct {
	*ygnmi.NodePath
}

Sampling_SflowPath represents the /openconfig-sampling/sampling/sflow YANG schema element.

func (*Sampling_SflowPath) AgentIdIpv4

AgentIdIpv4 (leaf): Sets the agent identifier for IPv4 PDUs.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/agent-id-ipv4"
Path from root:       "/sampling/sflow/*/agent-id-ipv4"

func (*Sampling_SflowPath) AgentIdIpv6

AgentIdIpv6 (leaf): Sets the agent identifier for IPv6 PDUs.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/agent-id-ipv6"
Path from root:       "/sampling/sflow/*/agent-id-ipv6"

func (*Sampling_SflowPath) Collector

func (n *Sampling_SflowPath) Collector(Address string, Port uint16) *Sampling_Sflow_CollectorPath

Collector (list): List of sFlow collectors to send sampling data. Packet samples are sent to all collectors specified.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "collectors/collector"
Path from root:       "/sampling/sflow/collectors/collector"

Address: string
Port: uint16

func (*Sampling_SflowPath) CollectorAny

CollectorAny (list): List of sFlow collectors to send sampling data. Packet samples are sent to all collectors specified.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "collectors/collector"
Path from root:       "/sampling/sflow/collectors/collector"

func (*Sampling_SflowPath) CollectorMap added in v0.1.24

CollectorMap (list): List of sFlow collectors to send sampling data. Packet samples are sent to all collectors specified.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "collectors/collector"
Path from root:       "/sampling/sflow/collectors/collector"

func (*Sampling_SflowPath) Config

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

func (*Sampling_SflowPath) Dscp

Dscp (leaf): DSCP marking of packets generated by the sFlow subsystem on the network device.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/dscp"
Path from root:       "/sampling/sflow/*/dscp"

func (*Sampling_SflowPath) EgressSamplingRate

EgressSamplingRate (leaf): Sets the egress packet sampling rate. The rate is expressed as an integer N, where the intended sampling rate is 1/N packets. An implementation may implement the sampling rate as a statistical average, rather than a strict periodic sampling.

The allowable sampling rate range is generally a property of the system, e.g., determined by the capability of the hardware.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/egress-sampling-rate"
Path from root:       "/sampling/sflow/*/egress-sampling-rate"

func (*Sampling_SflowPath) Enabled

Enabled (leaf): Enables or disables sFlow sampling for the device.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/enabled"
Path from root:       "/sampling/sflow/*/enabled"

func (*Sampling_SflowPath) IngressSamplingRate

IngressSamplingRate (leaf): Sets the ingress packet sampling rate. The rate is expressed as an integer N, where the intended sampling rate is 1/N packets. An implementation may implement the sampling rate as a statistical average, rather than a strict periodic sampling.

The allowable sampling rate range is generally a property of the system, e.g., determined by the capability of the hardware.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/ingress-sampling-rate"
Path from root:       "/sampling/sflow/*/ingress-sampling-rate"

func (*Sampling_SflowPath) Interface

Interface (list): List of interfaces with sFlow data.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "interfaces/interface"
Path from root:       "/sampling/sflow/interfaces/interface"

Name: string

func (*Sampling_SflowPath) InterfaceAny

InterfaceAny (list): List of interfaces with sFlow data.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "interfaces/interface"
Path from root:       "/sampling/sflow/interfaces/interface"

func (*Sampling_SflowPath) InterfaceMap added in v0.1.24

InterfaceMap (list): List of interfaces with sFlow data.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "interfaces/interface"
Path from root:       "/sampling/sflow/interfaces/interface"

func (*Sampling_SflowPath) PollingInterval

PollingInterval (leaf): Sets the traffic sampling polling interval.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/polling-interval"
Path from root:       "/sampling/sflow/*/polling-interval"

func (*Sampling_SflowPath) SampleSize

SampleSize (leaf): Sets the maximum number of bytes to be copied from a sampled packet.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/sample-size"
Path from root:       "/sampling/sflow/*/sample-size"

func (*Sampling_SflowPath) State

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

type Sampling_SflowPathAny

type Sampling_SflowPathAny struct {
	*ygnmi.NodePath
}

Sampling_SflowPathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow YANG schema element.

func (*Sampling_SflowPathAny) AgentIdIpv4

AgentIdIpv4 (leaf): Sets the agent identifier for IPv4 PDUs.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/agent-id-ipv4"
Path from root:       "/sampling/sflow/*/agent-id-ipv4"

func (*Sampling_SflowPathAny) AgentIdIpv6

AgentIdIpv6 (leaf): Sets the agent identifier for IPv6 PDUs.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/agent-id-ipv6"
Path from root:       "/sampling/sflow/*/agent-id-ipv6"

func (*Sampling_SflowPathAny) Collector

Collector (list): List of sFlow collectors to send sampling data. Packet samples are sent to all collectors specified.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "collectors/collector"
Path from root:       "/sampling/sflow/collectors/collector"

Address: string
Port: uint16

func (*Sampling_SflowPathAny) CollectorAny

CollectorAny (list): List of sFlow collectors to send sampling data. Packet samples are sent to all collectors specified.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "collectors/collector"
Path from root:       "/sampling/sflow/collectors/collector"

func (*Sampling_SflowPathAny) CollectorMap added in v0.1.24

CollectorMap (list): List of sFlow collectors to send sampling data. Packet samples are sent to all collectors specified.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "collectors/collector"
Path from root:       "/sampling/sflow/collectors/collector"

func (*Sampling_SflowPathAny) Config

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

func (*Sampling_SflowPathAny) Dscp

Dscp (leaf): DSCP marking of packets generated by the sFlow subsystem on the network device.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/dscp"
Path from root:       "/sampling/sflow/*/dscp"

func (*Sampling_SflowPathAny) EgressSamplingRate

EgressSamplingRate (leaf): Sets the egress packet sampling rate. The rate is expressed as an integer N, where the intended sampling rate is 1/N packets. An implementation may implement the sampling rate as a statistical average, rather than a strict periodic sampling.

The allowable sampling rate range is generally a property of the system, e.g., determined by the capability of the hardware.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/egress-sampling-rate"
Path from root:       "/sampling/sflow/*/egress-sampling-rate"

func (*Sampling_SflowPathAny) Enabled

Enabled (leaf): Enables or disables sFlow sampling for the device.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/enabled"
Path from root:       "/sampling/sflow/*/enabled"

func (*Sampling_SflowPathAny) IngressSamplingRate

IngressSamplingRate (leaf): Sets the ingress packet sampling rate. The rate is expressed as an integer N, where the intended sampling rate is 1/N packets. An implementation may implement the sampling rate as a statistical average, rather than a strict periodic sampling.

The allowable sampling rate range is generally a property of the system, e.g., determined by the capability of the hardware.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/ingress-sampling-rate"
Path from root:       "/sampling/sflow/*/ingress-sampling-rate"

func (*Sampling_SflowPathAny) Interface

Interface (list): List of interfaces with sFlow data.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "interfaces/interface"
Path from root:       "/sampling/sflow/interfaces/interface"

Name: string

func (*Sampling_SflowPathAny) InterfaceAny

InterfaceAny (list): List of interfaces with sFlow data.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "interfaces/interface"
Path from root:       "/sampling/sflow/interfaces/interface"

func (*Sampling_SflowPathAny) InterfaceMap added in v0.1.24

InterfaceMap (list): List of interfaces with sFlow data.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "interfaces/interface"
Path from root:       "/sampling/sflow/interfaces/interface"

func (*Sampling_SflowPathAny) PollingInterval

PollingInterval (leaf): Sets the traffic sampling polling interval.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/polling-interval"
Path from root:       "/sampling/sflow/*/polling-interval"

func (*Sampling_SflowPathAny) SampleSize

SampleSize (leaf): Sets the maximum number of bytes to be copied from a sampled packet.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/sample-size"
Path from root:       "/sampling/sflow/*/sample-size"

func (*Sampling_SflowPathAny) State

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

type Sampling_Sflow_AgentIdIpv4Path

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

Sampling_Sflow_AgentIdIpv4Path represents the /openconfig-sampling/sampling/sflow/state/agent-id-ipv4 YANG schema element.

func (*Sampling_Sflow_AgentIdIpv4Path) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/agent-id-ipv4"
Path from root:       "/sampling/sflow/config/agent-id-ipv4"

func (*Sampling_Sflow_AgentIdIpv4Path) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/agent-id-ipv4"
Path from root:       "/sampling/sflow/state/agent-id-ipv4"

type Sampling_Sflow_AgentIdIpv4PathAny

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

Sampling_Sflow_AgentIdIpv4PathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/state/agent-id-ipv4 YANG schema element.

func (*Sampling_Sflow_AgentIdIpv4PathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/agent-id-ipv4"
Path from root:       "/sampling/sflow/config/agent-id-ipv4"

func (*Sampling_Sflow_AgentIdIpv4PathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/agent-id-ipv4"
Path from root:       "/sampling/sflow/state/agent-id-ipv4"

type Sampling_Sflow_AgentIdIpv6Path

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

Sampling_Sflow_AgentIdIpv6Path represents the /openconfig-sampling/sampling/sflow/state/agent-id-ipv6 YANG schema element.

func (*Sampling_Sflow_AgentIdIpv6Path) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/agent-id-ipv6"
Path from root:       "/sampling/sflow/config/agent-id-ipv6"

func (*Sampling_Sflow_AgentIdIpv6Path) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/agent-id-ipv6"
Path from root:       "/sampling/sflow/state/agent-id-ipv6"

type Sampling_Sflow_AgentIdIpv6PathAny

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

Sampling_Sflow_AgentIdIpv6PathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/state/agent-id-ipv6 YANG schema element.

func (*Sampling_Sflow_AgentIdIpv6PathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/agent-id-ipv6"
Path from root:       "/sampling/sflow/config/agent-id-ipv6"

func (*Sampling_Sflow_AgentIdIpv6PathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/agent-id-ipv6"
Path from root:       "/sampling/sflow/state/agent-id-ipv6"

type Sampling_Sflow_CollectorPath

type Sampling_Sflow_CollectorPath struct {
	*ygnmi.NodePath
}

Sampling_Sflow_CollectorPath represents the /openconfig-sampling/sampling/sflow/collectors/collector YANG schema element.

func (*Sampling_Sflow_CollectorPath) Address

Address (leaf): IPv4/IPv6 address of the sFlow collector.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/address"
Path from root:       "/sampling/sflow/collectors/collector/*/address"

func (*Sampling_Sflow_CollectorPath) Config

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

func (*Sampling_Sflow_CollectorPath) NetworkInstance

NetworkInstance (leaf): Reference to the network instance used to reach the sFlow collector. If uspecified, the collector destination is reachable in the default network instance.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/network-instance"
Path from root:       "/sampling/sflow/collectors/collector/*/network-instance"

func (*Sampling_Sflow_CollectorPath) PacketsSent

PacketsSent (leaf): The total number of packets sampled and sent to the collector.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "state/packets-sent"
Path from root:       "/sampling/sflow/collectors/collector/state/packets-sent"

func (*Sampling_Sflow_CollectorPath) Port

Port (leaf): UDP port number for the sFlow collector.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/port"
Path from root:       "/sampling/sflow/collectors/collector/*/port"

func (*Sampling_Sflow_CollectorPath) SourceAddress

SourceAddress (leaf): Sets the source IPv4/IPv6 address for sFlow datagrams sent to sFlow collectors.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/source-address"
Path from root:       "/sampling/sflow/collectors/collector/*/source-address"

func (*Sampling_Sflow_CollectorPath) State

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

type Sampling_Sflow_CollectorPathAny

type Sampling_Sflow_CollectorPathAny struct {
	*ygnmi.NodePath
}

Sampling_Sflow_CollectorPathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/collectors/collector YANG schema element.

func (*Sampling_Sflow_CollectorPathAny) Address

Address (leaf): IPv4/IPv6 address of the sFlow collector.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/address"
Path from root:       "/sampling/sflow/collectors/collector/*/address"

func (*Sampling_Sflow_CollectorPathAny) Config

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

func (*Sampling_Sflow_CollectorPathAny) NetworkInstance

NetworkInstance (leaf): Reference to the network instance used to reach the sFlow collector. If uspecified, the collector destination is reachable in the default network instance.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/network-instance"
Path from root:       "/sampling/sflow/collectors/collector/*/network-instance"

func (*Sampling_Sflow_CollectorPathAny) PacketsSent

PacketsSent (leaf): The total number of packets sampled and sent to the collector.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "state/packets-sent"
Path from root:       "/sampling/sflow/collectors/collector/state/packets-sent"

func (*Sampling_Sflow_CollectorPathAny) Port

Port (leaf): UDP port number for the sFlow collector.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/port"
Path from root:       "/sampling/sflow/collectors/collector/*/port"

func (*Sampling_Sflow_CollectorPathAny) SourceAddress

SourceAddress (leaf): Sets the source IPv4/IPv6 address for sFlow datagrams sent to sFlow collectors.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/source-address"
Path from root:       "/sampling/sflow/collectors/collector/*/source-address"

func (*Sampling_Sflow_CollectorPathAny) State

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

func (*Sampling_Sflow_CollectorPathAny) WithAddress

WithAddress sets Sampling_Sflow_CollectorPathAny's key "address" to the specified value. Address: string

func (*Sampling_Sflow_CollectorPathAny) WithPort

WithPort sets Sampling_Sflow_CollectorPathAny's key "port" to the specified value. Port: uint16

type Sampling_Sflow_CollectorPathMap added in v0.1.24

type Sampling_Sflow_CollectorPathMap struct {
	*ygnmi.NodePath
}

Sampling_Sflow_CollectorPathMap represents the /openconfig-sampling/sampling/sflow/collectors/collector YANG schema element.

func (*Sampling_Sflow_CollectorPathMap) Config added in v0.1.24

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

func (*Sampling_Sflow_CollectorPathMap) State added in v0.1.24

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

type Sampling_Sflow_CollectorPathMapAny added in v0.1.24

type Sampling_Sflow_CollectorPathMapAny struct {
	*ygnmi.NodePath
}

Sampling_Sflow_CollectorPathMapAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/collectors/collector YANG schema element.

func (*Sampling_Sflow_CollectorPathMapAny) Config added in v0.1.24

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

func (*Sampling_Sflow_CollectorPathMapAny) State added in v0.1.24

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

type Sampling_Sflow_Collector_AddressPath

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

Sampling_Sflow_Collector_AddressPath represents the /openconfig-sampling/sampling/sflow/collectors/collector/state/address YANG schema element.

func (*Sampling_Sflow_Collector_AddressPath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/address"
Path from root:       "/sampling/sflow/collectors/collector/config/address"

func (*Sampling_Sflow_Collector_AddressPath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/address"
Path from root:       "/sampling/sflow/collectors/collector/state/address"

type Sampling_Sflow_Collector_AddressPathAny

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

Sampling_Sflow_Collector_AddressPathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/collectors/collector/state/address YANG schema element.

func (*Sampling_Sflow_Collector_AddressPathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/address"
Path from root:       "/sampling/sflow/collectors/collector/config/address"

func (*Sampling_Sflow_Collector_AddressPathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/address"
Path from root:       "/sampling/sflow/collectors/collector/state/address"

type Sampling_Sflow_Collector_NetworkInstancePath

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

Sampling_Sflow_Collector_NetworkInstancePath represents the /openconfig-sampling/sampling/sflow/collectors/collector/state/network-instance YANG schema element.

func (*Sampling_Sflow_Collector_NetworkInstancePath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/network-instance"
Path from root:       "/sampling/sflow/collectors/collector/config/network-instance"

func (*Sampling_Sflow_Collector_NetworkInstancePath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/network-instance"
Path from root:       "/sampling/sflow/collectors/collector/state/network-instance"

type Sampling_Sflow_Collector_NetworkInstancePathAny

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

Sampling_Sflow_Collector_NetworkInstancePathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/collectors/collector/state/network-instance YANG schema element.

func (*Sampling_Sflow_Collector_NetworkInstancePathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/network-instance"
Path from root:       "/sampling/sflow/collectors/collector/config/network-instance"

func (*Sampling_Sflow_Collector_NetworkInstancePathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/network-instance"
Path from root:       "/sampling/sflow/collectors/collector/state/network-instance"

type Sampling_Sflow_Collector_PacketsSentPath

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

Sampling_Sflow_Collector_PacketsSentPath represents the /openconfig-sampling/sampling/sflow/collectors/collector/state/packets-sent YANG schema element.

func (*Sampling_Sflow_Collector_PacketsSentPath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/packets-sent"
Path from root:       "/sampling/sflow/collectors/collector/state/packets-sent"

type Sampling_Sflow_Collector_PacketsSentPathAny

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

Sampling_Sflow_Collector_PacketsSentPathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/collectors/collector/state/packets-sent YANG schema element.

func (*Sampling_Sflow_Collector_PacketsSentPathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/packets-sent"
Path from root:       "/sampling/sflow/collectors/collector/state/packets-sent"

type Sampling_Sflow_Collector_PortPath

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

Sampling_Sflow_Collector_PortPath represents the /openconfig-sampling/sampling/sflow/collectors/collector/state/port YANG schema element.

func (*Sampling_Sflow_Collector_PortPath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/port"
Path from root:       "/sampling/sflow/collectors/collector/config/port"

func (*Sampling_Sflow_Collector_PortPath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/port"
Path from root:       "/sampling/sflow/collectors/collector/state/port"

type Sampling_Sflow_Collector_PortPathAny

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

Sampling_Sflow_Collector_PortPathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/collectors/collector/state/port YANG schema element.

func (*Sampling_Sflow_Collector_PortPathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/port"
Path from root:       "/sampling/sflow/collectors/collector/config/port"

func (*Sampling_Sflow_Collector_PortPathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/port"
Path from root:       "/sampling/sflow/collectors/collector/state/port"

type Sampling_Sflow_Collector_SourceAddressPath

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

Sampling_Sflow_Collector_SourceAddressPath represents the /openconfig-sampling/sampling/sflow/collectors/collector/state/source-address YANG schema element.

func (*Sampling_Sflow_Collector_SourceAddressPath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/source-address"
Path from root:       "/sampling/sflow/collectors/collector/config/source-address"

func (*Sampling_Sflow_Collector_SourceAddressPath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/source-address"
Path from root:       "/sampling/sflow/collectors/collector/state/source-address"

type Sampling_Sflow_Collector_SourceAddressPathAny

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

Sampling_Sflow_Collector_SourceAddressPathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/collectors/collector/state/source-address YANG schema element.

func (*Sampling_Sflow_Collector_SourceAddressPathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/source-address"
Path from root:       "/sampling/sflow/collectors/collector/config/source-address"

func (*Sampling_Sflow_Collector_SourceAddressPathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/source-address"
Path from root:       "/sampling/sflow/collectors/collector/state/source-address"

type Sampling_Sflow_DscpPath

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

Sampling_Sflow_DscpPath represents the /openconfig-sampling/sampling/sflow/state/dscp YANG schema element.

func (*Sampling_Sflow_DscpPath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/dscp"
Path from root:       "/sampling/sflow/config/dscp"

func (*Sampling_Sflow_DscpPath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/dscp"
Path from root:       "/sampling/sflow/state/dscp"

type Sampling_Sflow_DscpPathAny

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

Sampling_Sflow_DscpPathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/state/dscp YANG schema element.

func (*Sampling_Sflow_DscpPathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/dscp"
Path from root:       "/sampling/sflow/config/dscp"

func (*Sampling_Sflow_DscpPathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/dscp"
Path from root:       "/sampling/sflow/state/dscp"

type Sampling_Sflow_EgressSamplingRatePath

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

Sampling_Sflow_EgressSamplingRatePath represents the /openconfig-sampling/sampling/sflow/state/egress-sampling-rate YANG schema element.

func (*Sampling_Sflow_EgressSamplingRatePath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/egress-sampling-rate"
Path from root:       "/sampling/sflow/config/egress-sampling-rate"

func (*Sampling_Sflow_EgressSamplingRatePath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/egress-sampling-rate"
Path from root:       "/sampling/sflow/state/egress-sampling-rate"

type Sampling_Sflow_EgressSamplingRatePathAny

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

Sampling_Sflow_EgressSamplingRatePathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/state/egress-sampling-rate YANG schema element.

func (*Sampling_Sflow_EgressSamplingRatePathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/egress-sampling-rate"
Path from root:       "/sampling/sflow/config/egress-sampling-rate"

func (*Sampling_Sflow_EgressSamplingRatePathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/egress-sampling-rate"
Path from root:       "/sampling/sflow/state/egress-sampling-rate"

type Sampling_Sflow_EnabledPath

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

Sampling_Sflow_EnabledPath represents the /openconfig-sampling/sampling/sflow/state/enabled YANG schema element.

func (*Sampling_Sflow_EnabledPath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/enabled"
Path from root:       "/sampling/sflow/config/enabled"

func (*Sampling_Sflow_EnabledPath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/enabled"
Path from root:       "/sampling/sflow/state/enabled"

type Sampling_Sflow_EnabledPathAny

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

Sampling_Sflow_EnabledPathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/state/enabled YANG schema element.

func (*Sampling_Sflow_EnabledPathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/enabled"
Path from root:       "/sampling/sflow/config/enabled"

func (*Sampling_Sflow_EnabledPathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/enabled"
Path from root:       "/sampling/sflow/state/enabled"

type Sampling_Sflow_IngressSamplingRatePath

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

Sampling_Sflow_IngressSamplingRatePath represents the /openconfig-sampling/sampling/sflow/state/ingress-sampling-rate YANG schema element.

func (*Sampling_Sflow_IngressSamplingRatePath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/ingress-sampling-rate"
Path from root:       "/sampling/sflow/config/ingress-sampling-rate"

func (*Sampling_Sflow_IngressSamplingRatePath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/ingress-sampling-rate"
Path from root:       "/sampling/sflow/state/ingress-sampling-rate"

type Sampling_Sflow_IngressSamplingRatePathAny

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

Sampling_Sflow_IngressSamplingRatePathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/state/ingress-sampling-rate YANG schema element.

func (*Sampling_Sflow_IngressSamplingRatePathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/ingress-sampling-rate"
Path from root:       "/sampling/sflow/config/ingress-sampling-rate"

func (*Sampling_Sflow_IngressSamplingRatePathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/ingress-sampling-rate"
Path from root:       "/sampling/sflow/state/ingress-sampling-rate"

type Sampling_Sflow_InterfacePath

type Sampling_Sflow_InterfacePath struct {
	*ygnmi.NodePath
}

Sampling_Sflow_InterfacePath represents the /openconfig-sampling/sampling/sflow/interfaces/interface YANG schema element.

func (*Sampling_Sflow_InterfacePath) Config

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

func (*Sampling_Sflow_InterfacePath) EgressSamplingRate

EgressSamplingRate (leaf): Sets the egress packet sampling rate. The rate is expressed as an integer N, where the intended sampling rate is 1/N packets. An implementation may implement the sampling rate as a statistical average, rather than a strict periodic sampling.

The allowable sampling rate range is generally a property of the system, e.g., determined by the capability of the hardware.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/egress-sampling-rate"
Path from root:       "/sampling/sflow/interfaces/interface/*/egress-sampling-rate"

func (*Sampling_Sflow_InterfacePath) Enabled

Enabled (leaf): Enables or disables sFlow on the interface. If sFlow is globally disabled, this leaf is ignored. If sFlow is globally enabled, this leaf may be used to disable it for a specific interface.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/enabled"
Path from root:       "/sampling/sflow/interfaces/interface/*/enabled"

func (*Sampling_Sflow_InterfacePath) IngressSamplingRate

IngressSamplingRate (leaf): Sets the ingress packet sampling rate. The rate is expressed as an integer N, where the intended sampling rate is 1/N packets. An implementation may implement the sampling rate as a statistical average, rather than a strict periodic sampling.

The allowable sampling rate range is generally a property of the system, e.g., determined by the capability of the hardware.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/ingress-sampling-rate"
Path from root:       "/sampling/sflow/interfaces/interface/*/ingress-sampling-rate"

func (*Sampling_Sflow_InterfacePath) Name

Name (leaf): Reference to the interface for sFlow configuration and state.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/name"
Path from root:       "/sampling/sflow/interfaces/interface/*/name"

func (*Sampling_Sflow_InterfacePath) PacketsSampled

PacketsSampled (leaf): Total number of packets sampled from the interface.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "state/packets-sampled"
Path from root:       "/sampling/sflow/interfaces/interface/state/packets-sampled"

func (*Sampling_Sflow_InterfacePath) PollingInterval

PollingInterval (leaf): Sets the traffic sampling polling interval.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/polling-interval"
Path from root:       "/sampling/sflow/interfaces/interface/*/polling-interval"

func (*Sampling_Sflow_InterfacePath) State

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

type Sampling_Sflow_InterfacePathAny

type Sampling_Sflow_InterfacePathAny struct {
	*ygnmi.NodePath
}

Sampling_Sflow_InterfacePathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/interfaces/interface YANG schema element.

func (*Sampling_Sflow_InterfacePathAny) Config

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

func (*Sampling_Sflow_InterfacePathAny) EgressSamplingRate

EgressSamplingRate (leaf): Sets the egress packet sampling rate. The rate is expressed as an integer N, where the intended sampling rate is 1/N packets. An implementation may implement the sampling rate as a statistical average, rather than a strict periodic sampling.

The allowable sampling rate range is generally a property of the system, e.g., determined by the capability of the hardware.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/egress-sampling-rate"
Path from root:       "/sampling/sflow/interfaces/interface/*/egress-sampling-rate"

func (*Sampling_Sflow_InterfacePathAny) Enabled

Enabled (leaf): Enables or disables sFlow on the interface. If sFlow is globally disabled, this leaf is ignored. If sFlow is globally enabled, this leaf may be used to disable it for a specific interface.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/enabled"
Path from root:       "/sampling/sflow/interfaces/interface/*/enabled"

func (*Sampling_Sflow_InterfacePathAny) IngressSamplingRate

IngressSamplingRate (leaf): Sets the ingress packet sampling rate. The rate is expressed as an integer N, where the intended sampling rate is 1/N packets. An implementation may implement the sampling rate as a statistical average, rather than a strict periodic sampling.

The allowable sampling rate range is generally a property of the system, e.g., determined by the capability of the hardware.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/ingress-sampling-rate"
Path from root:       "/sampling/sflow/interfaces/interface/*/ingress-sampling-rate"

func (*Sampling_Sflow_InterfacePathAny) Name

Name (leaf): Reference to the interface for sFlow configuration and state.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/name"
Path from root:       "/sampling/sflow/interfaces/interface/*/name"

func (*Sampling_Sflow_InterfacePathAny) PacketsSampled

PacketsSampled (leaf): Total number of packets sampled from the interface.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "state/packets-sampled"
Path from root:       "/sampling/sflow/interfaces/interface/state/packets-sampled"

func (*Sampling_Sflow_InterfacePathAny) PollingInterval

PollingInterval (leaf): Sets the traffic sampling polling interval.

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling"
Path from parent:     "*/polling-interval"
Path from root:       "/sampling/sflow/interfaces/interface/*/polling-interval"

func (*Sampling_Sflow_InterfacePathAny) State

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

type Sampling_Sflow_InterfacePathMap added in v0.1.24

type Sampling_Sflow_InterfacePathMap struct {
	*ygnmi.NodePath
}

Sampling_Sflow_InterfacePathMap represents the /openconfig-sampling/sampling/sflow/interfaces/interface YANG schema element.

func (*Sampling_Sflow_InterfacePathMap) Config added in v0.1.24

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

func (*Sampling_Sflow_InterfacePathMap) State added in v0.1.24

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

type Sampling_Sflow_InterfacePathMapAny added in v0.1.24

type Sampling_Sflow_InterfacePathMapAny struct {
	*ygnmi.NodePath
}

Sampling_Sflow_InterfacePathMapAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/interfaces/interface YANG schema element.

func (*Sampling_Sflow_InterfacePathMapAny) Config added in v0.1.24

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

func (*Sampling_Sflow_InterfacePathMapAny) State added in v0.1.24

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

type Sampling_Sflow_Interface_EgressSamplingRatePath

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

Sampling_Sflow_Interface_EgressSamplingRatePath represents the /openconfig-sampling/sampling/sflow/interfaces/interface/state/egress-sampling-rate YANG schema element.

func (*Sampling_Sflow_Interface_EgressSamplingRatePath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/egress-sampling-rate"
Path from root:       "/sampling/sflow/interfaces/interface/config/egress-sampling-rate"

func (*Sampling_Sflow_Interface_EgressSamplingRatePath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/egress-sampling-rate"
Path from root:       "/sampling/sflow/interfaces/interface/state/egress-sampling-rate"

type Sampling_Sflow_Interface_EgressSamplingRatePathAny

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

Sampling_Sflow_Interface_EgressSamplingRatePathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/interfaces/interface/state/egress-sampling-rate YANG schema element.

func (*Sampling_Sflow_Interface_EgressSamplingRatePathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/egress-sampling-rate"
Path from root:       "/sampling/sflow/interfaces/interface/config/egress-sampling-rate"

func (*Sampling_Sflow_Interface_EgressSamplingRatePathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/egress-sampling-rate"
Path from root:       "/sampling/sflow/interfaces/interface/state/egress-sampling-rate"

type Sampling_Sflow_Interface_EnabledPath

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

Sampling_Sflow_Interface_EnabledPath represents the /openconfig-sampling/sampling/sflow/interfaces/interface/state/enabled YANG schema element.

func (*Sampling_Sflow_Interface_EnabledPath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/enabled"
Path from root:       "/sampling/sflow/interfaces/interface/config/enabled"

func (*Sampling_Sflow_Interface_EnabledPath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/enabled"
Path from root:       "/sampling/sflow/interfaces/interface/state/enabled"

type Sampling_Sflow_Interface_EnabledPathAny

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

Sampling_Sflow_Interface_EnabledPathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/interfaces/interface/state/enabled YANG schema element.

func (*Sampling_Sflow_Interface_EnabledPathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/enabled"
Path from root:       "/sampling/sflow/interfaces/interface/config/enabled"

func (*Sampling_Sflow_Interface_EnabledPathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/enabled"
Path from root:       "/sampling/sflow/interfaces/interface/state/enabled"

type Sampling_Sflow_Interface_IngressSamplingRatePath

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

Sampling_Sflow_Interface_IngressSamplingRatePath represents the /openconfig-sampling/sampling/sflow/interfaces/interface/state/ingress-sampling-rate YANG schema element.

func (*Sampling_Sflow_Interface_IngressSamplingRatePath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/ingress-sampling-rate"
Path from root:       "/sampling/sflow/interfaces/interface/config/ingress-sampling-rate"

func (*Sampling_Sflow_Interface_IngressSamplingRatePath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/ingress-sampling-rate"
Path from root:       "/sampling/sflow/interfaces/interface/state/ingress-sampling-rate"

type Sampling_Sflow_Interface_IngressSamplingRatePathAny

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

Sampling_Sflow_Interface_IngressSamplingRatePathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/interfaces/interface/state/ingress-sampling-rate YANG schema element.

func (*Sampling_Sflow_Interface_IngressSamplingRatePathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/ingress-sampling-rate"
Path from root:       "/sampling/sflow/interfaces/interface/config/ingress-sampling-rate"

func (*Sampling_Sflow_Interface_IngressSamplingRatePathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/ingress-sampling-rate"
Path from root:       "/sampling/sflow/interfaces/interface/state/ingress-sampling-rate"

type Sampling_Sflow_Interface_NamePath

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

Sampling_Sflow_Interface_NamePath represents the /openconfig-sampling/sampling/sflow/interfaces/interface/state/name YANG schema element.

func (*Sampling_Sflow_Interface_NamePath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/name"
Path from root:       "/sampling/sflow/interfaces/interface/config/name"

func (*Sampling_Sflow_Interface_NamePath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/name"
Path from root:       "/sampling/sflow/interfaces/interface/state/name"

type Sampling_Sflow_Interface_NamePathAny

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

Sampling_Sflow_Interface_NamePathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/interfaces/interface/state/name YANG schema element.

func (*Sampling_Sflow_Interface_NamePathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/name"
Path from root:       "/sampling/sflow/interfaces/interface/config/name"

func (*Sampling_Sflow_Interface_NamePathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/name"
Path from root:       "/sampling/sflow/interfaces/interface/state/name"

type Sampling_Sflow_Interface_PacketsSampledPath

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

Sampling_Sflow_Interface_PacketsSampledPath represents the /openconfig-sampling/sampling/sflow/interfaces/interface/state/packets-sampled YANG schema element.

func (*Sampling_Sflow_Interface_PacketsSampledPath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/packets-sampled"
Path from root:       "/sampling/sflow/interfaces/interface/state/packets-sampled"

type Sampling_Sflow_Interface_PacketsSampledPathAny

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

Sampling_Sflow_Interface_PacketsSampledPathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/interfaces/interface/state/packets-sampled YANG schema element.

func (*Sampling_Sflow_Interface_PacketsSampledPathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/packets-sampled"
Path from root:       "/sampling/sflow/interfaces/interface/state/packets-sampled"

type Sampling_Sflow_Interface_PollingIntervalPath

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

Sampling_Sflow_Interface_PollingIntervalPath represents the /openconfig-sampling/sampling/sflow/interfaces/interface/state/polling-interval YANG schema element.

func (*Sampling_Sflow_Interface_PollingIntervalPath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/polling-interval"
Path from root:       "/sampling/sflow/interfaces/interface/config/polling-interval"

func (*Sampling_Sflow_Interface_PollingIntervalPath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/polling-interval"
Path from root:       "/sampling/sflow/interfaces/interface/state/polling-interval"

type Sampling_Sflow_Interface_PollingIntervalPathAny

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

Sampling_Sflow_Interface_PollingIntervalPathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/interfaces/interface/state/polling-interval YANG schema element.

func (*Sampling_Sflow_Interface_PollingIntervalPathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/polling-interval"
Path from root:       "/sampling/sflow/interfaces/interface/config/polling-interval"

func (*Sampling_Sflow_Interface_PollingIntervalPathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/polling-interval"
Path from root:       "/sampling/sflow/interfaces/interface/state/polling-interval"

type Sampling_Sflow_PollingIntervalPath

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

Sampling_Sflow_PollingIntervalPath represents the /openconfig-sampling/sampling/sflow/state/polling-interval YANG schema element.

func (*Sampling_Sflow_PollingIntervalPath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/polling-interval"
Path from root:       "/sampling/sflow/config/polling-interval"

func (*Sampling_Sflow_PollingIntervalPath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/polling-interval"
Path from root:       "/sampling/sflow/state/polling-interval"

type Sampling_Sflow_PollingIntervalPathAny

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

Sampling_Sflow_PollingIntervalPathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/state/polling-interval YANG schema element.

func (*Sampling_Sflow_PollingIntervalPathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/polling-interval"
Path from root:       "/sampling/sflow/config/polling-interval"

func (*Sampling_Sflow_PollingIntervalPathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/polling-interval"
Path from root:       "/sampling/sflow/state/polling-interval"

type Sampling_Sflow_SampleSizePath

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

Sampling_Sflow_SampleSizePath represents the /openconfig-sampling/sampling/sflow/state/sample-size YANG schema element.

func (*Sampling_Sflow_SampleSizePath) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/sample-size"
Path from root:       "/sampling/sflow/config/sample-size"

func (*Sampling_Sflow_SampleSizePath) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/sample-size"
Path from root:       "/sampling/sflow/state/sample-size"

type Sampling_Sflow_SampleSizePathAny

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

Sampling_Sflow_SampleSizePathAny represents the wildcard version of the /openconfig-sampling/sampling/sflow/state/sample-size YANG schema element.

func (*Sampling_Sflow_SampleSizePathAny) Config

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "config/sample-size"
Path from root:       "/sampling/sflow/config/sample-size"

func (*Sampling_Sflow_SampleSizePathAny) State

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

Defining module:      "openconfig-sampling-sflow"
Instantiating module: "openconfig-sampling-sflow"
Path from parent:     "state/sample-size"
Path from root:       "/sampling/sflow/state/sample-size"

Jump to

Keyboard shortcuts

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