Cisco-IOS-XR-system-reboot-act

This module contains a collection of YANG definitions for Cisco IOS-XR system reboot operations corresponding to the gNOI system...

  • Version: 2020-07-15

    Cisco-IOS-XR-system-reboot-act@2020-07-15


    
      module Cisco-IOS-XR-system-reboot-act {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XR-system-reboot-act";
    
        prefix system-reboot-act;
    
        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 module contains a collection of YANG definitions
         for Cisco IOS-XR system reboot operations corresponding
         to the gNOI system.proto definitions.
         
         Copyright (c) 2019-2020 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2020-07-15" {
          description "IOS XR 7.0.12 revision.";
        }
    
        semver:module-version "1.0.0";
    
        typedef location-name {
          type string {
            length "1..64";
          }
          description
            "Fully qualified location specification, e.g. 0/RP0/CPU0";
        }
    
        typedef reboot-method {
          type enumeration {
            enum "unknown" {
              value 0;
              description
                "Invalid default method";
            }
            enum "cold" {
              value 1;
              description
                "Shutdown and restart OS and all hardware";
            }
            enum "powerdown" {
              value 2;
              description
                "Halt and power down, if possible";
            }
            enum "halt" {
              value 3;
              description "Halt, if possible";
            }
            enum "warm" {
              value 4;
              description
                "Reload configuration but not underlying hardware";
            }
            enum "nsf" {
              value 5;
              description
                "Non-stop-forwarding reboot, if possible";
            }
            enum "reset" {
              value 6;
              description
                "Reboot to factory defaults";
            }
            enum "powerup" {
              value 7;
              description
                "Apply power, no-op if power is already on";
            }
          }
          description "Reboot action type";
        }
    
        typedef boot-media {
          type enumeration {
            enum "network" {
              value 0;
              description
                "Load image from network directory";
            }
            enum "usb" {
              value 1;
              description
                "Load image from USB directory";
            }
          }
          description "Boot media Type";
        }
    
        rpc reboot-request {
          description
            "Boot, reboot, or shutdown the specified entity";
          input {
            leaf method {
              type reboot-method;
              mandatory true;
              description
                "Reboot operation type";
            }
    
            leaf delay {
              type uint32;
              description
                "Delay in nanoseconds before issuing command";
            }
    
            leaf message {
              type string;
              description
                "Informational reason for the operation";
            }
    
            leaf location {
              type location-name;
              description
                "Fully qualified location specification";
            }
    
            leaf force {
              type boolean;
              description
                "Do not wait for software to shutdown gracefully";
            }
    
            leaf bootmedia {
              type boot-media;
              description "Bootmedia type";
            }
          }
        }  // rpc reboot-request
    
        rpc reboot-status-request {
          description
            "Retrieves the latest boot status of the specified entity";
          input {
            leaf location {
              type location-name;
              mandatory true;
              description
                "Fully qualified location specification";
            }
          }
    
          output {
            container reboot-status-response {
              description
                "Latest boot status of the target";
              leaf active {
                type boolean;
                description
                  "Set to true if reboot is active";
              }
    
              leaf wait {
                type uint64;
                description
                  "Time left until reboot";
              }
    
              leaf when {
                type uint64;
                description
                  "Time to reboot in nanoseconds since the epoch";
              }
    
              leaf reason {
                type string;
                description "Reason for reboot";
              }
    
              leaf count {
                type uint32;
                description
                  "Number of reboots since active";
              }
            }  // container reboot-status-response
          }
        }  // rpc reboot-status-request
      }  // module Cisco-IOS-XR-system-reboot-act
    

© 2023 YumaWorks, Inc. All rights reserved.