Cisco-IOS-XE-switch-rpc

NED Switch RPC YANG module for IOS Copyright (c) 2016-2019 by Cisco Systems, Inc. All rights reserved.

  • Version: 2020-03-01

    Cisco-IOS-XE-switch-rpc@2020-03-01


    
      module Cisco-IOS-XE-switch-rpc {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XE-switch-rpc";
    
        prefix ios-xe-sw-rpc;
    
        import cisco-semver {
          prefix cisco-semver;
        }
        import Cisco-IOS-XE-rpc {
          prefix ios-xe-rpc;
        }
    
        organization "Cisco Systems";
    
        contact "<mailto:cs-yang@cisco.com>";
    
        description
          "NED Switch RPC YANG module for IOS
         Copyright (c) 2016-2019 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2020-03-01" {
          description "Added factory-reset";
        }
    
        revision "2019-11-01" {
          description
            "Added new augment statement";
        }
    
        revision "2019-07-01" {
          description
            "Establish semantic version baseline";
        }
    
        revision "2019-02-11" {
          description
            "increased stacking switch range from 9 to 16";
        }
    
        revision "2018-12-06" {
          description
            "created for NED RPC modularisation";
        }
    
        cisco-semver:module-version "1.2.0";
        cisco-semver:module-version "1.1.0";
        cisco-semver:module-version "1.0.0";
    
        rpc switch {
          input {
            leaf switch-number-drop-node-name {
              type uint8 {
                range "1..16";
              }
              mandatory true;
            }
    
            choice pri-renum-stack {
              mandatory true;
              leaf priority {
                type uint8 {
                  range "1..15";
                }
                description
                  "<1-15>  Switch Priority";
              }
              leaf renumber {
                type uint8 {
                  range "1..16";
                }
                description
                  "<1-16>  New number of the Switch";
              }
              container statck {
                leaf port {
                  type uint8 {
                    range "1..2";
                  }
                  description
                    "<1-2>  Stack port number to enable/disable";
                }
              }  // container statck
            }  // choice pri-renum-stack
          }
    
          output {
            uses ios-xe-rpc:cisco-xe-rpc-output;
          }
        }  // rpc switch
    
        augment /ios-xe-rpc:reload/ios-xe-rpc:input {
          leaf slot {
            type uint8 {
              range "1..16";
            }
            description
              "Slot number of RP or line card";
          }
        }
    
        augment /ios-xe-rpc:factory-reset/ios-xe-rpc:input {
          container switch {
            description "Switch in the system";
            choice switch-number-options {
              leaf switch-number-drop-node-name {
                type uint8 {
                  range "1..16";
                }
                description
                  "Switch number in the Stack";
              }
              container all-drop-node-name {
                leaf all {
                  type empty;
                  description
                    "All Switches in the Stack";
                }
              }  // container all-drop-node-name
            }  // choice switch-number-options
    
            choice clear-choice {
              container clear-all-drop-node-name {
                leaf all {
                  type empty;
                  description
                    "All factory reset operations";
                }
              }  // container clear-all-drop-node-name
              container all {
                container secure {
                  description "Secure";
                  leaf alt-name-3-pass {
                    type empty;
                    description "3-pass";
                  }
                }  // container secure
              }  // container all
              leaf boot-vars {
                type empty;
                description "boot-vars";
              }
              leaf config {
                type empty;
                description "config";
              }
            }  // choice clear-choice
          }  // container switch
        }
      }  // module Cisco-IOS-XE-switch-rpc
    

© 2023 YumaWorks, Inc. All rights reserved.