Documentation ¶
Overview ¶
Package ocpath 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:
- gnmi-collector-metadata.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft-network-instance.yang
- public/release/models/aft/openconfig-aft-summary.yang
- public/release/models/aft/openconfig-aft.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/gnsi/openconfig-gnsi-acctz.yang
- public/release/models/gnsi/openconfig-gnsi-authz.yang
- public/release/models/gnsi/openconfig-gnsi-certz.yang
- public/release/models/gnsi/openconfig-gnsi-credentialz.yang
- public/release/models/gnsi/openconfig-gnsi-pathz.yang
- public/release/models/gnsi/openconfig-gnsi.yang
- public/release/models/interfaces/openconfig-if-aggregate.yang
- public/release/models/interfaces/openconfig-if-ethernet-ext.yang
- public/release/models/interfaces/openconfig-if-ethernet.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-policy.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-ospf-policy.yang
- public/release/models/ospf/openconfig-ospfv2.yang
- public/release/models/p4rt/openconfig-p4rt.yang
- public/release/models/platform/openconfig-platform-common.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/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-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/system/openconfig-system-utilization.yang
- public/release/models/system/openconfig-system.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 ¶
- type Batch
- type RootPath
- func (n *RootPath) Acl() *acl.AclPath
- func (n *RootPath) Component(Name string) *platform.ComponentPath
- func (n *RootPath) ComponentAny() *platform.ComponentPathAny
- func (n *RootPath) ComponentMap() *platform.ComponentPathMap
- func (n *RootPath) Config() ygnmi.ConfigQuery[*oc.Root]
- func (n *RootPath) DefinedSets() *definedsets.DefinedSetsPath
- func (n *RootPath) Flow(Name string) *ateflow.FlowPath
- func (n *RootPath) FlowAny() *ateflow.FlowPathAny
- func (n *RootPath) FlowMap() *ateflow.FlowPathMap
- func (n *RootPath) Interface(Name string) *interfaces.InterfacePath
- func (n *RootPath) InterfaceAny() *interfaces.InterfacePathAny
- func (n *RootPath) InterfaceMap() *interfaces.InterfacePathMap
- func (n *RootPath) Keychain(Name string) *keychain.KeychainPath
- func (n *RootPath) KeychainAny() *keychain.KeychainPathAny
- func (n *RootPath) KeychainMap() *keychain.KeychainPathMap
- func (n *RootPath) Lacp() *lacp.LacpPath
- func (n *RootPath) Lldp() *lldp.LldpPath
- func (n *RootPath) Meta() *gnmicollectormetadata.MetaPath
- func (n *RootPath) NetworkInstance(Name string) *networkinstance.NetworkInstancePath
- func (n *RootPath) NetworkInstanceAny() *networkinstance.NetworkInstancePathAny
- func (n *RootPath) NetworkInstanceMap() *networkinstance.NetworkInstancePathMap
- func (n *RootPath) Qos() *qos.QosPath
- func (n *RootPath) RoutingPolicy() *routingpolicy.RoutingPolicyPath
- func (n *RootPath) Sampling() *sampling.SamplingPath
- func (n *RootPath) State() ygnmi.SingletonQuery[*oc.Root]
- func (n *RootPath) System() *system.SystemPath
- func (n *RootPath) TerminalDevice() *terminaldevice.TerminalDevicePath
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.
type RootPath ¶
type RootPath struct {
*ygnmi.DeviceRootBase
}
RootPath represents the /root YANG schema element.
func Root ¶
func Root() *RootPath
Root returns a root path object from which YANG paths can be constructed.
func (*RootPath) Acl ¶
Acl (container): Top level enclosing container for ACL model config and operational state data
Defining module: "openconfig-acl" Instantiating module: "openconfig-acl" Path from parent: "acl" Path from root: "/acl"
func (*RootPath) Component ¶
func (n *RootPath) Component(Name string) *platform.ComponentPath
Component (list): List of components, keyed by component name.
Defining module: "openconfig-platform" Instantiating module: "openconfig-platform" Path from parent: "components/component" Path from root: "/components/component" Name: string
func (*RootPath) ComponentAny ¶
func (n *RootPath) ComponentAny() *platform.ComponentPathAny
ComponentAny (list): List of components, keyed by component name.
Defining module: "openconfig-platform" Instantiating module: "openconfig-platform" Path from parent: "components/component" Path from root: "/components/component"
func (*RootPath) ComponentMap ¶ added in v0.1.24
func (n *RootPath) ComponentMap() *platform.ComponentPathMap
ComponentMap (list): List of components, keyed by component name.
Defining module: "openconfig-platform" Instantiating module: "openconfig-platform" Path from parent: "components/component" Path from root: "/components/component"
func (*RootPath) Config ¶
func (n *RootPath) Config() ygnmi.ConfigQuery[*oc.Root]
Config returns a Query that can be used in gNMI operations.
func (*RootPath) DefinedSets ¶
func (n *RootPath) DefinedSets() *definedsets.DefinedSetsPath
DefinedSets (container): Top level enclosing container for defined-set model config and operational state data.
Defining module: "openconfig-defined-sets" Instantiating module: "openconfig-defined-sets" Path from parent: "defined-sets" Path from root: "/defined-sets"
func (*RootPath) Flow ¶
Flow (list): A flow of packets between one or more internal and external sources and one or more internal and external destinations that the target is able to track and report statistics on. Each flow is identified by an arbitrary string identifier.
Defining module: "openconfig-ate-flow" Instantiating module: "openconfig-ate-flow" Path from parent: "flows/flow" Path from root: "/flows/flow" Name: string
func (*RootPath) FlowAny ¶
func (n *RootPath) FlowAny() *ateflow.FlowPathAny
FlowAny (list): A flow of packets between one or more internal and external sources and one or more internal and external destinations that the target is able to track and report statistics on. Each flow is identified by an arbitrary string identifier.
Defining module: "openconfig-ate-flow" Instantiating module: "openconfig-ate-flow" Path from parent: "flows/flow" Path from root: "/flows/flow"
func (*RootPath) FlowMap ¶ added in v0.1.24
func (n *RootPath) FlowMap() *ateflow.FlowPathMap
FlowMap (list): A flow of packets between one or more internal and external sources and one or more internal and external destinations that the target is able to track and report statistics on. Each flow is identified by an arbitrary string identifier.
Defining module: "openconfig-ate-flow" Instantiating module: "openconfig-ate-flow" Path from parent: "flows/flow" Path from root: "/flows/flow"
func (*RootPath) Interface ¶
func (n *RootPath) Interface(Name string) *interfaces.InterfacePath
Interface (list): The list of named interfaces on the device.
Defining module: "openconfig-interfaces" Instantiating module: "openconfig-interfaces" Path from parent: "interfaces/interface" Path from root: "/interfaces/interface" Name: string
func (*RootPath) InterfaceAny ¶
func (n *RootPath) InterfaceAny() *interfaces.InterfacePathAny
InterfaceAny (list): The list of named interfaces on the device.
Defining module: "openconfig-interfaces" Instantiating module: "openconfig-interfaces" Path from parent: "interfaces/interface" Path from root: "/interfaces/interface"
func (*RootPath) InterfaceMap ¶ added in v0.1.24
func (n *RootPath) InterfaceMap() *interfaces.InterfacePathMap
InterfaceMap (list): The list of named interfaces on the device.
Defining module: "openconfig-interfaces" Instantiating module: "openconfig-interfaces" Path from parent: "interfaces/interface" Path from root: "/interfaces/interface"
func (*RootPath) Keychain ¶
func (n *RootPath) Keychain(Name string) *keychain.KeychainPath
Keychain (list): List of defined keychains.
Defining module: "openconfig-keychain" Instantiating module: "openconfig-keychain" Path from parent: "keychains/keychain" Path from root: "/keychains/keychain" Name: string
func (*RootPath) KeychainAny ¶
func (n *RootPath) KeychainAny() *keychain.KeychainPathAny
KeychainAny (list): List of defined keychains.
Defining module: "openconfig-keychain" Instantiating module: "openconfig-keychain" Path from parent: "keychains/keychain" Path from root: "/keychains/keychain"
func (*RootPath) KeychainMap ¶ added in v0.1.24
func (n *RootPath) KeychainMap() *keychain.KeychainPathMap
KeychainMap (list): List of defined keychains.
Defining module: "openconfig-keychain" Instantiating module: "openconfig-keychain" Path from parent: "keychains/keychain" Path from root: "/keychains/keychain"
func (*RootPath) Lacp ¶
Lacp (container): Configuration and operational state data for LACP protocol operation on the aggregate interface
Defining module: "openconfig-lacp" Instantiating module: "openconfig-lacp" Path from parent: "lacp" Path from root: "/lacp"
func (*RootPath) Lldp ¶
Lldp (container): Top-level container for LLDP configuration and state data
Defining module: "openconfig-lldp" Instantiating module: "openconfig-lldp" Path from parent: "lldp" Path from root: "/lldp"
func (*RootPath) Meta ¶
func (n *RootPath) Meta() *gnmicollectormetadata.MetaPath
Meta (container):
Defining module: "gnmi-collector-metadata" Instantiating module: "gnmi-collector-metadata" Path from parent: "meta" Path from root: "/meta"
func (*RootPath) NetworkInstance ¶
func (n *RootPath) NetworkInstance(Name string) *networkinstance.NetworkInstancePath
NetworkInstance (list): Network instances configured on the local system
IPv4 and IPv6 forwarding are enabled by default within an L3 network-instance and subsequently, routes can be populated into the network-instance using protocols that enable IPv4 and IPv6 configuration without explicitly enabling these.
Defining module: "openconfig-network-instance" Instantiating module: "openconfig-network-instance" Path from parent: "network-instances/network-instance" Path from root: "/network-instances/network-instance" Name: string
func (*RootPath) NetworkInstanceAny ¶
func (n *RootPath) NetworkInstanceAny() *networkinstance.NetworkInstancePathAny
NetworkInstanceAny (list): Network instances configured on the local system
IPv4 and IPv6 forwarding are enabled by default within an L3 network-instance and subsequently, routes can be populated into the network-instance using protocols that enable IPv4 and IPv6 configuration without explicitly enabling these.
Defining module: "openconfig-network-instance" Instantiating module: "openconfig-network-instance" Path from parent: "network-instances/network-instance" Path from root: "/network-instances/network-instance"
func (*RootPath) NetworkInstanceMap ¶ added in v0.1.24
func (n *RootPath) NetworkInstanceMap() *networkinstance.NetworkInstancePathMap
NetworkInstanceMap (list): Network instances configured on the local system
IPv4 and IPv6 forwarding are enabled by default within an L3 network-instance and subsequently, routes can be populated into the network-instance using protocols that enable IPv4 and IPv6 configuration without explicitly enabling these.
Defining module: "openconfig-network-instance" Instantiating module: "openconfig-network-instance" Path from parent: "network-instances/network-instance" Path from root: "/network-instances/network-instance"
func (*RootPath) Qos ¶
Qos (container): Top-level container for QoS data
Defining module: "openconfig-qos" Instantiating module: "openconfig-qos" Path from parent: "qos" Path from root: "/qos"
func (*RootPath) RoutingPolicy ¶
func (n *RootPath) RoutingPolicy() *routingpolicy.RoutingPolicyPath
RoutingPolicy (container): Top-level container for all routing policy configuration
Defining module: "openconfig-routing-policy" Instantiating module: "openconfig-routing-policy" Path from parent: "routing-policy" Path from root: "/routing-policy"
func (*RootPath) Sampling ¶
func (n *RootPath) Sampling() *sampling.SamplingPath
Sampling (container): Top-level container for sampling-related configuration and operational state data
Defining module: "openconfig-sampling" Instantiating module: "openconfig-sampling" Path from parent: "sampling" Path from root: "/sampling"
func (*RootPath) State ¶
func (n *RootPath) State() ygnmi.SingletonQuery[*oc.Root]
State returns a Query that can be used in gNMI operations.
func (*RootPath) System ¶
func (n *RootPath) System() *system.SystemPath
System (container): Enclosing container for system-related configuration and operational state data
Defining module: "openconfig-system" Instantiating module: "openconfig-system" Path from parent: "system" Path from root: "/system"
func (*RootPath) TerminalDevice ¶
func (n *RootPath) TerminalDevice() *terminaldevice.TerminalDevicePath
TerminalDevice (container): Top-level container for the terminal device
Defining module: "openconfig-terminal-device" Instantiating module: "openconfig-terminal-device" Path from parent: "terminal-device" Path from root: "/terminal-device"