device_hardware_oper

package
v0.0.0-...-50def94 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This module contains a collection of YANG definitions for Device Hardware operational data. Copyright (c) 2017 by Cisco Systems, Inc. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlarmSeverity

type AlarmSeverity string

AlarmSeverity represents Alarm severity

const (
	// Critical Alarms
	AlarmSeverity_alarm_severity_critical AlarmSeverity = "alarm-severity-critical"

	// Major Alarms
	AlarmSeverity_alarm_severity_major AlarmSeverity = "alarm-severity-major"

	// Minor Alarms
	AlarmSeverity_alarm_severity_minor AlarmSeverity = "alarm-severity-minor"
)

type DeviceHardwareData

type DeviceHardwareData struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter

	// The device hardware model.
	DeviceHardware DeviceHardwareData_DeviceHardware
}

DeviceHardwareData Device Hardware

func (*DeviceHardwareData) GetEntityData

func (deviceHardwareData *DeviceHardwareData) GetEntityData() *types.CommonEntityData

type DeviceHardwareData_DeviceHardware

type DeviceHardwareData_DeviceHardware struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter
	YPresence  bool

	// All the inventory in the hardware. The type is slice of
	// DeviceHardwareData_DeviceHardware_DeviceInventory.
	DeviceInventory []*DeviceHardwareData_DeviceHardware_DeviceInventory

	// The current alarms. The type is slice of
	// DeviceHardwareData_DeviceHardware_DeviceAlarm.
	DeviceAlarm []*DeviceHardwareData_DeviceHardware_DeviceAlarm

	// The current device system data.
	DeviceSystemData DeviceHardwareData_DeviceHardware_DeviceSystemData
}

DeviceHardwareData_DeviceHardware The device hardware model This type is a presence type.

func (*DeviceHardwareData_DeviceHardware) GetEntityData

func (deviceHardware *DeviceHardwareData_DeviceHardware) GetEntityData() *types.CommonEntityData

type DeviceHardwareData_DeviceHardware_DeviceAlarm

type DeviceHardwareData_DeviceHardware_DeviceAlarm struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter
	YListKey   string

	// This attribute is a key. The Alarm Identifier. The type is interface{} with
	// range: 0..4294967295.
	AlarmId interface{}

	// This attribute is a key. The instance of this alarm. This corresponds to
	// the  entity index. The type is interface{} with range: 0..4294967295.
	AlarmInstance interface{}

	// The name of the alarm. The type is string.
	AlarmName interface{}

	// The catagory (or severity) of the alarm that is being asserted. The type is
	// AlarmSeverity.
	AlarmCategory interface{}

	// Time the alarm was raised. The type is string with pattern:
	// \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[\+\-]\d{2}:\d{2}).
	AlarmTime interface{}

	// Description of the alarm. The type is string.
	AlarmDescription interface{}
}

DeviceHardwareData_DeviceHardware_DeviceAlarm The current alarms

func (*DeviceHardwareData_DeviceHardware_DeviceAlarm) GetEntityData

type DeviceHardwareData_DeviceHardware_DeviceInventory

type DeviceHardwareData_DeviceHardware_DeviceInventory struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter
	YListKey   string

	// This attribute is a key. Type of the hardware being represented. The type
	// is HwType.
	HwType interface{}

	// This attribute is a key. The physical index of the inventory item. The type
	// is interface{} with range: 0..4294967295.
	HwDevIndex interface{}

	// Version of this device. The type is string.
	Version interface{}

	// The part number of this device. This  is only valid if the device is a
	// field replaceable unit. The type is string.
	PartNumber interface{}

	// The serial number of the device. This is only valid if the device is
	// individually trackable. The type is string.
	SerialNumber interface{}

	// Description of the device. The type is string.
	HwDescription interface{}
}

DeviceHardwareData_DeviceHardware_DeviceInventory All the inventory in the hardware

func (*DeviceHardwareData_DeviceHardware_DeviceInventory) GetEntityData

type DeviceHardwareData_DeviceHardware_DeviceSystemData

type DeviceHardwareData_DeviceHardware_DeviceSystemData struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter
	YPresence  bool

	// Current time on device in UTC. The type is string with pattern:
	// \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[\+\-]\d{2}:\d{2}).
	CurrentTime interface{}

	// This timestamp indicates the time that the system was last restarted.  The
	// value is the timestamp in seconds relative to the Unix Epoch (Jan 1, 1970
	// 00:00:00 UTC). The type is string with pattern:
	// \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[\+\-]\d{2}:\d{2}).
	BootTime interface{}

	// Software version. The type is string.
	SoftwareVersion interface{}

	// Rommon version. The type is string.
	RommonVersion interface{}

	// Last reboot reason. The type is string.
	LastRebootReason interface{}
}

DeviceHardwareData_DeviceHardware_DeviceSystemData The current device system data This type is a presence type.

func (*DeviceHardwareData_DeviceHardware_DeviceSystemData) GetEntityData

type HwType

type HwType string

HwType represents The broad type of hardware device

const (
	// Unknown Hardware Type
	HwType_hw_type_unknown HwType = "hw-type-unknown"

	// Chassis
	HwType_hw_type_chassis HwType = "hw-type-chassis"

	// Central Processing Unit
	HwType_hw_type_cpu HwType = "hw-type-cpu"

	// Dynamic Random Access Memory
	HwType_hw_type_dram HwType = "hw-type-dram"

	// Flash
	HwType_hw_type_flash HwType = "hw-type-flash"

	// embedded Memory Controller
	HwType_hw_type_emmc HwType = "hw-type-emmc"

	// SD-Card
	HwType_hw_type_sdcard HwType = "hw-type-sdcard"

	// Universal Serial Bus
	HwType_hw_type_usb HwType = "hw-type-usb"

	// Pluggable interface model
	HwType_hw_type_pim HwType = "hw-type-pim"

	// Transceiver
	HwType_hw_type_transceiver HwType = "hw-type-transceiver"

	// Fan tray
	HwType_hw_type_fantray HwType = "hw-type-fantray"

	// Power Entry Module
	HwType_hw_type_pem HwType = "hw-type-pem"
)

Jump to

Keyboard shortcuts

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