Cisco-IOS-XR-erp-oper

This module contains a collection of YANG definitions for Cisco IOS-XR erp package operational data. This module contains defin...

  • Version: 2019-04-05

    Cisco-IOS-XR-erp-oper@2019-04-05


    
      module Cisco-IOS-XR-erp-oper {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XR-erp-oper";
    
        prefix erp-oper;
    
        import Cisco-IOS-XR-types {
          prefix xr;
        }
        import cisco-semver {
          prefix semver;
        }
    
        include Cisco-IOS-XR-erp-oper-sub1 {
          revision-date "2019-04-05";
        }
    
        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 erp package operational data.
    
    This module contains definitions
    for the following management objects:
      ethernet-ring: Ethernet Ring Protection operational data
    
    Copyright (c) 2013-2019 by Cisco Systems, Inc.
    All rights reserved.";
    
        revision "2019-04-05" {
          description
            "Establish semantic version baseline.";
        }
    
        revision "2015-11-09" {
          description "IOS XR 6.0 revision.";
        }
    
        semver:module-version "1.0.0";
    
        container ethernet-ring {
          config false;
          description
            "Ethernet Ring Protection operational data";
          container global {
            description
              "G.8032 Ethernet Ring Protection global
    operational data";
            container g8032 {
              description
                "G.8032 Ethernet Ring Protection operational
    data";
              container statuses {
                description
                  "Detailed status information for Ethernet ring";
                list status {
                  description
                    "Detailed status information on a particular
    ring instance";
                  leaf ring-name {
                    type xr:Cisco-ios-xr-string {
                      length "1..32";
                    }
                    description "Ring name";
                  }
    
                  leaf instance-id {
                    type uint32 {
                      range "1..2";
                    }
                    description
                      "Ring instance ID";
                  }
    
                  leaf node-type {
                    type Erp-bag-node;
                    description "Node Type";
                  }
    
                  leaf ring-state {
                    type Erp-sm-state;
                    description "Ring State";
                  }
    
                  leaf aps-level {
                    type uint8;
                    description "APS Level";
                  }
    
                  leaf profile-name {
                    type string;
                    description "Profile Name";
                  }
    
                  leaf wtr-timer {
                    type uint16;
                    units "minute";
                    description
                      "WTR Timer Value in minutes";
                  }
    
                  leaf hold-off-timer {
                    type uint16;
                    units "millisecond";
                    description
                      "Hold-off Timer Value in milliseconds";
                  }
    
                  leaf guard-timer {
                    type uint16;
                    units "second";
                    description
                      "Guard Timer Value in seconds";
                  }
    
                  leaf revertive-mode {
                    type Erp-revertive-mode;
                    description
                      "Revertive or Non-revertive Mode";
                  }
    
                  leaf aps-channel-topology {
                    type Erp-ring-mode;
                    description
                      "Open or Closed R-APS Topology";
                  }
    
                  list ports {
                    max-elements 2;
                    description
                      "Port Information";
                    leaf interface-name {
                      type string;
                      description
                        "Physical Interface Name";
                    }
    
                    leaf monitor-interface-name {
                      type string;
                      description
                        "Monitoring Interface Name";
                    }
    
                    leaf aps-channel {
                      type string;
                      description "APS Channel";
                    }
    
                    leaf link-type {
                      type Erp-link;
                      description
                        "RPL or Non-RPL";
                    }
    
                    leaf fault-detected {
                      type Erp-fault-status;
                      description
                        "Fault detected on interface";
                    }
    
                    leaf present {
                      type boolean;
                      description
                        "Interface is present";
                    }
    
                    leaf ring-port-status {
                      type Erp-port-status;
                      description
                        "Status of ring port";
                    }
    
                    leaf local-fs {
                      type boolean;
                      description
                        "Local forced switch of port";
                    }
    
                    leaf local-ms {
                      type boolean;
                      description
                        "Local manual switch of port";
                    }
    
                    leaf node {
                      type string;
                      description
                        "Remote R-APS Node ID";
                    }
    
                    leaf blocked-port-reference {
                      type uint8;
                      description
                        "Blocked Port Reference";
                    }
    
                    leaf interface-handle {
                      type uint64;
                      description
                        "Physical Interface Handle";
                    }
    
                    leaf monitor-interface-handle {
                      type uint64;
                      description
                        "Monitoring Interface Handle";
                    }
    
                    leaf aps-interface-handle {
                      type uint64;
                      description
                        "APS Interface Handle";
                    }
                  }  // list ports
                }  // list status
              }  // container statuses
    
              container profiles {
                description
                  "G.8032 Ethernet ring profile table";
                list profile {
                  key "profile-name";
                  description
                    "Ethernet ring profile information for a
    specified profile name";
                  leaf profile-name {
                    type xr:Cisco-ios-xr-string {
                      length "1..32";
                    }
                    description "Profile name";
                  }
    
                  leaf wtr-timer {
                    type uint16;
                    units "minute";
                    description
                      "WTR Timer Value in minutes";
                  }
    
                  leaf hold-off-timer {
                    type uint16;
                    units "millisecond";
                    description
                      "Hold-off Timer Value in milliseconds";
                  }
    
                  leaf guard-timer {
                    type uint16;
                    units "second";
                    description
                      "Guard Timer Value in seconds";
                  }
    
                  leaf revertive-mode {
                    type Erp-revertive-mode;
                    description
                      "Revertive/Non-revertive Mode";
                  }
                }  // list profile
              }  // container profiles
    
              container statistics {
                description
                  "Ethernet ring statistics for events and
    messages received";
                list statistic {
                  description
                    "Statistics for a particular ring instance";
                  leaf ring-name {
                    type xr:Cisco-ios-xr-string {
                      length "1..32";
                    }
                    description "Ring Name";
                  }
    
                  leaf instance-id {
                    type uint32 {
                      range "1..2";
                    }
                    description
                      "Ring instance ID";
                  }
    
                  container instance-statistics {
                    description
                      "Ring instance statistics information";
                    leaf init-time {
                      type string;
                      units "millisecond";
                      description
                        "Time the ring instance is last in Initialization
    state.  The time format is: Thu Jan 01 HH:MM:SS
    .000 ZZZ, where 000 is milliseconds and ZZZ is
    the timezone";
                    }
    
                    leaf idle-time {
                      type string;
                      units "millisecond";
                      description
                        "Time the ring instance is last in Idle state.
    The time format is: Thu Jan 01 HH:MM:SS.000 ZZZ,
    where 000 is milliseconds and ZZZ is the
    timezone";
                    }
    
                    leaf manual-switch-time {
                      type string;
                      units "millisecond";
                      description
                        "Time the ring instance is last in Manual Switch
    state.  The time format is: Thu Jan 01 HH:MM:SS
    .000 ZZZ, where 000 is milliseconds and ZZZ is
    the timezone";
                    }
    
                    leaf forced-switch-time {
                      type string;
                      units "millisecond";
                      description
                        "Time the ring instance is last in Forced Switch
    state.  The time format is: Thu Jan 01 HH:MM:SS
    .000 ZZZ, where 000 is milliseconds and ZZZ is
    the timezone";
                    }
    
                    leaf protection-time {
                      type string;
                      units "millisecond";
                      description
                        "Time the ring instance is last in Protection
    state.  The time format is: Thu Jan 01 HH:MM:SS
    .000 ZZZ, where 000 is milliseconds and ZZZ is
    the timezone";
                    }
    
                    leaf pending-time {
                      type string;
                      units "millisecond";
                      description
                        "Time the ring instance is last in Pending state.
    The time format is: Thu Jan 01 HH:MM:SS.000 ZZZ,
    where 000 is milliseconds and ZZZ is the
    timezone";
                    }
                  }  // container instance-statistics
    
                  list port-statistic {
                    max-elements 2;
                    description
                      "Port statistics information";
                    leaf local-sf {
                      type uint32;
                      description
                        "Count of local Signal Fail detected";
                    }
    
                    leaf nr-tx-count {
                      type uint32;
                      description
                        "Count of R-APS(NR) transmitted";
                    }
    
                    leaf nr-rb-tx-count {
                      type uint32;
                      description
                        "Count of R-APS(NR,RB) transmitted";
                    }
    
                    leaf sf-tx-count {
                      type uint32;
                      description
                        "Count of R-APS(SF) transmitted";
                    }
    
                    leaf ms-tx-count {
                      type uint32;
                      description
                        "Count of R-APS(MS) transmitted";
                    }
    
                    leaf fs-tx-count {
                      type uint32;
                      description
                        "Count of R-APS(FS) transmitted";
                    }
    
                    leaf ev-tx-count {
                      type uint32;
                      description
                        "Count of R-APS(EVENT) transmitted";
                    }
    
                    leaf nr-rx-count {
                      type uint32;
                      description
                        "Count of R-APS(NR) received";
                    }
    
                    leaf nr-rb-rx-count {
                      type uint32;
                      description
                        "Count of R-APS(NR,RB) received";
                    }
    
                    leaf sf-rx-count {
                      type uint32;
                      description
                        "Count of R-APS(SF) received";
                    }
    
                    leaf ms-rx-count {
                      type uint32;
                      description
                        "Count of R-APS(MS) received";
                    }
    
                    leaf fs-rx-count {
                      type uint32;
                      description
                        "Count of R-APS(FS) received";
                    }
    
                    leaf ev-rx-count {
                      type uint32;
                      description
                        "Count of R-APS(EVENT) received";
                    }
    
                    leaf last-nr-tx {
                      type string;
                      units "millisecond";
                      description
                        "Time the last R-APS(NR) was transmitted.  The
    time format is: Thu Jan 01 HH:MM:SS.000 ZZZ,
    where 000 is milliseconds and ZZZ is the
    timezone";
                    }
    
                    leaf last-nr-rb-tx {
                      type string;
                      units "millisecond";
                      description
                        "Time the last R-APS(NR,RB) was transmitted.  The
    time format is: Thu Jan 01 HH:MM:SS.000 ZZZ,
    where 000 is milliseconds and ZZZ is the
    timezone";
                    }
    
                    leaf last-sf-tx {
                      type string;
                      units "millisecond";
                      description
                        "Time the last R-APS(SF) was transmitted.  The
    time format is: Thu Jan 01 HH:MM:SS.000 ZZZ,
    where 000 is milliseconds and ZZZ is the
    timezone";
                    }
    
                    leaf last-ms-tx {
                      type string;
                      units "millisecond";
                      description
                        "Time the last R-APS(MS) was transmitted.  The
    time format is: Thu Jan 01 HH:MM:SS.000 ZZZ,
    where 000 is milliseconds and ZZZ is the
    timezone";
                    }
    
                    leaf last-fs-tx {
                      type string;
                      units "millisecond";
                      description
                        "Time the last R-APS(FS) was transmitted.  The
    time format is: Thu Jan 01 HH:MM:SS.000 ZZZ,
    where 000 is milliseconds and ZZZ is the
    timezone";
                    }
    
                    leaf last-ev-tx {
                      type string;
                      units "millisecond";
                      description
                        "Time the last R-APS(EVENT) was transmitted.  The
    time format is: Thu Jan 01 HH:MM:SS.000 ZZZ,
    where 000 is milliseconds and ZZZ is the
    timezone";
                    }
    
                    leaf last-nr-rx {
                      type string;
                      units "millisecond";
                      description
                        "Time the last R-APS(NR) was received.  The time
    format is: Thu Jan 01 HH:MM:SS.000 ZZZ, where
    000 is milliseconds and ZZZ is the timezone";
                    }
    
                    leaf last-nr-rb-rx {
                      type string;
                      units "millisecond";
                      description
                        "Time the last R-APS(NR,RB) was received.  The
    time format is: Thu Jan 01 HH:MM:SS.000 ZZZ,
    where 000 is milliseconds and ZZZ is the
    timezone";
                    }
    
                    leaf last-sf-rx {
                      type string;
                      units "millisecond";
                      description
                        "Time the last R-APS(SF) was received.  The time
    format is: Thu Jan 01 HH:MM:SS.000 ZZZ, where
    000 is milliseconds and ZZZ is the timezone";
                    }
    
                    leaf last-ms-rx {
                      type string;
                      units "millisecond";
                      description
                        "Time the last R-APS(MS) was received.  The time
    format is: Thu Jan 01 HH:MM:SS.000 ZZZ, where
    000 is milliseconds and ZZZ is the timezone";
                    }
    
                    leaf last-fs-rx {
                      type string;
                      units "millisecond";
                      description
                        "Time the last R-APS(FS) was received.  The time
    format is: Thu Jan 01 HH:MM:SS.000 ZZZ, where
    000 is milliseconds and ZZZ is the timezone";
                    }
    
                    leaf last-ev-rx {
                      type string;
                      units "millisecond";
                      description
                        "Time the last R-APS(EVENT) was received.  The
    time format is: Thu Jan 01 HH:MM:SS.000 ZZZ,
    where 000 is milliseconds and ZZZ is the
    timezone";
                    }
                  }  // list port-statistic
                }  // list statistic
              }  // container statistics
    
              container summary {
                description
                  "Summary count of Ethernet ring instances in
    each state";
                leaf node {
                  type string;
                  description "Device Node ID";
                }
    
                leaf init-state {
                  type uint16;
                  description
                    "Count of instances in Init state";
                }
    
                leaf idle-state {
                  type uint16;
                  description
                    "Count of instances in Idle state";
                }
    
                leaf manual-switch-state {
                  type uint16;
                  description
                    "Count of instances in Manual Switch state";
                }
    
                leaf forced-switch-state {
                  type uint16;
                  description
                    "Count of instances in Forced Switch state";
                }
    
                leaf protection-state {
                  type uint16;
                  description
                    "Count of instances in Protection state";
                }
    
                leaf pending-state {
                  type uint16;
                  description
                    "Count of instances in Pending state";
                }
              }  // container summary
    
              container briefs {
                description
                  "Brief functional state of Ethernet ring
    instances";
                list brief {
                  description
                    "Brief functional state on a particular ring
    instance";
                  leaf ring-name {
                    type xr:Cisco-ios-xr-string {
                      length "1..32";
                    }
                    description "Ring Name";
                  }
    
                  leaf instance-id {
                    type uint32 {
                      range "1..2";
                    }
                    description
                      "Ring instance ID";
                  }
    
                  leaf node-type {
                    type Erp-bag-node;
                    description "Node Type";
                  }
    
                  leaf ring-state {
                    type Erp-sm-state;
                    description "Ring State";
                  }
    
                  list ports {
                    max-elements 2;
                    description
                      "Port Information";
                    leaf interface-name {
                      type string;
                      description
                        "Physical Interface Name";
                    }
    
                    leaf monitor-interface-name {
                      type string;
                      description
                        "Monitoring Interface Name";
                    }
    
                    leaf aps-channel {
                      type string;
                      description "APS Channel";
                    }
    
                    leaf link-type {
                      type Erp-link;
                      description
                        "RPL or Non-RPL";
                    }
    
                    leaf fault-detected {
                      type Erp-fault-status;
                      description
                        "Fault detected on interface";
                    }
    
                    leaf present {
                      type boolean;
                      description
                        "Interface is present";
                    }
    
                    leaf ring-port-status {
                      type Erp-port-status;
                      description
                        "Status of ring port";
                    }
    
                    leaf local-fs {
                      type boolean;
                      description
                        "Local forced switch of port";
                    }
    
                    leaf local-ms {
                      type boolean;
                      description
                        "Local manual switch of port";
                    }
    
                    leaf node {
                      type string;
                      description
                        "Remote R-APS Node ID";
                    }
    
                    leaf blocked-port-reference {
                      type uint8;
                      description
                        "Blocked Port Reference";
                    }
    
                    leaf interface-handle {
                      type uint64;
                      description
                        "Physical Interface Handle";
                    }
    
                    leaf monitor-interface-handle {
                      type uint64;
                      description
                        "Monitoring Interface Handle";
                    }
    
                    leaf aps-interface-handle {
                      type uint64;
                      description
                        "APS Interface Handle";
                    }
                  }  // list ports
                }  // list brief
              }  // container briefs
            }  // container g8032
          }  // container global
        }  // container ethernet-ring
      }  // module Cisco-IOS-XR-erp-oper
    

© 2023 YumaWorks, Inc. All rights reserved.