huawei-system-event-management

System Event Management (SEM).

  • Version: 2020-05-08

    huawei-system-event-management@2020-05-08


    
      module huawei-system-event-management {
    
        yang-version 1;
    
        namespace
          "urn:huawei:yang:huawei-system-event-management";
    
        prefix sem;
    
        import huawei-extension {
          prefix ext;
        }
    
        organization
          "Huawei Technologies Co., Ltd.";
    
        contact
          "Huawei Industrial Base
         Bantian, Longgang
         Shenzhen 518129
         People's Republic of China
         Website: http://www.huawei.com
         Email: support@huawei.com";
    
        description
          "System Event Management (SEM).";
    
        revision "2020-05-08" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "device-mgr";
    
        typedef slave-switch-mode {
          type enumeration {
            enum "enable" {
              value 0;
              description "Enable.";
            }
            enum "disable" {
              value 1;
              description "Disable.";
            }
          }
          description "Switchover enable type.";
        }
    
        typedef slave-switch-policy {
          type enumeration {
            enum "board-switchover" {
              value 0;
              description "Board switchover.";
            }
            enum "process-switchover" {
              value 1;
              description "Process switchover.";
            }
          }
          description "Switchover policy.";
        }
    
        container system-event-management {
          description
            "System Event Management (SEM).";
          container slave-switch {
            description "Configure swithover.";
            leaf enable {
              type slave-switch-mode;
              default "enable";
              description
                "Indicates whether to enable slave switch.";
            }
    
            leaf status {
              type string {
                length "1..80";
              }
              config false;
              description "Switchover status.";
            }
    
            leaf primary-board-position {
              type string {
                length "1..32";
              }
              config false;
              description
                "Master board position.";
            }
    
            leaf slave-board-position {
              type string {
                length "1..32";
              }
              config false;
              description
                "Slave board position.";
            }
          }  // container slave-switch
    
          container multi-chassis-slave-switch {
            description
              "Configure multi chassis swithover list.";
            list config {
              ext:operation-exclude "create|delete";
              ext:generated-by "system";
              key "chassis-name";
              description
                "Configure chassis swithover.";
              leaf chassis-name {
                type string {
                  length "1..31";
                }
                description "Chassis name.";
              }
    
              leaf enable {
                type slave-switch-mode;
                default "enable";
                description
                  "Indicates whether to enable slave switch.";
              }
            }  // list config
    
            list state {
              key "chassis-name";
              config false;
              description
                "Display chassis switchover state.";
              leaf chassis-name {
                type string {
                  length "0..31";
                }
                description "Chassis name.";
              }
    
              leaf status {
                type string {
                  length "1..80";
                }
                description "Switch state.";
              }
    
              leaf policy {
                type slave-switch-policy;
                description "Switchover status.";
              }
    
              leaf primary-board-position {
                type string {
                  length "0..32";
                }
                description
                  "Main board position.";
              }
    
              leaf slave-board-position {
                type string {
                  length "0..32";
                }
                description
                  "Slave board position.";
              }
            }  // list state
          }  // container multi-chassis-slave-switch
    
          container batch-backup-timeout {
            description
              "Configure batch backup timeout.";
            leaf self-healing-timeout {
              type uint32 {
                range "10..14400";
              }
              units "min";
              description
                "Self healing timeout.";
            }
          }  // container batch-backup-timeout
    
          container chassis-batch-backup-timeouts {
            description
              "List of chassis batch backup timeout configs.";
            list chassis-batch-backup-timeout {
              ext:generated-by "system";
              ext:operation-exclude "create";
              key "chassis-name";
              description
                "Configure chassis batch backup timeout.";
              leaf chassis-name {
                type string {
                  length "1..31";
                }
                description "Chassis name.";
              }
    
              leaf self-healing-timeout {
                type uint32 {
                  range "10..14400";
                }
                units "min";
                description
                  "Self healing timeout.";
              }
            }  // list chassis-batch-backup-timeout
          }  // container chassis-batch-backup-timeouts
    
          container os-groups {
            config false;
            description
              "List of OS group names.";
            list os-group {
              key "os-group-name";
              config false;
              description
                "Statistics of OS group name information.";
              leaf os-group-name {
                type string {
                  length "0..256";
                }
                config false;
                description
                  "Specify the name of an OS group.";
              }
    
              leaf board-id {
                ext:support-filter "true";
                type string {
                  length "0..256";
                }
                config false;
                description
                  "Specify the ID of a board.";
              }
            }  // list os-group
          }  // container os-groups
        }  // container system-event-management
    
        rpc switch-over-force {
          ext:node-ref "/sem/chassis-switch-states/chassis-switch-state";
          description "Switchover force.";
          input {
            leaf force-flag {
              type boolean;
              description "Force flag.";
            }
          }
        }  // rpc switch-over-force
    
        rpc switch-over-lock {
          ext:node-ref "/sem/chassis-switch-states/chassis-switch-state";
          description "Switchover lock.";
          input {
            leaf lock-flag {
              type boolean;
              description "Lock flag.";
            }
          }
        }  // rpc switch-over-lock
    
        rpc switch-over {
          description "Switch over.";
          input {
            leaf chassis-name {
              type string {
                length "1..31";
              }
              description "Chassis name.";
            }
    
            leaf position {
              type string {
                length "1..32";
              }
              description "Chassis position.";
            }
          }
        }  // rpc switch-over
      }  // module huawei-system-event-management
    

© 2023 YumaWorks, Inc. All rights reserved.