Cisco-IOS-XR-install-oper-sub1

This submodule contains a collection of YANG definitions for Cisco IOS-XR install package operational data. Copyright (c) 2013-...

  • Version: 2021-01-14

    Cisco-IOS-XR-install-oper-sub1@2021-01-14


    
      submodule Cisco-IOS-XR-install-oper-sub1 {
    
        yang-version 1;
    
        belongs-to Cisco-IOS-XR-install-oper {
            prefix Cisco-IOS-XR-install-oper;
        }
    
        import Cisco-IOS-XR-types {
          prefix xr;
        }
        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 install package operational data.
         
         Copyright (c) 2013-2021 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2021-01-14" {
          description
            "Add DDTS info to rollback queries.
           2020-07-23
             Added optional label into inst_packages_bag.
           2020-07-22
             Update Inst-provides-match-type with additional provide value
           2020-05-27
             Add install and runtime fingerprint
           2020-05-27
             Add install and runtime fingerprint
           2020-05-27
             Add install and runtime fingerprint
           2020-05-13
             Updated version information to add hostname and disk space
           2020-05-13
             Updated version information to add hostname and disk space
           2020-05-13
             Updated version information to add hostname and disk space";
        }
    
        revision "2020-04-23" {
          description
            "Add categorization of installed software packages into Cisco and Non-Cisco
           2020-04-23
           Add categorization of installed software packages into Cisco and Non-Cisco
           2020-04-23
           Add categorization of installed software packages into Cisco and Non-Cisco
           2020-02-05
           Updated version information to add a GISO label
           2020-02-05
           Updated version information to add a GISO label
           2020-02-05
           Updated version information to add a GISO label
           2020-01-09
           Added optional label into inst_summary_packages_bag.
           2019-10-14
           Combined platform updates including updates to show install rollback list-ids";
        }
    
        revision "2019-10-13" {
          description
            "NCS540L 7.1.1 release
           2019-10-12
           8000 series 7.0.11 release
           2019-08-13
           Common yang oper model for lindt and eXR install.";
        }
    
        revision "2019-04-05" {
          description
            "Establish semantic version baseline.";
        }
    
        revision "2015-11-09" {
          description "IOS XR 6.0 revision.";
        }
    
        semver:module-version "1.3.0";
        semver:module-version "1.2.0";
        semver:module-version "1.1.0";
        semver:module-version "1.0.0";
    
        typedef Inst-req-state {
          type enumeration {
            enum "in-progress" {
              value 0;
              description "In progress";
            }
            enum "success" {
              value 1;
              description "Success";
            }
            enum "failure" {
              value 2;
              description "Failure";
            }
          }
          description
            "Install request state type";
        }
    
        typedef Inst-fp-request-status {
          type enumeration {
            enum "generation-up-to-date" {
              value 0;
              description
                "Runtime fingerprint generation up to date.";
            }
            enum "generation-in-progress" {
              value 1;
              description
                "Runtime fingerprint generation in progress";
            }
            enum "to-be-regenerated-at-apply" {
              value 2;
              description
                "Runtime fingerprints will be regenerated on
               apply";
            }
          }
          description
            "package Fingerprint request status";
        }
    
        typedef Install-opt-string {
          type string;
          description "Install opt string";
        }
    
        grouping INST-REQUEST-BAG {
          description "Request result bag";
          leaf request {
            type string;
            description "The last user request";
          }
    
          leaf state {
            xr:event-telemetry "Subscribe Telemetry Event";
            type Inst-req-state;
            description
              "The state of the last user request. Added
             telemetry event for operation state";
          }
    
          leaf timestamp {
            type string;
            description
              "The time the current state was entered";
          }
    
          leaf error {
            type string;
            description
              "String describing the error, if any";
          }
    
          leaf operation-id {
            xr:event-telemetry "Subscribe Telemetry Event";
            type Install-opt-string;
            description
              "Operation ID of the ongoing or  previous
             completed install operation.            Added
             telemetry event for install operation id";
          }
        }  // grouping INST-REQUEST-BAG
    
        grouping INST-TOP-LEVEL-PKG-TYPE {
          description
            "Install user-installable package type";
          container rpm-fingerprint {
            description
              "RPM Fingerprint at install and run time";
            uses INST-RPM-FINGER-PRINT;
          }  // container rpm-fingerprint
    
          leaf name {
            type string;
            description "Package name";
          }
    
          leaf architecture {
            type string;
            description "Architecture";
          }
    
          leaf version {
            type string;
            description "Version";
          }
    
          leaf release {
            type string;
            description "Release";
          }
    
          leaf epoch {
            type Install-opt-string;
            description "Epoch";
          }
    
          leaf xr-mandatory {
            type boolean;
            description "XR Mandatory";
          }
    
          leaf xr-optional {
            type boolean;
            description "XR Optional";
          }
    
          leaf gpg-key-id {
            type Install-opt-string;
            description
              "The GPG key ID at install time. A key ID of '0'
             indicates a package with no GPG signature.";
          }
        }  // grouping INST-TOP-LEVEL-PKG-TYPE
    
        grouping INST-SUMMARY-PACKAGES-BAG {
          description
            "Summary packages result bag";
          leaf xr-packages-hash {
            type string;
            description "Hash of XR packages";
          }
    
          leaf label {
            type Install-opt-string;
            description "Label of image";
          }
    
          leaf rpm-fingerprint-status {
            type Inst-fp-request-status;
            description
              "Package Fingerprint request status";
          }
    
          leaf rpm-fingerprint-timestamp {
            type Install-opt-string;
            description
              "Package run time fingerprint collection time";
          }
    
          list package {
            description
              "Added telemetry event at packages level";
            uses INST-TOP-LEVEL-PKG-TYPE;
          }  // list package
        }  // grouping INST-SUMMARY-PACKAGES-BAG
    
        grouping INST-PACKAGES-BAG {
          description "Package result bag";
          leaf rpm-fingerprint-status {
            type Inst-fp-request-status;
            description
              "Package Fingerprint request status";
          }
    
          leaf rpm-fingerprint-timestamp {
            type Install-opt-string;
            description
              "Package run time fingerprint collection time";
          }
    
          leaf label {
            type Install-opt-string;
            description "Label of image";
          }
    
          list package {
            description "Packages";
            uses INST-PKG-TYPE;
          }  // list package
        }  // grouping INST-PACKAGES-BAG
    
        grouping INST-RPM-FINGER-PRINT {
          description
            "Install package fingerprint type";
          leaf rpm-fingerprint-install-time {
            type Install-opt-string;
            description
              "Package fingerprint at install time.";
          }
    
          leaf rpm-fingerprint-run-time {
            type Install-opt-string;
            description
              "Package fingerprint at run time. A runtime
             fingerprint of '0' indicates that the runtime
             fingerprint for this package has not yet been
             calculated.";
          }
        }  // grouping INST-RPM-FINGER-PRINT
    
        grouping INST-PKG-TYPE {
          description "Install package type";
          container rpm-fingerprint {
            description
              "RPM Fingerprint at install and run time";
            uses INST-RPM-FINGER-PRINT;
          }  // container rpm-fingerprint
    
          leaf name {
            type string;
            description "Package name";
          }
    
          leaf architecture {
            type string;
            description "Architecture";
          }
    
          leaf version {
            type string;
            description "Version";
          }
    
          leaf release {
            type string;
            description "Release";
          }
    
          leaf epoch {
            type Install-opt-string;
            description "Epoch";
          }
    
          leaf gpg-key-id {
            type Install-opt-string;
            description
              "The GPG key ID at install time. A key ID of '0'
             indicates a package with no GPG signature.";
          }
        }  // grouping INST-PKG-TYPE
    
        grouping INST-FIX-TYPE {
          description "INST FIX TYPE";
          leaf ddts {
            type string;
            description "DDTS id";
          }
    
          list package {
            description "Packages";
            uses INST-PKG-TYPE;
          }  // list package
        }  // grouping INST-FIX-TYPE
    
        grouping INST-FIXES-BAG {
          description
            "Install bag containing details of
           active/committed fixes";
          list fixes {
            description "Fixes";
            uses INST-FIX-TYPE;
          }  // list fixes
        }  // grouping INST-FIXES-BAG
    
        grouping INST-VER-PKG-TYPE {
          description "Install package type";
          leaf name {
            type string;
            description "Name";
          }
    
          leaf version {
            type string;
            description "Version";
          }
    
          leaf built-by {
            type string;
            description "User built by";
          }
    
          leaf built-on {
            type string;
            description "Time built";
          }
    
          leaf workspace {
            type string;
            description "Workspace built in";
          }
    
          leaf build-host {
            type string;
            description "Build host";
          }
        }  // grouping INST-VER-PKG-TYPE
    
        grouping INST-VERSION-BAG {
          description "Install version bag";
          leaf label {
            xr:event-telemetry "Subscribe Telemetry Event";
            type string;
            description
              "Added telemetry event on Label field";
          }
    
          leaf copyright-info {
            type string;
            description "Copyright information";
          }
    
          leaf hardware-info {
            type string;
            description "Hardware information";
          }
    
          leaf uptime {
            type string;
            description "System uptime";
          }
    
          leaf location {
            type Install-opt-string;
            description
              "Prefix for the path where packages will be
             installed";
          }
    
          leaf processor {
            type Install-opt-string;
            description "Processor";
          }
    
          leaf chassis-pid {
            type Install-opt-string;
            description "Chassis PID";
          }
    
          leaf chassis-description {
            type Install-opt-string;
            description
              "Chassis Unique Device Identifier description";
          }
    
          leaf xr-host-name {
            type Install-opt-string;
            description "Configured XR hostname";
          }
    
          leaf total-ram {
            type uint64;
            description
              "Total physical memory in GB";
          }
    
          list package {
            description "Packages";
            uses INST-VER-PKG-TYPE;
          }  // list package
        }  // grouping INST-VERSION-BAG
      }  // submodule Cisco-IOS-XR-install-oper-sub1
    

© 2023 YumaWorks, Inc. All rights reserved.