This submodule contains a collection of YANG definitions for Cisco IOS-XR platform-inventory package operational data. Copyrigh...
Version: 2020-05-14
submodule Cisco-IOS-XR-platform-inventory-oper-sub1 { yang-version 1; belongs-to Cisco-IOS-XR-platform-inventory-oper { prefix Cisco-IOS-XR-platform-inventory-oper; } import cisco-semver { prefix semver; } organization "Cisco Systems, Inc."; contact "Cisco Systems, Inc. Customer Service Postal: 170 West Tasman Drive San Jose, CA 95134 Tel: +1 800 553-NETS E-mail: cs-yang@cisco.com"; description "This submodule contains a collection of YANG definitions for Cisco IOS-XR platform-inventory package operational data. Copyright (c) 2013-2020 by Cisco Systems, Inc. All rights reserved."; revision "2020-05-14" { description "New model, replaces Cisco-IOS-XR-plat-chas-invmgr-ng-oper"; } revision "2019-04-05" { description "Establish semantic version baseline."; } revision "2015-11-09" { description "IOS XR 6.0 revision."; } semver:module-version "1.0.0"; typedef Inv-reset-reason { type enumeration { enum "module-reset-reason-unknown" { value 0; description "module reset reason unknown"; } enum "module-reset-reason-powerup" { value 1; description "module reset reason powerup"; } enum "module-reset-reason-user-shutdown" { value 2; description "module reset reason user shutdown"; } enum "module-reset-reason-user-reload" { value 3; description "module reset reason user reload"; } enum "module-reset-reason-auto-reload" { value 4; description "module reset reason auto reload"; } enum "module-reset-reason-environment" { value 5; description "module reset reason environment"; } enum "module-reset-reason-user-unpower" { value 6; description "module reset reason user unpower"; } } description "Inv reset reason"; } typedef Inv-monitor-state { type enumeration { enum "unmonitored" { value 0; description "unmonitored"; } enum "monitored" { value 1; description "monitored"; } } description "Inv monitor state"; } typedef Inv-card-state { type enumeration { enum "inv-card-not-present" { value 0; description "inv card not present"; } enum "inv-card-present" { value 1; description "inv card present"; } enum "inv-card-reset" { value 2; description "inv card reset"; } enum "inv-card-booting" { value 3; description "inv card booting"; } enum "inv-card-mbi-booting" { value 4; description "inv card mbi booting"; } enum "inv-card-running-mbi" { value 5; description "inv card running mbi"; } enum "inv-card-running-ena" { value 6; description "inv card running ena"; } enum "inv-card-bring-down" { value 7; description "inv card bring down"; } enum "inv-card-ena-failure" { value 8; description "inv card ena failure"; } enum "inv-card-f-diag-run" { value 9; description "inv card f diag run"; } enum "inv-card-f-diag-failure" { value 10; description "inv card f diag failure"; } enum "inv-card-powered" { value 11; description "inv card powered"; } enum "inv-card-unpowered" { value 12; description "inv card unpowered"; } enum "inv-card-mdr" { value 13; description "inv card mdr"; } enum "inv-card-mdr-running-mbi" { value 14; description "inv card mdr running mbi"; } enum "inv-card-main-t-mode" { value 15; description "inv card main t mode"; } enum "inv-card-admin-down" { value 16; description "inv card admin down"; } enum "inv-card-no-mon" { value 17; description "inv card no mon"; } enum "inv-card-unknown" { value 18; description "inv card unknown"; } enum "inv-card-failed" { value 19; description "inv card failed"; } enum "inv-card-ok" { value 20; description "inv card ok"; } enum "inv-card-missing" { value 21; description "inv card missing"; } enum "inv-card-field-diag-downloading" { value 22; description "inv card field diag downloading"; } enum "inv-card-field-diag-unmonitor" { value 23; description "inv card field diag unmonitor"; } enum "inv-card-fabric-field-diag-unmonitor" { value 24; description "inv card fabric field diag unmonitor"; } enum "inv-card-field-diag-rp-launching" { value 25; description "inv card field diag rp launching"; } enum "inv-card-field-diag-running" { value 26; description "inv card field diag running"; } enum "inv-card-field-diag-pass" { value 27; description "inv card field diag pass"; } enum "inv-card-field-diag-fail" { value 28; description "inv card field diag fail"; } enum "inv-card-field-diag-timeout" { value 29; description "inv card field diag timeout"; } enum "inv-card-disabled" { value 30; description "inv card disabled"; } enum "inv-card-spa-booting" { value 31; description "inv card spa booting"; } enum "inv-card-not-allowed-online" { value 32; description "inv card not allowed online"; } enum "inv-card-stopped" { value 33; description "inv card stopped"; } enum "inv-card-incompatible-fw-ver" { value 34; description "inv card incompatible fw ver"; } enum "inv-card-fpd-hold" { value 35; description "inv card fpd hold"; } enum "inv-card-node-prep" { value 36; description "inv card node prep"; } enum "inv-card-updating-fpd" { value 37; description "inv card updating fpd"; } enum "inv-card-num-states" { value 38; description "inv card num states"; } } description "Inv card state"; } typedef Inv-power-admin-state { type enumeration { enum "admin-power-invalid" { value 0; description "admin power invalid"; } enum "admin-on" { value 2; description "admin on"; } enum "admin-off" { value 3; description "admin off"; } } description "Inv power admin state"; } typedef Inv-admin-state { type enumeration { enum "admin-state-invalid" { value 0; description "admin state invalid"; } enum "admin-up" { value 1; description "admin up"; } enum "admin-down" { value 2; description "admin down"; } } description "Inv admin state"; } grouping INV-XML-DISK-ATTRIBUTE { description "Disk attribute"; leaf disk-name { type string { length "0..255"; } description "Disk name"; } leaf disk-size { type uint32; units "megabyte"; description "Disk size in mega-bytes"; } leaf sector-size { type uint32; units "byte"; description "Disk sector size in bytes"; } } // grouping INV-XML-DISK-ATTRIBUTE grouping INV-XML-DISK-INFO { description "Disk information"; leaf disk-name { type string { length "0..255"; } description "(Deprecated) Disk name"; } leaf disk-size { type uint32; units "megabyte"; description "(Deprecated) Disk size in mega-bytes"; } leaf sector-size { type uint32; units "byte"; description "(Deprecated) Disk sector size in bytes"; } list disks { description "Disk attributes"; uses INV-XML-DISK-ATTRIBUTE; } // list disks } // grouping INV-XML-DISK-INFO grouping INV-BOOTFLASH { description "Bootflash information"; leaf image-name { type string { length "0..255"; } description "Image name"; } leaf platform-type { type string { length "0..255"; } description "Platform Type"; } leaf major-version { type uint32; description "Major version"; } leaf minor-version { type uint32; description "Minor version"; } leaf micro-image-version { type string { length "0..255"; } description "Micro image version"; } leaf platform-specific { type string { length "0..255"; } description "Platform specific text"; } leaf release-type { type string { length "0..255"; } description "Release type"; } leaf bootflash-type { type string { length "0..255"; } description "Bootflash type e.g. SIMM"; } leaf bootflash-size { type uint32; units "kilobyte"; description "Bootflash size in kilo-bytes"; } leaf sector-size { type uint32; units "byte"; description "Sector size in bytes"; } } // grouping INV-BOOTFLASH grouping INV-IMAGE { description "Image information"; leaf image-name { type string { length "0..255"; } description "Image name"; } leaf major-version { type uint32; description "Major version"; } leaf minor-version { type uint32; description "Minor version"; } leaf micro-image-version { type string { length "0..255"; } description "Micro image version"; } leaf platform-specific { type string { length "0..255"; } description "Platform specific text"; } leaf release-type { type string { length "0..255"; } description "Release type"; } } // grouping INV-IMAGE grouping INV-XML-MOTHERBOARD-INFO { description "Motherboard information"; container rom { description "ROM information"; uses INV-IMAGE; } // container rom container bootflash { description "Bootflash information"; uses INV-BOOTFLASH; } // container bootflash container processor { description "Processor information"; uses INV-PROCESSOR; } // container processor leaf main-memory-size { type uint64; units "byte"; description "Memory size in bytes"; } leaf nvram-size { type uint64; units "byte"; description "NVRAM size in bytes"; } } // grouping INV-XML-MOTHERBOARD-INFO grouping INV-PROCESSOR { description "Processor information"; leaf processor-type { type string { length "0..255"; } description "Type e.g. 7457"; } leaf speed { type string { length "0..255"; } description "Speed e.g. 1197Mhz"; } leaf revision { type string { length "0..255"; } description "Revision. e.g 1.1"; } } // grouping INV-PROCESSOR grouping INV-TIMESPEC { description "Inventory FRU Info Time Spec"; leaf time-in-seconds { type int32; units "second"; description "Time Value in Seconds"; } leaf time-in-nano-seconds { type int32; units "nanosecond"; description "Time Value in Nano-seconds"; } } // grouping INV-TIMESPEC grouping INV-XML-FRU-INFO { description "FRU Information"; container last-operational-state-change { description "Time operational state is last changed"; uses INV-TIMESPEC; } // container last-operational-state-change container module-up-time { description "Describes the Entity Module up time"; uses INV-TIMESPEC; } // container module-up-time leaf module-administrative-state { type Inv-admin-state; description "Describes the Entity Administrative state"; } leaf module-power-administrative-state { type Inv-power-admin-state; description "Describes the Entity Power administrative state"; } leaf module-operational-state { type Inv-card-state; description "Describes the Entity Operation state"; } leaf module-monitor-state { type Inv-monitor-state; description "Describes the Entity Monitor state"; } leaf module-reset-reason { type Inv-reset-reason; description "Describes the Entity Reset reason state"; } } // grouping INV-XML-FRU-INFO grouping INV-XML-ENTITY-BASIC-INFO { description "Bag contains all the basic inventory information for each entity"; leaf name { type string { length "0..255"; } description "Describes the Entity name string"; } leaf description { type string { length "0..255"; } description "describes in user-readable termswhat the entity in question does"; } leaf model-name { type string { length "0..255"; } description "Describes the Entity model name"; } leaf hardware-revision { type string { length "0..255"; } description "Describes the Entity hw revision string"; } leaf serial-number { type string { length "0..255"; } description "Describes the Entity serial number"; } leaf firmware-revision { type string { length "0..255"; } description "Describes the Entity firmware revision string"; } leaf software-revision { type string { length "0..255"; } description "Describes the Entity software revision string"; } leaf vendor-type { type string { length "0..255"; } description "maps to the vendor OID string"; } leaf is-field-replaceable-unit { type boolean; description "1 if Field Replaceable Unit 0, if not"; } } // grouping INV-XML-ENTITY-BASIC-INFO } // submodule Cisco-IOS-XR-platform-inventory-oper-sub1
© 2023 YumaWorks, Inc. All rights reserved.