This module contains a collection of YANG definitions for Cisco IOS-XR SysAdmin configuration. This module holds Shelf Manageme...
Version: 2020-10-08
module Cisco-IOS-XR-sysadmin-sm-hw-mod { yang-version 1; namespace "http://www.cisco.com/ns/yang/Cisco-IOS-XR-sysadmin-sm-hw-mod"; prefix shelf_sm_hw_mod; import tailf-common { prefix tailf; } import Cisco-IOS-XR-sysadmin-types { prefix calvados; } 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 SysAdmin configuration. This module holds Shelf Management HW module data. Copyright (c) 2012-2020 by Cisco Systems, Inc. All rights reserved."; revision "2020-10-08" { description "Added support to power reset a hardware module 2020-08-12 Added bootmedia diag-update option 2020-06-10 Added bootmedia onie-update option"; } revision "2019-04-15" { description "Establish semantic version baseline."; } revision "2017-04-12" { description "Changed namespace and module name"; } revision "2012-10-24" { description "Initial revision of the partition from sm.yang"; } semver:module-version "1.1.0"; semver:module-version "1.0.0"; grouping hw-module-config-group { uses hw-module-shutdown-config-group; uses hw-module-reset-auto-disable-config-group; uses hw-module-offline-config-group; } // grouping hw-module-config-group grouping hw-module-shutdown-config-group { container shutdown { list location { key "location"; leaf location { type calvados:location-id; mandatory true; } } // list location } // container shutdown } // grouping hw-module-shutdown-config-group grouping hw-module-reset-auto-disable-config-group { container reset { container auto { container disable { list location { key "location"; leaf location { type calvados:location-id; mandatory true; } } // list location } // container disable } // container auto } // container reset } // grouping hw-module-reset-auto-disable-config-group grouping hw-module-offline-config-group { container offline { list location { key "location"; leaf location { type calvados:location-id; mandatory true; } } // list location } // container offline } // grouping hw-module-offline-config-group grouping hw-module-action-group { uses hw-module-reload-action-group; uses hw-module-bootmedia-action-group; uses hw-module-shutdown-action-group; uses hw-module-offline-action-group; uses hw-module-online-action-group; uses hw-module-delayed-reboot-action-group; uses hw-module-reset-action-group; } // grouping hw-module-action-group grouping hw-module-bootmedia-action-group { container cbootmedia { config false; list bootmedia { tailf:action "reload" { output { leaf "result" { type "string"; mandatory "true"; } } } key "bootmedium"; config false; leaf bootmedium { type string; } } // list bootmedia } // container cbootmedia } // grouping hw-module-bootmedia-action-group grouping hw-module-reload-action-group { tailf:action "reload" { input { leaf "force" { type "empty"; mandatory "false"; } leaf "noprompt" { type "empty"; mandatory "false"; } leaf "warm" { type "empty"; mandatory "false"; } } output { leaf "result" { type "string"; mandatory "true"; } } } } // grouping hw-module-reload-action-group grouping hw-module-delayed-reboot-action-group { tailf:action "delayed_reload" { input { choice "delayed_reboot" { mandatory "true"; case "delayed_reload" { leaf "delay_time" { type "uint64"; default "0"; } leaf "reboottype" { type "enumeration" { enum "Cold"; enum "Warm"; enum "Shutdown"; } default "Cold"; mandatory "false"; } leaf "reboot_reason" { type "string"; mandatory "false"; } leaf "force" { type "boolean"; mandatory "false"; } leaf "noprompt" { type "empty"; mandatory "false"; } } } } output { leaf "result" { type "string"; mandatory "true"; } } } } // grouping hw-module-delayed-reboot-action-group grouping hw-module-shutdown-action-group { tailf:action "shutdown" { input { choice "shutdown_polarity" { mandatory "false"; case "shutdown" { leaf "force" { type "empty"; mandatory "false"; } } case "powerup" { leaf "disable" { type "empty"; mandatory "false"; } } } } output { leaf "result" { type "string"; mandatory "true"; } } } } // grouping hw-module-shutdown-action-group grouping hw-module-offline-action-group { tailf:action "offline" { output { leaf "result" { type "string"; mandatory "true"; } } } } // grouping hw-module-offline-action-group grouping hw-module-online-action-group { tailf:action "online" { output { leaf "result" { type "string"; mandatory "true"; } } } } // grouping hw-module-online-action-group grouping hw-module-reset-action-group { tailf:action "reset" { output { leaf "result" { type "string"; mandatory "true"; } } } } // grouping hw-module-reset-action-group } // module Cisco-IOS-XR-sysadmin-sm-hw-mod
© 2023 YumaWorks, Inc. All rights reserved.