ietf-interfaces

This module contains a collection of YANG definitions for managing network interfaces. Copyright (c) 2014 IETF Trust and the pe...

  • Version: 2014-05-08

    ietf-interfaces@2014-05-08


    
      module ietf-interfaces {
    
        yang-version 1;
    
        namespace
          "urn:ietf:params:xml:ns:yang:ietf-interfaces";
    
        prefix if;
    
        import ietf-yang-types {
          prefix yang;
        }
    
        organization
          "IETF NETMOD (NETCONF Data Modeling Language) Working Group";
    
        contact
          "WG Web:   <http://tools.ietf.org/wg/netmod/>
    WG List:  <mailto:netmod@ietf.org>
    
    WG Chair: Thomas Nadeau
    	  <mailto:tnadeau@lucidvision.com>
    
    WG Chair: Juergen Schoenwaelder
    	  <mailto:j.schoenwaelder@jacobs-university.de>
    
    Editor:   Martin Bjorklund
    	  <mailto:mbj@tail-f.com>";
    
        description
          "This module contains a collection of YANG definitions for
    managing network interfaces.
    
    Copyright (c) 2014 IETF Trust and the persons identified as
    authors of the code.  All rights reserved.
    
    Redistribution and use in source and binary forms, with or
    without modification, is permitted pursuant to, and subject
    to the license terms contained in, the Simplified BSD License
    set forth in Section 4.c of the IETF Trust's Legal Provisions
    Relating to IETF Documents
    (http://trustee.ietf.org/license-info).
    
    This version of this YANG module is part of RFC 7223; see
    the RFC itself for full legal notices.";
    
        revision "2014-05-08" {
          description "Initial revision.";
          reference
            "RFC 7223: A YANG Data Model for Interface Management";
    
        }
    
    
        typedef interface-ref {
          type leafref {
            path "/if:interfaces/if:interface/if:name";
          }
          description
            "This type is used by data models that need to reference
    configured interfaces.";
        }
    
        typedef interface-state-ref {
          type leafref {
            path "/if:interfaces-state/if:interface/if:name";
          }
          description
            "This type is used by data models that need to reference
    the operationally present interfaces.";
        }
    
        identity interface-type {
          description
            "Base identity from which specific interface types are
    derived.";
        }
    
        feature arbitrary-names {
          description
            "This feature indicates that the device allows user-controlled
    interfaces to be named arbitrarily.";
        }
    
        feature pre-provisioning {
          description
            "This feature indicates that the device supports
    pre-provisioning of interface configuration, i.e., it is
    possible to configure an interface whose physical interface
    hardware is not present on the device.";
        }
    
        feature if-mib {
          description
            "This feature indicates that the device implements
    the IF-MIB.";
          reference
            "RFC 2863: The Interfaces Group MIB";
    
        }
    
        container interfaces {
          description
            "Interface configuration parameters.";
          list interface {
            key "name";
            description
              "The list of configured interfaces on the device.
    
    The operational state of an interface is available in the
    /interfaces-state/interface list.  If the configuration of a
    system-controlled interface cannot be used by the system
    (e.g., the interface hardware present does not match the
    interface type), then the configuration is not applied to
    the system-controlled interface shown in the
    /interfaces-state/interface list.  If the configuration
    of a user-controlled interface cannot be used by the system,
    the configured interface is not instantiated in the
    /interfaces-state/interface list.";
            leaf name {
              type string;
              description
                "The name of the interface.
    
    A device MAY restrict the allowed values for this leaf,
    possibly depending on the type of the interface.
    
    For system-controlled interfaces, this leaf is the
    device-specific name of the interface.  The 'config false'
    list /interfaces-state/interface contains the currently
    existing interfaces on the device.
    
    If a client tries to create configuration for a
    system-controlled interface that is not present in the
    /interfaces-state/interface list, the server MAY reject
    the request if the implementation does not support
    pre-provisioning of interfaces or if the name refers to
    an interface that can never exist in the system.  A
    NETCONF server MUST reply with an rpc-error with the
    error-tag 'invalid-value' in this case.
    
    If the device supports pre-provisioning of interface
    configuration, the 'pre-provisioning' feature is
    advertised.
    
    If the device allows arbitrarily named user-controlled
    interfaces, the 'arbitrary-names' feature is advertised.
    
    When a configured user-controlled interface is created by
    the system, it is instantiated with the same name in the
    /interface-state/interface list.";
            }
    
            leaf description {
              type string;
              description
                "A textual description of the interface.
    
    A server implementation MAY map this leaf to the ifAlias
    MIB object.  Such an implementation needs to use some
    mechanism to handle the differences in size and characters
    allowed between this leaf and ifAlias.  The definition of
    such a mechanism is outside the scope of this document.
    
    Since ifAlias is defined to be stored in non-volatile
    storage, the MIB implementation MUST map ifAlias to the
    value of 'description' in the persistently stored
    datastore.
    
    Specifically, if the device supports ':startup', when
    ifAlias is read the device MUST return the value of
    'description' in the 'startup' datastore, and when it is
    written, it MUST be written to the 'running' and 'startup'
    datastores.  Note that it is up to the implementation to
    
    decide whether to modify this single leaf in 'startup' or
    perform an implicit copy-config from 'running' to
    'startup'.
    
    If the device does not support ':startup', ifAlias MUST
    be mapped to the 'description' leaf in the 'running'
    datastore.";
              reference
                "RFC 2863: The Interfaces Group MIB - ifAlias";
    
            }
    
            leaf type {
              type identityref {
                base interface-type;
              }
              mandatory true;
              description
                "The type of the interface.
    
    When an interface entry is created, a server MAY
    initialize the type leaf with a valid value, e.g., if it
    is possible to derive the type from the name of the
    interface.
    
    If a client tries to set the type of an interface to a
    value that can never be used by the system, e.g., if the
    type is not supported or if the type does not match the
    name of the interface, the server MUST reject the request.
    A NETCONF server MUST reply with an rpc-error with the
    error-tag 'invalid-value' in this case.";
              reference
                "RFC 2863: The Interfaces Group MIB - ifType";
    
            }
    
            leaf enabled {
              type boolean;
              default "true";
              description
                "This leaf contains the configured, desired state of the
    interface.
    
    Systems that implement the IF-MIB use the value of this
    leaf in the 'running' datastore to set
    IF-MIB.ifAdminStatus to 'up' or 'down' after an ifEntry
    has been initialized, as described in RFC 2863.
    
    Changes in this leaf in the 'running' datastore are
    reflected in ifAdminStatus, but if ifAdminStatus is
    changed over SNMP, this leaf is not affected.";
              reference
                "RFC 2863: The Interfaces Group MIB - ifAdminStatus";
    
            }
    
            leaf link-up-down-trap-enable {
              if-feature if-mib;
              type enumeration {
                enum "enabled" {
                  value 1;
                }
                enum "disabled" {
                  value 2;
                }
              }
              description
                "Controls whether linkUp/linkDown SNMP notifications
    should be generated for this interface.
    
    If this node is not configured, the value 'enabled' is
    operationally used by the server for interfaces that do
    not operate on top of any other interface (i.e., there are
    no 'lower-layer-if' entries), and 'disabled' otherwise.";
              reference
                "RFC 2863: The Interfaces Group MIB -
                	  ifLinkUpDownTrapEnable";
    
            }
    
            container odu {
              when
                "../if:type = 'ianaift:otnOdu'";
              presence
                "Attribute Nodes for Optical Data Unit (ODU)";
              description
                "Optical Channel Data Unit (ODU)";
              leaf ains {
                type ains-state;
                default "disabled";
              }
    
              leaf vstimer {
                when "../ains = 'enabled'";
                type vstimer;
              }
    
              leaf ACTVST {
                when "../ains = 'enabled'";
                type string;
                config false;
              }
    
              leaf actual-vstimer {
                type string {
                  pattern
                    '([0-4][0-8])-([0-5][0-9])';
                }
                config false;
                description
                  "The amount of time a valid state timer has been running uninterrupted.
    This timer is in the format <hh>-<mm>.";
              }
    
              leaf testsignal {
                type enumeration {
                  enum "disabled" {
                    value 0;
                    description
                      "testsignal not connected";
                  }
                  enum "enabled" {
                    value 1;
                    description
                      "testsignal connected";
                  }
                }
                default "disabled";
                description
                  "testsignal connect and disconnect";
              }
    
              leaf testPattern {
                when "../testsignal = 'enabled'";
                type enumeration {
                  enum "PRBS" {
                    value 0;
                    description
                      "Unframed, inverted PN-31 pattern or PRBS31 pattern per IEEE 802.3 clause 50.3.8.2 (inverted PN-31at line rate)";
                  }
                  enum "PRBS31" {
                    value 1;
                    description
                      "PRBS31 with standard mapping per G.709";
                  }
                  enum "PRBS23" {
                    value 2;
                    description
                      "SONET/SDH Framed,inverted PN-23 pattern.";
                  }
                  enum "PRZEROS" {
                    value 3;
                    description
                      "pseudo-random with zeros data pattern per IEEE 802.3 clause 49.2.8";
                  }
                  enum "IDLE" {
                    value 4;
                    description
                      "Scrambled IDLE test-pattern per IEEE 802.3ba";
                  }
                  enum "PRBS7" {
                    value 5;
                    description
                      "PRBS7 non-standard mapping for 8B/10B encoded pattern";
                  }
                }
                description
                  "Set test signal pattern";
              }
    
              leaf testsignal-type {
                when "../testsignal = 'enabled'";
                type enumeration {
                  enum "fac" {
                    value 0;
                    description
                      "test signal in the facility direction";
                  }
                  enum "term" {
                    value 1;
                    description
                      "test signal in the terminal direction";
                  }
                }
                default "fac";
                description
                  "Set test signal type (or direction).";
              }
    
              leaf bitErrors {
                when
                  "../testsignal = 'enabled' and ../testsignal-type = 'fac'";
                type uint32 {
                  range "0..4294967295";
                }
                config false;
                description
                  "bit errors for test signal in facility direction.";
              }
    
              leaf bitErrorsTerminal {
                when
                  "../testsignal = 'enabled' and ../testsignal-type = 'term'";
                type uint32 {
                  range "0..4294967295";
                }
                config false;
                description
                  "bit errors for test signal in terminal direction.";
              }
    
              leaf syncSeconds {
                when
                  "../testsignal = 'enabled' and ../testsignal-type = 'fac'";
                type string;
                config false;
                description
                  "number of seconds the received facility test signal is in sync.";
              }
    
              leaf syncSecondsTerminal {
                when
                  "../testsignal = 'enabled' and ../testsignal-type = 'term'";
                type string;
                config false;
                description
                  "number of seconds the received terminal test signal is in sync.";
              }
    
              leaf rate {
                type identityref {
                  base odu-rate-identity;
                }
                description
                  "rate identity of the ODU. 'identityref' is used
    to allow to extend for future higher rates";
              }
    
              leaf oduflexcbr-service {
                when
                  "../rate = 'odu:ODUflexCBR'";
                type identityref {
                  base odu-cbr-identity;
                }
                mandatory true;
                description
                  "cbr service identity of ODUflex. 'identityref' is used
    to allow to extend";
              }
    
              leaf oduflex-gfp-num-ts {
                when
                  "../rate = 'odu:ODUflexGFP'";
                type uint8 {
                  range "1..80";
                }
                mandatory true;
                description
                  "No of timeslots allowed when ODUflex-gfp";
              }
    
              leaf oduflex-rate {
                type decimal64 {
                  fraction-digits 3;
                }
                config false;
                description
                  "ODUflex client rate";
              }
    
              leaf oper-status {
                type oper-status;
                config false;
                description
                  "The current operational state of the interface.
    
    This leaf has the same semantics as ifOperStatus.";
              }
    
              leaf admin-status {
                type admin-status;
                default "down";
                description
                  "The desired state of the interface.
    
    This leaf has the same read semantics as ifAdminStatus.";
              }
    
              leaf circuit-id {
                type string {
                  length "0..45";
                }
                description
                  "circuit identifier/user label";
              }
    
              leaf direction {
                type enumeration {
                  enum "uni-rx" {
                    value 0;
                    description
                      "unidirectional receive only";
                  }
                  enum "uni-tx" {
                    value 1;
                    description
                      "unidirectional transmit only";
                  }
                  enum "bi" {
                    value 2;
                    description "bidirectional";
                  }
                }
                description
                  "direction of interface";
              }
    
              leaf tx-clock-source {
                type enumeration {
                  enum "through" {
                    value 0;
                    description
                      "Timing is passed through";
                  }
                  enum "internal" {
                    value 1;
                    description
                      "Timed from freerunning internal oscillator";
                  }
                  enum "system" {
                    value 2;
                    description
                      "Timed from system active clock reference";
                  }
                }
                description
                  "Transmit Clock - Specifies souce of ODU transit timing";
              }
    
              leaf ais-pt {
                type enumeration {
                  enum "ais" {
                    value 0;
                    description
                      "use AIS-ODU for escalation";
                  }
                  enum "csf" {
                    value 1;
                    description
                      "use CSF-OPU for escalation";
                  }
                }
                description
                  "alarm escalation setting";
              }
    
              container tx-ftfl {
                description
                  "Transmit Fault Type Fault Location (FTFL)";
                leaf fw-op-id {
                  type string {
                    length "0..9";
                  }
                  description
                    "Forward Operator Indentifier sub field of the backward and forward fields
    in the FTFL message";
                }
    
                leaf fw-op-spec {
                  type string {
                    length "0..118";
                  }
                  description
                    "Forward Operator Specific sub field of the backward and forward fields
    in the FTFL message";
                }
    
                leaf bw-op-id {
                  type string {
                    length "0..9";
                  }
                  description
                    "Backward Operator Indentifier sub field of the backward and forward fields
    in the FTFL message";
                }
    
                leaf bw-op-spec {
                  type string {
                    length "0..118";
                  }
                  description
                    "Backward Operator Specific sub field of the backward and forward fields
    in the FTFL message";
                }
              }  // container tx-ftfl
    
              container rx-ftfl {
                config false;
                description
                  "Receive Fault Type Fault Location (FTFL)";
                leaf fw-op-id {
                  type string {
                    length "0..9";
                  }
                  description
                    "Forward Operator Indentifier sub field of the backward and forward fields
    in the FTFL message";
                }
    
                leaf fw-op-spec {
                  type string {
                    length "0..118";
                  }
                  description
                    "Forward Operator Specific sub field of the backward and forward fields
    in the FTFL message";
                }
    
                leaf bw-op-id {
                  type string {
                    length "0..9";
                  }
                  description
                    "Backward Operator Indentifier sub field of the backward and forward fields
    in the FTFL message";
                }
    
                leaf bw-op-spec {
                  type string {
                    length "0..118";
                  }
                  description
                    "Backward Operator Specific sub field of the backward and forward fields
    in the FTFL message";
                }
    
                leaf fw-flt-typ {
                  type uint8 {
                    range "0..255";
                  }
                  description
                    "Forward Fault Type sub field of the backward and forward fields
    in the FTFL message";
                }
    
                leaf bw-flt-typ {
                  type uint8 {
                    range "0..255";
                  }
                  description
                    "Backward Fault Type sub field of the backward and forward fields
    in the FTFL message";
                }
              }  // container rx-ftfl
    
              leaf monitoring-mode {
                type enumeration {
                  enum "not-terminated" {
                    value 0;
                    description
                      "Not Terminated: no detection or generation.
    Overhead is passed through the interface transparently in receive direction";
                  }
                  enum "terminated" {
                    value 1;
                    description
                      "Terminated: detection and generation enabled.
    Overhead is erased (replaced with all zeros) in receive direction";
                  }
                  enum "monitored" {
                    value 2;
                    description
                      "Monitored: detection enabled.
    Overhead is passed through the interface transparently in receive direction";
                  }
                }
                description
                  "Monitoring mode of the ODU Overhead";
              }
    
              leaf auto-rx {
                type boolean;
                description
                  "enable/disable generation of transient condition when
    the value of the TTI changes.";
              }
    
              leaf auto-tx {
                type boolean;
                description
                  "enable/disable automatic population of outgoing TTI";
              }
    
              choice standard {
                default "itu";
                description
                  "choice between ANSI Trail Trace Identifier and
    ITU-T Trail Trace Identifer (SAPI, DAPI, OperatorSpecific)";
                container tti-itu {
                  description
                    "ITU-T Trail Trace Identifer (SAPI, DAPI, OperatorSpecific)";
                  container tx-tti {
                    description
                      "Transmitted Trail Trace Identifier";
                    leaf sapi {
                      type itu-otn-tti-sapi;
                      description
                        "Source Access Point Identifier";
                    }
    
                    leaf dapi {
                      type itu-otn-tti-dapi;
                      description
                        "Destination Access Point Identifier";
                    }
    
                    leaf op-spec {
                      type itu-otn-tti-op-spec;
                      description
                        "TTI Operator Spec";
                    }
                  }  // container tx-tti
    
                  container rx-tti {
                    config false;
                    description
                      "Received Trail Trace Identifier";
                    leaf sapi {
                      type itu-otn-oper-tti-sapi;
                      description
                        "Source Access Point Identifier";
                    }
    
                    leaf dapi {
                      type itu-otn-oper-tti-dapi;
                      description
                        "Destination Access Point Identifier";
                    }
    
                    leaf op-spec {
                      type itu-otn-oper-tti-op-spec;
                      description
                        "TTI Operator Spec";
                    }
                  }  // container rx-tti
    
                  container exp-tti {
                    description
                      "Expected Trail Trace Identifier";
                    leaf sapi {
                      type itu-otn-tti-sapi;
                      description
                        "Source Access Point Identifier";
                    }
    
                    leaf dapi {
                      type itu-otn-tti-dapi;
                      description
                        "Destination Access Point Identifier";
                    }
    
                    leaf op-spec {
                      type itu-otn-tti-op-spec;
                      description
                        "TTI Operator Spec";
                    }
                  }  // container exp-tti
    
                  leaf tim-det-mode {
                    type itu-tim-det-mode;
                    description
                      "TIM detection mode";
                  }
    
                  leaf tim-act-enabled {
                    type boolean;
                    description
                      "Enables TTI Mismatch consequent actions.";
                  }
                }  // container tti-itu
                container tti-ansi {
                  description
                    "ANSI Trail Trace Identifer";
                  container tx-tti {
                    description
                      "Transmitted Trail Trace Identifier";
                    leaf tti {
                      type ansi-otn-tti;
                      description
                        "Trail Trace Identifier";
                    }
                  }  // container tx-tti
    
                  container rx-tti {
                    config false;
                    description
                      "Received Trail Trace Identifier";
                    leaf tti {
                      type ansi-otn-tti;
                      description
                        "Trail Trace Identifier";
                    }
                  }  // container rx-tti
    
                  container exp-tti {
                    description
                      "Expected Trail Trace Identifier";
                    leaf tti {
                      type ansi-otn-tti;
                      description
                        "Trail Trace Identifier";
                    }
                  }  // container exp-tti
    
                  leaf tim-act-enabled {
                    type boolean;
                    description
                      "Enables TTI Mismatch consequent actions.";
                  }
                }  // container tti-ansi
              }  // choice standard
    
              leaf degthr {
                type int16 {
                  range "-9..2";
                }
                default "0";
                description
                  "DEGTHR:Degraded defect one-second Errored Block Count threshold
    DEGTHR specifies the exponent part X of 10^X [%].";
              }
    
              leaf degm {
                type int8 {
                  range "2..10";
                }
                default "10";
                description
                  "DEGM:Degraded defect consecutive one-second monitoring intervals";
              }
    
              leaf proactive-DM {
                type boolean;
                description
                  "enable/disable proactive Delay Measurement";
              }
    
              leaf gcc0-pass-through {
                type boolean;
                description
                  "If this attribute is set to false, GCC0 bytes are terminated.
    If set to true, GCC0 bytes are tunneled; if traffic is looped back
    GCC0 bytes will also be looped back.";
              }
    
              list tcm {
                key "layer tcm-direction";
                max-elements 6;
                description
                  "Tandem Connection Management";
                leaf layer {
                  type uint8 {
                    range "1..6";
                  }
                  description "TCM layer";
                }
    
                leaf extension {
                  type enumeration {
                    enum "normal" {
                      value 0;
                    }
                    enum "erase" {
                      value 1;
                    }
                    enum "passthrough" {
                      value 2;
                    }
                  }
                  description "TCM extension";
                }
    
                leaf monitoring-mode {
                  type enumeration {
                    enum "not-terminated" {
                      value 0;
                      description
                        "Not Terminated: no detection or generation.
    Overhead is passed through the interface transparently in receive direction
    unless extension is set for erase";
                    }
                    enum "terminated" {
                      value 1;
                      description
                        "Terminated: detection and generation enabled.
    Overhead is erased (replaced with all zeros) in receive direction, unless
    extension is set to passthrough";
                    }
                    enum "monitored" {
                      value 2;
                      description
                        "Monitored: detection enabled.
    Overhead is passed through the interface transparently in receive direction
    unless extension is set for erase";
                    }
                  }
                  description
                    "Monitoring mode of the TCM layer";
                }
    
                leaf ltc-act-enabled {
                  type boolean;
                  description
                    "enable/disable alarm transfer on detection of LTC";
                }
    
                leaf auto-rx {
                  type boolean;
                  description
                    "enable/disable generation of transient condition when
    the value of the TTI changes.";
                }
    
                leaf auto-tx {
                  type boolean;
                  description
                    "enable/disable automatic population of outgoing TTI";
                }
    
                choice standard {
                  default "itu";
                  description
                    "choice between ANSI Trail Trace Identifier and
    ITU-T Trail Trace Identifer (SAPI, DAPI, OperatorSpecific)";
                  container tti-itu {
                    description
                      "ITU-T Trail Trace Identifer (SAPI, DAPI, OperatorSpecific)";
                    container tx-tti {
                      description
                        "Transmitted Trail Trace Identifier";
                      leaf sapi {
                        type itu-otn-tti-sapi;
                        description
                          "Source Access Point Identifier";
                      }
    
                      leaf dapi {
                        type itu-otn-tti-dapi;
                        description
                          "Destination Access Point Identifier";
                      }
    
                      leaf op-spec {
                        type itu-otn-tti-op-spec;
                        description
                          "TTI Operator Spec";
                      }
                    }  // container tx-tti
    
                    container rx-tti {
                      config false;
                      description
                        "Received Trail Trace Identifier";
                      leaf sapi {
                        type itu-otn-oper-tti-sapi;
                        description
                          "Source Access Point Identifier";
                      }
    
                      leaf dapi {
                        type itu-otn-oper-tti-dapi;
                        description
                          "Destination Access Point Identifier";
                      }
    
                      leaf op-spec {
                        type itu-otn-oper-tti-op-spec;
                        description
                          "TTI Operator Spec";
                      }
                    }  // container rx-tti
    
                    container exp-tti {
                      description
                        "Expected Trail Trace Identifier";
                      leaf sapi {
                        type itu-otn-tti-sapi;
                        description
                          "Source Access Point Identifier";
                      }
    
                      leaf dapi {
                        type itu-otn-tti-dapi;
                        description
                          "Destination Access Point Identifier";
                      }
    
                      leaf op-spec {
                        type itu-otn-tti-op-spec;
                        description
                          "TTI Operator Spec";
                      }
                    }  // container exp-tti
    
                    leaf tim-det-mode {
                      type itu-tim-det-mode;
                      description
                        "TIM detection mode";
                    }
    
                    leaf tim-act-enabled {
                      type boolean;
                      description
                        "Enables TTI Mismatch consequent actions.";
                    }
                  }  // container tti-itu
                  container tti-ansi {
                    description
                      "ANSI Trail Trace Identifer";
                    container tx-tti {
                      description
                        "Transmitted Trail Trace Identifier";
                      leaf tti {
                        type ansi-otn-tti;
                        description
                          "Trail Trace Identifier";
                      }
                    }  // container tx-tti
    
                    container rx-tti {
                      config false;
                      description
                        "Received Trail Trace Identifier";
                      leaf tti {
                        type ansi-otn-tti;
                        description
                          "Trail Trace Identifier";
                      }
                    }  // container rx-tti
    
                    container exp-tti {
                      description
                        "Expected Trail Trace Identifier";
                      leaf tti {
                        type ansi-otn-tti;
                        description
                          "Trail Trace Identifier";
                      }
                    }  // container exp-tti
    
                    leaf tim-act-enabled {
                      type boolean;
                      description
                        "Enables TTI Mismatch consequent actions.";
                    }
                  }  // container tti-ansi
                }  // choice standard
    
                leaf degthr {
                  type int16 {
                    range "-9..2";
                  }
                  default "0";
                  description
                    "DEGTHR:Degraded defect one-second Errored Block Count threshold
    DEGTHR specifies the exponent part X of 10^X [%].";
                }
    
                leaf degm {
                  type int8 {
                    range "2..10";
                  }
                  default "10";
                  description
                    "DEGM:Degraded defect consecutive one-second monitoring intervals";
                }
    
                leaf proactive-DM {
                  type boolean;
                  description
                    "enable/disable proactive Delay Measurement";
                }
    
                leaf tcm-direction {
                  type enumeration {
                    enum "up-tcm" {
                      value 0;
                      description
                        "TCM termination direction faces the switch fabric.";
                    }
                    enum "down-tcm" {
                      value 1;
                      description
                        "TCM termination direction faces the facility";
                    }
                  }
                  description
                    "Direction of TCM.";
                }
    
                container pm {
                  description
                    "Performance Monitoring Info";
                  list pm-threshold {
                    key "pm-name pm-location pm-direction";
                    description
                      "List of PMs thresholds for the parent entity.";
                    leaf pm-name {
                      type pm-identity;
                    }
    
                    leaf pm-location {
                      type pm-location;
                    }
    
                    leaf pm-direction {
                      type pm-direction;
                    }
    
                    leaf pm-type {
                      type pm-type;
                    }
    
                    container pm-th-metered {
                      when
                        "../pm-type = 'metered'";
                      leaf pm-th-type {
                        type enumeration {
                          enum "auto" {
                            value 0;
                            description
                              "HW autoprovisioned";
                          }
                          enum "user" {
                            value 1;
                            description
                              "User-provisioned";
                          }
                        }
                        default "auto";
                      }
    
                      leaf pm-th-low {
                        when
                          "../pm-th-type = 'user'";
                        type pm-data-type;
                        mandatory true;
                      }
    
                      leaf pm-th-high {
                        when
                          "../pm-th-type = 'user'";
                        type pm-data-type;
                        mandatory true;
                      }
                    }  // container pm-th-metered
    
                    container pm-th-binned {
                      when
                        "../pm-type = 'binned'";
                      list pm-time-periods {
                        key "pm-time-period";
                        leaf pm-time-period {
                          type pm-time-period;
                        }
    
                        leaf pm-value {
                          type pm-data-type;
                          mandatory true;
                        }
                      }  // list pm-time-periods
                    }  // container pm-th-binned
                  }  // list pm-threshold
    
                  list pm-oper-range {
                    key "pm-name pm-location pm-direction";
                    config false;
                    ordered-by user;
                    leaf pm-name {
                      type pm-identity;
                    }
    
                    leaf pm-location {
                      type pm-location;
                    }
    
                    leaf pm-direction {
                      type pm-direction;
                    }
    
                    leaf pm-alarm-low {
                      type pm-data-type;
                      description
                        "PM Alarm Detect Low";
                    }
    
                    leaf pm-alarm-high {
                      type pm-data-type;
                      description
                        "PM Alarm Detect High";
                    }
    
                    leaf pm-capability-min {
                      type pm-data-type;
                      description
                        "PM Operating Range Low";
                    }
    
                    leaf pm-capability-max {
                      type pm-data-type;
                      description
                        "PM Operating Range High";
                    }
    
                    leaf pm-warning-low {
                      type pm-data-type;
                      description
                        "PM Threshold Low";
                    }
    
                    leaf pm-warning-high {
                      type pm-data-type;
                      description
                        "PM Threshold High";
                    }
                  }  // list pm-oper-range
                }  // container pm
              }  // list tcm
    
              container opu {
                description
                  "Optical Channel Payload Unit (OPU)";
                leaf payload-type {
                  type string {
                    length "2";
                    pattern '[0-9a-fA-F]*';
                  }
                  description "Payload Type";
                }
    
                leaf rx-payload-type {
                  type string {
                    length "2";
                    pattern '[0-9a-fA-F]*';
                  }
                  config false;
                  description
                    "Received Payload Type";
                }
    
                leaf exp-payload-type {
                  type string {
                    length "2";
                    pattern '[0-9a-fA-F]*';
                  }
                  description
                    "Expected Payload Type";
                }
    
                container msi {
                  when
                    "../payload-type = '20' or ../payload-type = '21'";
                  list tx-msi {
                    key "trib-slot";
                    config false;
                    description "Transmit MSI";
                    leaf trib-slot {
                      type uint16;
                      description
                        "tributary slot (TS)";
                    }
    
                    leaf odtu-type {
                      type identityref {
                        base odtu-type-identity;
                      }
                      description
                        "ODTU type, part of the MSI (Multiplex Structure Identifier)";
                    }
    
                    leaf trib-port {
                      type uint16;
                      description
                        "Tributary Port Number (0-based), part of the MSI";
                    }
                  }  // list tx-msi
    
                  list rx-msi {
                    key "trib-slot";
                    config false;
                    description "Receive MSI";
                    leaf trib-slot {
                      type uint16;
                      description
                        "tributary slot (TS)";
                    }
    
                    leaf odtu-type {
                      type identityref {
                        base odtu-type-identity;
                      }
                      description
                        "ODTU type, part of the MSI (Multiplex Structure Identifier)";
                    }
    
                    leaf trib-port {
                      type uint16;
                      description
                        "Tributary Port Number (0-based), part of the MSI";
                    }
                  }  // list rx-msi
    
                  list exp-msi {
                    key "trib-slot";
                    config false;
                    description "Expected MSI";
                    leaf trib-slot {
                      type uint16;
                      description
                        "tributary slot (TS)";
                    }
    
                    leaf odtu-type {
                      type identityref {
                        base odtu-type-identity;
                      }
                      description
                        "ODTU type, part of the MSI (Multiplex Structure Identifier)";
                    }
    
                    leaf trib-port {
                      type uint16;
                      description
                        "Tributary Port Number (0-based), part of the MSI";
                    }
                  }  // list exp-msi
                }  // container msi
              }  // container opu
    
              container parent-odu-allocation {
                presence
                  "Attributes for LO-ODU Allocation in its parent OPU";
                leaf trib-port-number {
                  type trib-resource-type;
                  mandatory true;
                  description
                    "Tributary port number in parent OPU MSI";
                }
    
                leaf-list trib-slots {
                  type trib-resource-type;
                  min-elements 1;
                  max-elements 80;
                  description
                    "Trib slots occupied in parent OPU MSI";
                }
              }  // container parent-odu-allocation
    
              container pm {
                description
                  "Performance Monitoring Info";
                list pm-threshold {
                  key "pm-name pm-location pm-direction";
                  description
                    "List of PMs thresholds for the parent entity.";
                  leaf pm-name {
                    type pm-identity;
                  }
    
                  leaf pm-location {
                    type pm-location;
                  }
    
                  leaf pm-direction {
                    type pm-direction;
                  }
    
                  leaf pm-type {
                    type pm-type;
                  }
    
                  container pm-th-metered {
                    when
                      "../pm-type = 'metered'";
                    leaf pm-th-type {
                      type enumeration {
                        enum "auto" {
                          value 0;
                          description
                            "HW autoprovisioned";
                        }
                        enum "user" {
                          value 1;
                          description
                            "User-provisioned";
                        }
                      }
                      default "auto";
                    }
    
                    leaf pm-th-low {
                      when
                        "../pm-th-type = 'user'";
                      type pm-data-type;
                      mandatory true;
                    }
    
                    leaf pm-th-high {
                      when
                        "../pm-th-type = 'user'";
                      type pm-data-type;
                      mandatory true;
                    }
                  }  // container pm-th-metered
    
                  container pm-th-binned {
                    when "../pm-type = 'binned'";
                    list pm-time-periods {
                      key "pm-time-period";
                      leaf pm-time-period {
                        type pm-time-period;
                      }
    
                      leaf pm-value {
                        type pm-data-type;
                        mandatory true;
                      }
                    }  // list pm-time-periods
                  }  // container pm-th-binned
                }  // list pm-threshold
    
                list pm-oper-range {
                  key "pm-name pm-location pm-direction";
                  config false;
                  ordered-by user;
                  leaf pm-name {
                    type pm-identity;
                  }
    
                  leaf pm-location {
                    type pm-location;
                  }
    
                  leaf pm-direction {
                    type pm-direction;
                  }
    
                  leaf pm-alarm-low {
                    type pm-data-type;
                    description
                      "PM Alarm Detect Low";
                  }
    
                  leaf pm-alarm-high {
                    type pm-data-type;
                    description
                      "PM Alarm Detect High";
                  }
    
                  leaf pm-capability-min {
                    type pm-data-type;
                    description
                      "PM Operating Range Low";
                  }
    
                  leaf pm-capability-max {
                    type pm-data-type;
                    description
                      "PM Operating Range High";
                  }
    
                  leaf pm-warning-low {
                    type pm-data-type;
                    description
                      "PM Threshold Low";
                  }
    
                  leaf pm-warning-high {
                    type pm-data-type;
                    description
                      "PM Threshold High";
                  }
                }  // list pm-oper-range
              }  // container pm
    
              leaf lpg-name {
                type string;
                description "SNCP Line PG Name";
              }
    
              leaf ppg-name {
                type string;
                description "SNCP Path PG Name";
              }
    
              list from-xcon-name {
                key "xcon-name";
                leaf xcon-name {
                  type string;
                }
              }  // list from-xcon-name
    
              list to-xcon-name {
                key "xcon-name";
                leaf xcon-name {
                  type string;
                }
              }  // list to-xcon-name
    
              leaf-list trib-slots-hidden {
                type trib-resource-type;
                max-elements 80;
                description
                  "Trib slots occupied in parent OPU MSIdden";
              }
    
              leaf-list trib-ports-hidden {
                type trib-resource-type;
                max-elements 80;
                description
                  "Trib port occupied in parent OPU MSIdden";
              }
    
              leaf bdi-cross-coupling-id {
                if-feature bdi-cross-coupling;
                type uint32;
                description
                  "BDI Cross Coupling ID.";
              }
    
              list allTcmList {
                key "oduIfName tcmLayer tcmDirn";
                leaf oduIfName {
                  type string;
                }
    
                leaf tcmLayer {
                  type uint8;
                }
    
                leaf tcmDirn {
                  type uint8;
                }
              }  // list allTcmList
    
              list list-gcc {
                key "gccType";
                description
                  " List of GCCs (GCC1, GCC2, GCC12) ";
                leaf gccType {
                  type GccType;
                  description "gcc type ";
                }
    
                leaf gccEnabled {
                  type boolean;
                  description
                    "true: means GCC enabled
    false: means GCC disabled";
                }
    
                leaf protocol {
                  type protocolType;
                  default "IP";
                  description
                    "Protocol running over GCC: IP or OSI";
                }
              }  // list list-gcc
            }  // container odu
    
            container ipv4 {
              presence
                "Enables IPv4 unless the 'enabled' leaf
    (which defaults to 'true') is set to 'false'";
              description
                "Parameters for the IPv4 address family.";
              leaf enabled {
                type boolean;
                default "true";
                description
                  "Controls whether IPv4 is enabled or disabled on this
    interface.  When IPv4 is enabled, this interface is
    connected to an IPv4 stack, and the interface can send
    and receive IPv4 packets.";
              }
    
              leaf forwarding {
                type boolean;
                default "false";
                description
                  "Controls IPv4 packet forwarding of datagrams received by,
    but not addressed to, this interface.  IPv4 routers
    forward datagrams.  IPv4 hosts do not (except those
    source-routed via the host).";
              }
    
              leaf mtu {
                type uint16 {
                  range "68..max";
                }
                units "octets";
                description
                  "The size, in octets, of the largest IPv4 packet that the
    interface will send and receive.
    
    The server may restrict the allowed values for this leaf,
    depending on the interface's type.
    
    If this leaf is not configured, the operationally used MTU
    depends on the interface's type.";
                reference
                  "RFC 791: Internet Protocol";
    
              }
    
              list address {
                key "ip";
                description
                  "The list of configured IPv4 addresses on the interface.";
                leaf ip {
                  type inet:ipv4-address-no-zone;
                  description
                    "The IPv4 address on the interface.";
                }
    
                choice subnet {
                  mandatory true;
                  description
                    "The subnet can be specified as a prefix-length, or,
    if the server supports non-contiguous netmasks, as
    a netmask.";
                  leaf prefix-length {
                    type uint8 {
                      range "0..32";
                    }
                    description
                      "The length of the subnet prefix.";
                  }
                  leaf netmask {
                    if-feature ipv4-non-contiguous-netmasks;
                    type yang:dotted-quad;
                    description
                      "The subnet specified as a netmask.";
                  }
                }  // choice subnet
              }  // list address
    
              list neighbor {
                key "ip";
                description
                  "A list of mappings from IPv4 addresses to
    link-layer addresses.
    
    Entries in this list are used as static entries in the
    ARP Cache.";
                reference
                  "RFC 826: An Ethernet Address Resolution Protocol";
    
                leaf ip {
                  type inet:ipv4-address-no-zone;
                  description
                    "The IPv4 address of the neighbor node.";
                }
    
                leaf link-layer-address {
                  type yang:phys-address;
                  mandatory true;
                  description
                    "The link-layer address of the neighbor node.";
                }
              }  // list neighbor
            }  // container ipv4
    
            container ipv6 {
              presence
                "Enables IPv6 unless the 'enabled' leaf
    (which defaults to 'true') is set to 'false'";
              description
                "Parameters for the IPv6 address family.";
              leaf enabled {
                type boolean;
                default "true";
                description
                  "Controls whether IPv6 is enabled or disabled on this
    interface.  When IPv6 is enabled, this interface is
    connected to an IPv6 stack, and the interface can send
    and receive IPv6 packets.";
              }
    
              leaf forwarding {
                type boolean;
                default "false";
                description
                  "Controls IPv6 packet forwarding of datagrams received by,
    but not addressed to, this interface.  IPv6 routers
    forward datagrams.  IPv6 hosts do not (except those
    source-routed via the host).";
                reference
                  "RFC 4861: Neighbor Discovery for IP version 6 (IPv6)
                  	  Section 6.2.1, IsRouter";
    
              }
    
              leaf mtu {
                type uint32 {
                  range "1280..max";
                }
                units "octets";
                description
                  "The size, in octets, of the largest IPv6 packet that the
    interface will send and receive.
    
    The server may restrict the allowed values for this leaf,
    depending on the interface's type.
    
    If this leaf is not configured, the operationally used MTU
    depends on the interface's type.";
                reference
                  "RFC 2460: Internet Protocol, Version 6 (IPv6) Specification
                  	  Section 5";
    
              }
    
              list address {
                key "ip";
                description
                  "The list of configured IPv6 addresses on the interface.";
                leaf ip {
                  type inet:ipv6-address-no-zone;
                  description
                    "The IPv6 address on the interface.";
                }
    
                leaf prefix-length {
                  type uint8 {
                    range "0..128";
                  }
                  mandatory true;
                  description
                    "The length of the subnet prefix.";
                }
              }  // list address
    
              list neighbor {
                key "ip";
                description
                  "A list of mappings from IPv6 addresses to
    link-layer addresses.
    
    Entries in this list are used as static entries in the
    Neighbor Cache.";
                reference
                  "RFC 4861: Neighbor Discovery for IP version 6 (IPv6)";
    
                leaf ip {
                  type inet:ipv6-address-no-zone;
                  description
                    "The IPv6 address of the neighbor node.";
                }
    
                leaf link-layer-address {
                  type yang:phys-address;
                  mandatory true;
                  description
                    "The link-layer address of the neighbor node.";
                }
              }  // list neighbor
    
              leaf dup-addr-detect-transmits {
                type uint32;
                default "1";
                description
                  "The number of consecutive Neighbor Solicitation messages
    sent while performing Duplicate Address Detection on a
    tentative address.  A value of zero indicates that
    Duplicate Address Detection is not performed on
    tentative addresses.  A value of one indicates a single
    transmission with no follow-up retransmissions.";
                reference
                  "RFC 4862: IPv6 Stateless Address Autoconfiguration";
    
              }
    
              container autoconf {
                description
                  "Parameters to control the autoconfiguration of IPv6
    addresses, as described in RFC 4862.";
                reference
                  "RFC 4862: IPv6 Stateless Address Autoconfiguration";
    
                leaf create-global-addresses {
                  type boolean;
                  default "true";
                  description
                    "If enabled, the host creates global addresses as
    described in RFC 4862.";
                  reference
                    "RFC 4862: IPv6 Stateless Address Autoconfiguration
                    	  Section 5.5";
    
                }
    
                leaf create-temporary-addresses {
                  if-feature ipv6-privacy-autoconf;
                  type boolean;
                  default "false";
                  description
                    "If enabled, the host creates temporary addresses as
    described in RFC 4941.";
                  reference
                    "RFC 4941: Privacy Extensions for Stateless Address
                    	  Autoconfiguration in IPv6";
    
                }
    
                leaf temporary-valid-lifetime {
                  if-feature ipv6-privacy-autoconf;
                  type uint32;
                  units "seconds";
                  default "604800";
                  description
                    "The time period during which the temporary address
    is valid.";
                  reference
                    "RFC 4941: Privacy Extensions for Stateless Address
                    	  Autoconfiguration in IPv6
                    	  - TEMP_VALID_LIFETIME";
    
                }
    
                leaf temporary-preferred-lifetime {
                  if-feature ipv6-privacy-autoconf;
                  type uint32;
                  units "seconds";
                  default "86400";
                  description
                    "The time period during which the temporary address is
    preferred.";
                  reference
                    "RFC 4941: Privacy Extensions for Stateless Address
                    	  Autoconfiguration in IPv6
                    	  - TEMP_PREFERRED_LIFETIME";
    
                }
              }  // container autoconf
    
              container ipv6-router-advertisements {
                description
                  "Configuration of IPv6 Router Advertisements.";
                leaf send-advertisements {
                  type boolean;
                  default "false";
                  description
                    "A flag indicating whether or not the router sends periodic
    Router Advertisements and responds to Router
    Solicitations.";
                  reference
                    "RFC 4861: Neighbor Discovery for IP version 6 (IPv6) -
                    AdvSendAdvertisements.";
    
                }
    
                leaf max-rtr-adv-interval {
                  type uint16 {
                    range "4..1800";
                  }
                  units "seconds";
                  default "600";
                  description
                    "The maximum time allowed between sending unsolicited
    multicast Router Advertisements from the interface.";
                  reference
                    "RFC 4861: Neighbor Discovery for IP version 6 (IPv6) -
                    MaxRtrAdvInterval.";
    
                }
    
                leaf min-rtr-adv-interval {
                  type uint16 {
                    range "3..1350";
                  }
                  units "seconds";
                  must
                    ". <= 0.75 * ../max-rtr-adv-interval" {
                    description
                      "The value MUST NOT be greater than 75 % of
    'max-rtr-adv-interval'.";
                  }
                  description
                    "The minimum time allowed between sending unsolicited
    multicast Router Advertisements from the interface.
    
    The default value to be used operationally if this leaf is
    not configured is determined as follows:
    
    - if max-rtr-adv-interval >= 9 seconds, the default value
      is 0.33 * max-rtr-adv-interval;
    
    - otherwise it is 0.75 * max-rtr-adv-interval.";
                  reference
                    "RFC 4861: Neighbor Discovery for IP version 6 (IPv6) -
                    MinRtrAdvInterval.";
    
                }
    
                leaf managed-flag {
                  type boolean;
                  default "false";
                  description
                    "The value to be placed in the 'Managed address
    configuration' flag field in the Router Advertisement.";
                  reference
                    "RFC 4861: Neighbor Discovery for IP version 6 (IPv6) -
                    AdvManagedFlag.";
    
                }
    
                leaf other-config-flag {
                  type boolean;
                  default "false";
                  description
                    "The value to be placed in the 'Other configuration' flag
    field in the Router Advertisement.";
                  reference
                    "RFC 4861: Neighbor Discovery for IP version 6 (IPv6) -
                    AdvOtherConfigFlag.";
    
                }
    
                leaf link-mtu {
                  type uint32;
                  default "0";
                  description
                    "The value to be placed in MTU options sent by the router.
    A value of zero indicates that no MTU options are sent.";
                  reference
                    "RFC 4861: Neighbor Discovery for IP version 6 (IPv6) -
                    AdvLinkMTU.";
    
                }
    
                leaf reachable-time {
                  type uint32 {
                    range "0..3600000";
                  }
                  units "milliseconds";
                  default "0";
                  description
                    "The value to be placed in the Reachable Time field in the
    Router Advertisement messages sent by the router. A value
    of zero means unspecified (by this router).";
                  reference
                    "RFC 4861: Neighbor Discovery for IP version 6 (IPv6) -
                    AdvReachableTime.";
    
                }
    
                leaf retrans-timer {
                  type uint32;
                  units "milliseconds";
                  default "0";
                  description
                    "The value to be placed in the Retrans Timer field in the
    Router Advertisement messages sent by the router. A value
    of zero means unspecified (by this router).";
                  reference
                    "RFC 4861: Neighbor Discovery for IP version 6 (IPv6) -
                    AdvRetransTimer.";
    
                }
    
                leaf cur-hop-limit {
                  type uint8;
                  description
                    "The value to be placed in the Cur Hop Limit field in the
    Router Advertisement messages sent by the router. A value
    of zero means unspecified (by this router).
    
    If this parameter is not configured, the device SHOULD use
    the value specified in IANA Assigned Numbers that was in
    effect at the time of implementation.";
                  reference
                    "RFC 4861: Neighbor Discovery for IP version 6 (IPv6) -
                    AdvCurHopLimit.
                    IANA: IP Parameters,
                    http://www.iana.org/assignments/ip-parameters";
    
                }
    
                leaf default-lifetime {
                  type uint16 {
                    range "0..9000";
                  }
                  units "seconds";
                  description
                    "The value to be placed in the Router Lifetime field of
    Router Advertisements sent from the interface, in seconds.
    It MUST be either zero or between max-rtr-adv-interval and
    9000 seconds. A value of zero indicates that the router is
    not to be used as a default router. These limits may be
    overridden by specific documents that describe how IPv6
    operates over different link layers.
    
    If this parameter is not configured, the device SHOULD use
    a value of 3 * max-rtr-adv-interval.";
                  reference
                    "RFC 4861: Neighbor Discovery for IP version 6 (IPv6) -
                    AdvDefaultLifeTime.";
    
                }
    
                container prefix-list {
                  description
                    "Configuration of prefixes to be placed in Prefix
    Information options in Router Advertisement messages sent
    from the interface.
    
    Prefixes that are advertised by default but do not have
    their entries in the child 'prefix' list are advertised
    with the default values of all parameters.
    
    The link-local prefix SHOULD NOT be included in the list
    of advertised prefixes.";
                  reference
                    "RFC 4861: Neighbor Discovery for IP version 6 (IPv6) -
                    AdvPrefixList.";
    
                  list prefix {
                    key "prefix-spec";
                    description
                      "Configuration of an advertised prefix entry.";
                    leaf prefix-spec {
                      type inet:ipv6-prefix;
                      description
                        "IPv6 address prefix.";
                    }
    
                    choice control-adv-prefixes {
                      default "advertise";
                      description
                        "The prefix either may be explicitly removed from the
    set of advertised prefixes, or parameters with which
    it is advertised may be specified (default case).";
                      leaf no-advertise {
                        type empty;
                        description
                          "The prefix will not be advertised.
    
    This can be used for removing the prefix from the
    default set of advertised prefixes.";
                      }
    
                      case advertise {
                        leaf valid-lifetime {
                          type uint32;
                          units "seconds";
                          default "2592000";
                          description
                            "The value to be placed in the Valid Lifetime in
    the Prefix Information option. The designated
    value of all 1's (0xffffffff) represents
    infinity.";
                          reference
                            "RFC 4861: Neighbor Discovery for IP version 6
                            (IPv6) - AdvValidLifetime.";
    
                        }
    
                        leaf on-link-flag {
                          type boolean;
                          default "true";
                          description
                            "The value to be placed in the on-link flag
    ('L-bit') field in the Prefix Information
    option.";
                          reference
                            "RFC 4861: Neighbor Discovery for IP version 6
                            (IPv6) - AdvOnLinkFlag.";
    
                        }
    
                        leaf preferred-lifetime {
                          type uint32;
                          units "seconds";
                          must
                            ". <= ../valid-lifetime" {
                            description
                              "This value MUST NOT be greater than
    valid-lifetime.";
                          }
                          default "604800";
                          description
                            "The value to be placed in the Preferred Lifetime
    in the Prefix Information option. The designated
    value of all 1's (0xffffffff) represents
    infinity.";
                          reference
                            "RFC 4861: Neighbor Discovery for IP version 6
                            (IPv6) - AdvPreferredLifetime.";
    
                        }
    
                        leaf autonomous-flag {
                          type boolean;
                          default "true";
                          description
                            "The value to be placed in the Autonomous Flag
    field in the Prefix Information option.";
                          reference
                            "RFC 4861: Neighbor Discovery for IP version 6
                            (IPv6) - AdvAutonomousFlag.";
    
                        }
                      }  // case advertise
                    }  // choice control-adv-prefixes
                  }  // list prefix
                }  // container prefix-list
              }  // container ipv6-router-advertisements
            }  // container ipv6
    
            container otsig {
              when
                "../if:type = 'fjift:fujitsuOtsig'";
              presence
                "Attribute Nodes for Optical Transport Signal Group (otsig)";
              description
                "Optical Transport Signal Group:
    Models the optical channel interfaces for an Optical White Box.";
              leaf vstimer {
                type string {
                  pattern
                    '([0-4][0-8])-([0-5][0-9])';
                }
                description
                  "Valid state Timer.
    This timer is in the format <hh>-<mm> and inidcates the amount
    of time to stay in ains state wating foir a valid signal.";
              }
    
              leaf actual-vstimer {
                type string {
                  pattern
                    '([0-4][0-8])-([0-5][0-9])';
                }
                config false;
                description
                  "The amount of time a valid state timer has been running uninterrupted.
    This timer is in the format <hh>-<mm>.";
              }
    
              leaf oper-status {
                type oper-status;
                config false;
                description
                  "The current operational state of the interface.
    
    This leaf has the same semantics as ifOperStatus.";
              }
    
              leaf admin-status {
                type admin-status;
                default "down";
                description
                  "The desired state of the interface.
    
    This leaf has the same read semantics as ifAdminStatus.";
              }
    
              leaf ais-pt {
                type enumeration {
                  enum "shutdown" {
                    value 0;
                  }
                  enum "none" {
                    value 1;
                  }
                }
              }
    
              leaf nwrate {
                type identityref {
                  base nw-rate-identity;
                }
                mandatory true;
                description "network rate";
              }
    
              leaf subcarrier {
                type uint8 {
                  range "1..2";
                }
                config false;
                description
                  "The number of sub carrier.
    This Value is decided depending on otucn-rate-identity.";
              }
    
              leaf modulation-format {
                type enumeration {
                  enum "bpsk" {
                    value 0;
                    description
                      "binary phase-shift keying";
                  }
                  enum "dc-dp-bpsk" {
                    value 1;
                    description
                      "DC dual-polarization binary phase-shift keying";
                  }
                  enum "qpsk" {
                    value 2;
                    description
                      "quadrature phase-shift keying";
                  }
                  enum "dp-qpsk" {
                    value 3;
                    description
                      "dual-polarization binary phase-shift keying";
                  }
                  enum "qam16" {
                    value 4;
                    description
                      "quadrature amplitude modulation 16";
                  }
                  enum "dp-qam16" {
                    value 5;
                    description
                      "dual-polarization quadrature amplitude modulation 16";
                  }
                  enum "dc-dp-qam16" {
                    value 6;
                    description
                      "DC dual-polarization quadrature amplitude modulation 16";
                  }
                  enum "qam8" {
                    value 7;
                    description
                      "quadrature amplitude modulation 8";
                  }
                  enum "dp-qam8" {
                    value 8;
                    description
                      "dual-polarization quadrature amplitude modulation 8";
                  }
                  enum "dc-dp-qam8" {
                    value 9;
                    description
                      "DC dual-polarization quadrature amplitude modulation 8";
                  }
                }
                description "modulation format";
              }
    
              leaf fec {
                type enumeration {
                  enum "hpdfec1" {
                    value 0;
                    description
                      "25% SDFEC used for UTP T200.";
                  }
                  enum "hpdfec2" {
                    value 1;
                    description
                      "20% SDFEC used for UTP T200.";
                  }
                }
                description "FEC mode.";
              }
    
              leaf roadm-type {
                type enumeration {
                  enum "CD" {
                    value 0;
                    description
                      "CD degree is applicable.";
                  }
                  enum "AWG" {
                    value 1;
                    description
                      "AWG/DIRECT degree is applicable.";
                  }
                }
                default "CD";
                description
                  "setting of ROADM type.";
              }
    
              leaf confmode-type {
                type enumeration {
                  enum "100GONLY" {
                    value 0;
                    description
                      "100GONLY if the ROADM systems degree, to which this PIU is connected, carries only 100G wavelengths.";
                  }
                  enum "10GMIX" {
                    value 1;
                    description
                      "10GMIX if the ROADM systems degree, to which this PIU is connected, carries 10G wavelengths along with 100G wavelengths.";
                  }
                }
                default "100GONLY";
                description
                  "CNFMODE is a setting to get the best optical reach";
              }
    
              leaf hi-performance-fec {
                type enumeration {
                  enum "ON" {
                    value 0;
                  }
                  enum "OFF" {
                    value 1;
                  }
                }
                default "OFF";
                description
                  "hi-performance-fec is used to improve correction of received data on receiving side";
              }
    
              leaf Nyquist {
                type enumeration {
                  enum "ON" {
                    value 0;
                  }
                  enum "OFF" {
                    value 1;
                  }
                }
                config false;
                description
                  "Current status of Nyquist filter mode.";
              }
    
              leaf direction {
                type enumeration {
                  enum "uni-rx" {
                    value 0;
                    description
                      "unidirectional receive only";
                  }
                  enum "uni-tx" {
                    value 1;
                    description
                      "unidirectional transmit only";
                  }
                  enum "bi" {
                    value 2;
                    description "bidirectional";
                  }
                }
              }
            }  // container otsig
    
            container acl {
              when
                "current()/../if:type='ianaift:ip'";
              description
                "ACL related properties.";
              leaf acl-name {
                type leafref {
                  path "/acl:access-lists/acl:acl/acl:acl-name";
                }
                description
                  "Access Control List name.";
              }
            }  // container acl
    
            container otu {
              when
                "../if:type = 'ianaift:otnOtu'";
              presence
                "Attribute Nodes for Optical Channel Transport Unit (OTU)";
              description
                "Optical Channel Transport Unit (OTU)";
              leaf loopback {
                type enumeration {
                  enum "disabled" {
                    value 0;
                    description
                      "default state loopback not active";
                  }
                  enum "enabled" {
                    value 1;
                    description
                      "loopback operated";
                  }
                }
                default "disabled";
                description
                  "loopback operation and release";
              }
    
              leaf location {
                type enumeration {
                  enum "nearEnd" {
                    value 0;
                    description
                      "Loopback location at near-end";
                  }
                  enum "farEnd" {
                    value 1;
                    description
                      "Loopback location at far-end";
                  }
                }
                default "nearEnd";
                description
                  "Set Loopback Location.";
              }
    
              leaf type {
                type enumeration {
                  enum "fac" {
                    value 0;
                    description
                      "pre-FEC Loopback in the facility direction";
                  }
                  enum "term" {
                    value 1;
                    description
                      "Loopback in the terminal direction";
                  }
                  enum "fac2" {
                    value 2;
                    description
                      "post-FEC Loopback in the facility direction";
                  }
                }
                default "fac";
                description
                  "Set Loopback type (or direction).";
              }
    
              leaf ains {
                type ains-state;
                default "disabled";
              }
    
              leaf vstimer {
                when "../ains = 'enabled'";
                type vstimer;
              }
    
              leaf ACTVST {
                when "../ains = 'enabled'";
                type string;
                config false;
              }
    
              leaf actual-vstimer {
                type string {
                  pattern
                    '([0-4][0-8])-([0-5][0-9])';
                }
                config false;
                description
                  "The amount of time a valid state timer has been running uninterrupted.
    This timer is in the format <hh>-<mm>.";
              }
    
              leaf rate {
                type identityref {
                  base otu-rate-identity;
                }
                description
                  "rate identity of the OTU. 'identityref' is used
    to allow to extend for future higher rates";
              }
    
              leaf oper-status {
                type oper-status;
                config false;
                description
                  "The current operational state of the interface.
    
    This leaf has the same semantics as ifOperStatus.";
              }
    
              leaf admin-status {
                type admin-status;
                default "down";
                description
                  "The desired state of the interface.
    
    This leaf has the same read semantics as ifAdminStatus.";
              }
    
              choice standard {
                default "itu";
                description
                  "choice between ANSI Trail Trace Identifier and
    ITU-T Trail Trace Identifer (SAPI, DAPI, OperatorSpecific)";
                container tti-itu {
                  description
                    "ITU-T Trail Trace Identifer (SAPI, DAPI, OperatorSpecific)";
                  container tx-tti {
                    description
                      "Transmitted Trail Trace Identifier";
                    leaf sapi {
                      type itu-otn-tti-sapi;
                      description
                        "Source Access Point Identifier";
                    }
    
                    leaf dapi {
                      type itu-otn-tti-dapi;
                      description
                        "Destination Access Point Identifier";
                    }
    
                    leaf op-spec {
                      type itu-otn-tti-op-spec;
                      description
                        "TTI Operator Spec";
                    }
                  }  // container tx-tti
    
                  container rx-tti {
                    config false;
                    description
                      "Received Trail Trace Identifier";
                    leaf sapi {
                      type itu-otn-oper-tti-sapi;
                      description
                        "Source Access Point Identifier";
                    }
    
                    leaf dapi {
                      type itu-otn-oper-tti-dapi;
                      description
                        "Destination Access Point Identifier";
                    }
    
                    leaf op-spec {
                      type itu-otn-oper-tti-op-spec;
                      description
                        "TTI Operator Spec";
                    }
                  }  // container rx-tti
    
                  container exp-tti {
                    description
                      "Expected Trail Trace Identifier";
                    leaf sapi {
                      type itu-otn-tti-sapi;
                      description
                        "Source Access Point Identifier";
                    }
    
                    leaf dapi {
                      type itu-otn-tti-dapi;
                      description
                        "Destination Access Point Identifier";
                    }
    
                    leaf op-spec {
                      type itu-otn-tti-op-spec;
                      description
                        "TTI Operator Spec";
                    }
                  }  // container exp-tti
    
                  leaf tim-det-mode {
                    type itu-tim-det-mode;
                    description
                      "TIM detection mode";
                  }
    
                  leaf tim-act-enabled {
                    type boolean;
                    description
                      "Enables TTI Mismatch consequent actions.";
                  }
                }  // container tti-itu
                container tti-ansi {
                  description
                    "ANSI Trail Trace Identifer";
                  container tx-tti {
                    description
                      "Transmitted Trail Trace Identifier";
                    leaf tti {
                      type ansi-otn-tti;
                      description
                        "Trail Trace Identifier";
                    }
                  }  // container tx-tti
    
                  container rx-tti {
                    config false;
                    description
                      "Received Trail Trace Identifier";
                    leaf tti {
                      type ansi-otn-tti;
                      description
                        "Trail Trace Identifier";
                    }
                  }  // container rx-tti
    
                  container exp-tti {
                    description
                      "Expected Trail Trace Identifier";
                    leaf tti {
                      type ansi-otn-tti;
                      description
                        "Trail Trace Identifier";
                    }
                  }  // container exp-tti
    
                  leaf tim-act-enabled {
                    type boolean;
                    description
                      "Enables TTI Mismatch consequent actions.";
                  }
                }  // container tti-ansi
              }  // choice standard
    
              leaf direction {
                type enumeration {
                  enum "uni-rx" {
                    value 0;
                    description
                      "unidirectional receive only";
                  }
                  enum "uni-tx" {
                    value 1;
                    description
                      "unidirectional transmit only";
                  }
                  enum "bi" {
                    value 2;
                    description "bidirectional";
                  }
                }
                description
                  "direction of interface";
              }
    
              leaf degthr {
                type int16 {
                  range "-9..2";
                }
                default "0";
                description
                  "DEGTHR:Degraded defect one-second Errored Block Count threshold
    DEGTHR specifies the exponent part X of 10^X [%].";
              }
    
              leaf degm {
                type int8 {
                  range "2..10";
                }
                default "10";
                description
                  "DEGM:Degraded defect consecutive one-second monitoring intervals";
              }
    
              leaf circuit-id {
                type string {
                  length "0..45";
                }
                description
                  "circuit identifier/user label";
              }
    
              leaf fec {
                type enumeration {
                  enum "off" {
                    value 0;
                    description "fec off";
                  }
                  enum "rsfec" {
                    value 1;
                    description "rsfec";
                  }
                  enum "sdfeca1" {
                    value 2;
                    description "Clariphy SDFEC";
                  }
                  enum "efec" {
                    value 3;
                    description "G.975.1 I.4";
                  }
                  enum "ufec" {
                    value 4;
                    description "G.975.1 I.7";
                  }
                  enum "sdfec" {
                    value 5;
                    description
                      "Soft Decision FEC";
                  }
                  enum "sdfecb1" {
                    value 6;
                    description
                      "SDFEC with SCFEC";
                  }
                  enum "scfec" {
                    value 7;
                    description "Stair case FEC";
                  }
                  enum "hgsdfec" {
                    value 8;
                    description
                      "SDFEC 16% with RSFEC";
                  }
                  enum "hgsdfec2" {
                    value 9;
                    description
                      "SDFEC 23% with RSFEC";
                  }
                }
                description
                  "Forward Error Correction";
              }
    
              leaf differential-decode {
                type enumeration {
                  enum "off" {
                    value 0;
                    description
                      "differntial decode off";
                  }
                  enum "on" {
                    value 1;
                    description
                      "differntial decode on";
                  }
                }
                description
                  "Differential Decode";
              }
    
              leaf auto-rx {
                type boolean;
                description
                  "enable/disable generation of transient condition when
    the value of the TTI changes.";
              }
    
              leaf auto-tx {
                type boolean;
                description
                  "enable/disable automatic population of outgoing TTI";
              }
    
              container pm {
                description
                  "Performance Monitoring Info";
                list pm-threshold {
                  key "pm-name pm-location pm-direction";
                  description
                    "List of PMs thresholds for the parent entity.";
                  leaf pm-name {
                    type pm-identity;
                  }
    
                  leaf pm-location {
                    type pm-location;
                  }
    
                  leaf pm-direction {
                    type pm-direction;
                  }
    
                  leaf pm-type {
                    type pm-type;
                  }
    
                  container pm-th-metered {
                    when
                      "../pm-type = 'metered'";
                    leaf pm-th-type {
                      type enumeration {
                        enum "auto" {
                          value 0;
                          description
                            "HW autoprovisioned";
                        }
                        enum "user" {
                          value 1;
                          description
                            "User-provisioned";
                        }
                      }
                      default "auto";
                    }
    
                    leaf pm-th-low {
                      when
                        "../pm-th-type = 'user'";
                      type pm-data-type;
                      mandatory true;
                    }
    
                    leaf pm-th-high {
                      when
                        "../pm-th-type = 'user'";
                      type pm-data-type;
                      mandatory true;
                    }
                  }  // container pm-th-metered
    
                  container pm-th-binned {
                    when "../pm-type = 'binned'";
                    list pm-time-periods {
                      key "pm-time-period";
                      leaf pm-time-period {
                        type pm-time-period;
                      }
    
                      leaf pm-value {
                        type pm-data-type;
                        mandatory true;
                      }
                    }  // list pm-time-periods
                  }  // container pm-th-binned
                }  // list pm-threshold
    
                list pm-oper-range {
                  key "pm-name pm-location pm-direction";
                  config false;
                  ordered-by user;
                  leaf pm-name {
                    type pm-identity;
                  }
    
                  leaf pm-location {
                    type pm-location;
                  }
    
                  leaf pm-direction {
                    type pm-direction;
                  }
    
                  leaf pm-alarm-low {
                    type pm-data-type;
                    description
                      "PM Alarm Detect Low";
                  }
    
                  leaf pm-alarm-high {
                    type pm-data-type;
                    description
                      "PM Alarm Detect High";
                  }
    
                  leaf pm-capability-min {
                    type pm-data-type;
                    description
                      "PM Operating Range Low";
                  }
    
                  leaf pm-capability-max {
                    type pm-data-type;
                    description
                      "PM Operating Range High";
                  }
    
                  leaf pm-warning-low {
                    type pm-data-type;
                    description
                      "PM Threshold Low";
                  }
    
                  leaf pm-warning-high {
                    type pm-data-type;
                    description
                      "PM Threshold High";
                  }
                }  // list pm-oper-range
              }  // container pm
    
              list list-gcc {
                key "gccType";
                description " List of GCC0s";
                leaf gccType {
                  type GccType;
                  description "gcc type ";
                }
    
                leaf gccEnabled {
                  type boolean;
                  description
                    "true: means GCC enabled
    false: means GCC disabled";
                }
    
                leaf protocol {
                  type protocolType;
                  default "IP";
                  description
                    "Protocol running over GCC: IP or OSI";
                }
              }  // list list-gcc
            }  // container otu
    
            container ethernet {
              presence
                "Enables Ethernet Interface";
              description "Ethernet Interface";
              leaf admin-status {
                type admin-status;
                default "down";
                description
                  "The desired state of the interface.
    
    This leaf has the same read semantics as ifAdminStatus.";
              }
    
              leaf rate {
                type uint32 {
                  range "500..100000000";
                }
                default "500";
                description
                  "Set rate - units kbps.";
              }
    
              leaf fec {
                type enumeration {
                  enum "off" {
                    value 0;
                  }
                  enum "rsfec" {
                    value 1;
                  }
                  enum "autofec" {
                    value 2;
                  }
                }
                description
                  "Forward Error Correction Choices. ";
              }
    
              leaf circuit-id {
                type string {
                  length "0..45";
                }
                description
                  "Circuit identifier which can be used in
    alarm correlation and/or connection management ";
              }
    
              leaf loopback {
                type enumeration {
                  enum "disabled" {
                    value 0;
                    description
                      "default state loopback not active";
                  }
                  enum "enabled" {
                    value 1;
                    description
                      "loopback operated";
                  }
                }
                default "disabled";
                description
                  "loopback operation and release";
              }
    
              leaf location {
                type enumeration {
                  enum "nearEnd" {
                    value 0;
                    description
                      "Loopback location at near-end";
                  }
                  enum "farEnd" {
                    value 1;
                    description
                      "Loopback location at far-end";
                  }
                }
                default "nearEnd";
                description
                  "Set Loopback Location.";
              }
    
              leaf type {
                type enumeration {
                  enum "fac" {
                    value 0;
                    description
                      "pre-FEC Loopback in the facility direction";
                  }
                  enum "term" {
                    value 1;
                    description
                      "Loopback in the terminal direction";
                  }
                  enum "fac2" {
                    value 2;
                    description
                      "post-FEC Loopback in the facility direction";
                  }
                }
                default "fac";
                description
                  "Set Loopback type (or direction).";
              }
    
              leaf oper-status {
                type oper-status;
                config false;
                description
                  "The current operational state of the interface.
    
    This leaf has the same semantics as ifOperStatus.";
              }
    
              leaf testsignal {
                type enumeration {
                  enum "disabled" {
                    value 0;
                    description
                      "testsignal not connected";
                  }
                  enum "enabled" {
                    value 1;
                    description
                      "testsignal connected";
                  }
                }
                default "disabled";
                description
                  "testsignal connect and disconnect";
              }
    
              leaf testPattern {
                when "../testsignal = 'enabled'";
                type enumeration {
                  enum "PRBS" {
                    value 0;
                    description
                      "Unframed, inverted PN-31 pattern or PRBS31 pattern per IEEE 802.3 clause 50.3.8.2 (inverted PN-31at line rate)";
                  }
                  enum "PRBS31" {
                    value 1;
                    description
                      "PRBS31 with standard mapping per G.709";
                  }
                  enum "PRBS23" {
                    value 2;
                    description
                      "SONET/SDH Framed,inverted PN-23 pattern.";
                  }
                  enum "PRZEROS" {
                    value 3;
                    description
                      "pseudo-random with zeros data pattern per IEEE 802.3 clause 49.2.8";
                  }
                  enum "IDLE" {
                    value 4;
                    description
                      "Scrambled IDLE test-pattern per IEEE 802.3ba";
                  }
                  enum "PRBS7" {
                    value 5;
                    description
                      "PRBS7 non-standard mapping for 8B/10B encoded pattern";
                  }
                }
                description
                  "Set test signal pattern";
              }
    
              leaf testsignal-type {
                when "../testsignal = 'enabled'";
                type enumeration {
                  enum "fac" {
                    value 0;
                    description
                      "test signal in the facility direction";
                  }
                  enum "term" {
                    value 1;
                    description
                      "test signal in the terminal direction";
                  }
                }
                default "fac";
                description
                  "Set test signal type (or direction).";
              }
    
              leaf bitErrors {
                when
                  "../testsignal = 'enabled' and ../testsignal-type = 'fac'";
                type uint32 {
                  range "0..4294967295";
                }
                config false;
                description
                  "bit errors for test signal in facility direction.";
              }
    
              leaf bitErrorsTerminal {
                when
                  "../testsignal = 'enabled' and ../testsignal-type = 'term'";
                type uint32 {
                  range "0..4294967295";
                }
                config false;
                description
                  "bit errors for test signal in terminal direction.";
              }
    
              leaf syncSeconds {
                when
                  "../testsignal = 'enabled' and ../testsignal-type = 'fac'";
                type string;
                config false;
                description
                  "number of seconds the received facility test signal is in sync.";
              }
    
              leaf syncSecondsTerminal {
                when
                  "../testsignal = 'enabled' and ../testsignal-type = 'term'";
                type string;
                config false;
                description
                  "number of seconds the received terminal test signal is in sync.";
              }
    
              container pm {
                description
                  "Performance Monitoring Info";
                list pm-threshold {
                  key "pm-name pm-location pm-direction";
                  description
                    "List of PMs thresholds for the parent entity.";
                  leaf pm-name {
                    type pm-identity;
                  }
    
                  leaf pm-location {
                    type pm-location;
                  }
    
                  leaf pm-direction {
                    type pm-direction;
                  }
    
                  leaf pm-type {
                    type pm-type;
                  }
    
                  container pm-th-metered {
                    when
                      "../pm-type = 'metered'";
                    leaf pm-th-type {
                      type enumeration {
                        enum "auto" {
                          value 0;
                          description
                            "HW autoprovisioned";
                        }
                        enum "user" {
                          value 1;
                          description
                            "User-provisioned";
                        }
                      }
                      default "auto";
                    }
    
                    leaf pm-th-low {
                      when
                        "../pm-th-type = 'user'";
                      type pm-data-type;
                      mandatory true;
                    }
    
                    leaf pm-th-high {
                      when
                        "../pm-th-type = 'user'";
                      type pm-data-type;
                      mandatory true;
                    }
                  }  // container pm-th-metered
    
                  container pm-th-binned {
                    when "../pm-type = 'binned'";
                    list pm-time-periods {
                      key "pm-time-period";
                      leaf pm-time-period {
                        type pm-time-period;
                      }
    
                      leaf pm-value {
                        type pm-data-type;
                        mandatory true;
                      }
                    }  // list pm-time-periods
                  }  // container pm-th-binned
                }  // list pm-threshold
    
                list pm-oper-range {
                  key "pm-name pm-location pm-direction";
                  config false;
                  ordered-by user;
                  leaf pm-name {
                    type pm-identity;
                  }
    
                  leaf pm-location {
                    type pm-location;
                  }
    
                  leaf pm-direction {
                    type pm-direction;
                  }
    
                  leaf pm-alarm-low {
                    type pm-data-type;
                    description
                      "PM Alarm Detect Low";
                  }
    
                  leaf pm-alarm-high {
                    type pm-data-type;
                    description
                      "PM Alarm Detect High";
                  }
    
                  leaf pm-capability-min {
                    type pm-data-type;
                    description
                      "PM Operating Range Low";
                  }
    
                  leaf pm-capability-max {
                    type pm-data-type;
                    description
                      "PM Operating Range High";
                  }
    
                  leaf pm-warning-low {
                    type pm-data-type;
                    description
                      "PM Threshold Low";
                  }
    
                  leaf pm-warning-high {
                    type pm-data-type;
                    description
                      "PM Threshold High";
                  }
                }  // list pm-oper-range
              }  // container pm
    
              container dcn-data {
                config false;
                leaf oper-speed {
                  type string;
                  description
                    "speed (UNKNOWN/AUTO/10/100/1000/10000) corresponding to the interface";
                }
    
                leaf oper-duplex {
                  type string;
                  description
                    "duplex (HALF/FULL) corresponding to the interface";
                }
              }  // container dcn-data
    
              container ethernet-oper-data {
                config false;
                leaf eth-oper-speed {
                  type string;
                  description
                    "speed (UNKNOWN/AUTO/10/100/1000/10000) corresponding to the interface";
                }
    
                leaf eth-oper-duplex {
                  type string;
                  description
                    "duplex (HALF/FULL) corresponding to the interface";
                }
              }  // container ethernet-oper-data
    
              leaf speed {
                type string;
                description
                  "Set speed of the interface, unit mbps.
    This is for ETH facility.
    Editable when not part of a LAG.  ";
              }
    
              leaf duplex {
                type enumeration {
                  enum "half" {
                    value 0;
                    description "half duplex";
                  }
                  enum "full" {
                    value 1;
                    description "full duplex";
                  }
                }
                default "full";
                description
                  "Set duplex selections.";
              }
    
              leaf mtu {
                type uint32 {
                  range "1518..9000";
                }
                default "1522";
                description
                  "Set Maximum Frame Size.";
              }
    
              leaf auto-negotiation {
                type enumeration {
                  enum "enabled" {
                    value 1;
                    description
                      "Auto Negotiation enabled";
                  }
                  enum "disabled" {
                    value 0;
                    description
                      "Auto Negotiation disabled";
                  }
                }
                default "enabled";
                description
                  "Set Auto Negotiation: Enabled/Disabled.";
              }
    
              leaf wavelength {
                type uint32;
                units "nm";
                default "1511";
                config false;
                description
                  "OSC wavelength in nm";
              }
    
              container link-oam {
                description
                  "Set Link OAM related attributes.";
                leaf loam {
                  type enumeration {
                    enum "peer" {
                      value 0;
                      description
                        "LOAM enabled. Peer with remote.";
                    }
                    enum "discard" {
                      value 1;
                      description
                        "LOAM frames will be discarded.";
                    }
                    enum "transp" {
                      value 2;
                      description
                        "LOAM frames will be transparient and flow
    through wiht out being discarded or
    handled.";
                    }
                  }
                  default "peer";
                  description
                    "PEER, DISCARD and Trasnport. DISCARD value is
    for received OAMPDUs only. TRANSP value is
    allowed only for a port that is in EPL
    mode (i.e. at UNI interface with PORTMODE=PORT)
    and if the port is not in a LAG. If LOAM= PEER
    only then is the L-OAM entity present and all
    related attributes; such as LOAMMODE, LOAMLPBK,
    and LOAMRSTATE.";
                }
    
                leaf loam-mode {
                  when "../loam = 'peer'";
                  type enumeration {
                    enum "active" {
                      value 0;
                      description
                        "Active member in LOAM.";
                    }
                    enum "passive" {
                      value 1;
                      description
                        "Passive member in LOAM.";
                    }
                  }
                  default "active";
                  description
                    "Set LOAM mode. Note if both local and peer
    sides are in Passive mode, LOAM will not be
    operational (not complete discovery).";
                }
    
                leaf loam-loopback {
                  when "../loam = 'peer'";
                  type enumeration {
                    enum "enabled" {
                      value 1;
                      description
                        "loopback is enabled.";
                    }
                    enum "disabled" {
                      value 0;
                      description
                        "Loopback is disabled.";
                    }
                  }
                  default "disabled";
                  description
                    "set loam-Loopback to enabled/disabled.
    Enabled means will accept remote loopback request,
    Disabled means will not accept loopback requests.";
                }
    
                leaf error-free-window-threshold {
                  when "../loam = 'peer'";
                  type uint8 {
                    range "0..30";
                  }
                  default "1";
                  description
                    "Set Local Errored Frame threshold in the
    window.";
                }
    
                leaf error-free-window {
                  when "../loam = 'peer'";
                  type uint8 {
                    range "1..60";
                  }
                  default "10";
                  description
                    "Set Local Errored Frame window.";
                }
    
                leaf error-frame-summary-threshold {
                  when "../loam = 'peer'";
                  type uint16 {
                    range "0..500";
                  }
                  default "1";
                  description
                    "Set Local Errored Frame Seconds threshold in
    the window.";
                }
    
                leaf error-frame-summary-window {
                  when "../loam = 'peer'";
                  type uint16 {
                    range "10..900";
                  }
                  default "60";
                  description
                    "Set Local Errored Frame Seconds summary
    window.";
                }
              }  // container link-oam
    
              container link-remote-info {
                leaf remoteSysName {
                  type string {
                    length "7..20";
                  }
                  description
                    "Remote NE's system name";
                }
    
                leaf remoteIfName {
                  type string;
                  description
                    "Remote Eth interface name to which this Eth interface is connected";
                }
              }  // container link-remote-info
    
              container transport {
                if-feature transport-eth;
                leaf act-laser {
                  type enumeration {
                    enum "none" {
                      value 0;
                      description
                        "when laser status is non known. E.g. in situation when hardware cannot be accessed to know the laser status.";
                    }
                    enum "normal" {
                      value 1;
                      description "laser is on";
                    }
                    enum "shutdown" {
                      value 2;
                      description "laser is off";
                    }
                  }
                  config false;
                  description
                    "actual transmit laser status";
                }
    
                leaf link-monitoring {
                  type enumeration {
                    enum "monitor_all" {
                      value 0;
                    }
                    enum "pcs-only" {
                      value 1;
                    }
                  }
                  default "pcs-only";
                  description
                    "Link Monitoring Mode";
                }
    
                leaf transport-signal-failure {
                  type enumeration {
                    enum "tsf-local-fault" {
                      value 0;
                      description "Local Fault";
                    }
                    enum "tsf-idle" {
                      value 1;
                      description "Idle";
                    }
                  }
                  description
                    "Codeword to send during Transport Signal Failure";
                }
    
                leaf backward-transport-signal-failure {
                  type backward-transport-signal-failure-type;
                }
    
                leaf ltx-off {
                  type enumeration {
                    enum "none" {
                      value 0;
                    }
                    enum "rlanflt" {
                      value 1;
                    }
                    enum "tsfs" {
                      value 2;
                    }
                    enum "btsfs" {
                      value 3;
                    }
                    enum "csf" {
                      value 4;
                    }
                    enum "all" {
                      value 5;
                    }
                  }
                  default "none";
                  description "LTXOFF Choices";
                }
    
                leaf direction {
                  type enumeration {
                    enum "uni-dir-rx" {
                      value 0;
                      description
                        "unidirectional receive only";
                    }
                    enum "uni-dir-tx" {
                      value 1;
                      description
                        "unidirectional transmit only";
                    }
                    enum "bi-dir" {
                      value 2;
                      description
                        "bidirectional";
                    }
                  }
                  description
                    "direction Choices";
                }
    
                leaf tx-clock-source {
                  type enumeration {
                    enum "through" {
                      value 0;
                      description
                        "Timing is passed through";
                    }
                    enum "internal" {
                      value 1;
                      description
                        "Timing is from internal clock";
                    }
                  }
                  description
                    "Transmit Clock - Specifies source of transit timing";
                }
    
                leaf alm-transfer-delay {
                  type uint16;
                  units "ms";
                  description
                    "Alarm transfer delay time in msec
    Delays the shutdown (due to ltxoff provisioning) of the laser.
    Has no effect when ltxoff is set to none.";
                }
    
                leaf actual-vstimer {
                  type string {
                    pattern
                      '([0-4][0-8])-([0-5][0-9])';
                  }
                  config false;
                  description
                    "The amount of time a valid state timer has been running uninterrupted.
    This timer is in the format <hh>-<mm>.";
                }
    
                leaf client-signal-failure {
                  type enumeration {
                    enum "csf-local-fault" {
                      value 0;
                      description "Local Fault";
                    }
                    enum "csf-idle" {
                      value 1;
                      description "Idle";
                    }
                    enum "csf-err" {
                      value 2;
                      description
                        "10B_ERR or /v/ codeword";
                    }
                  }
                  description
                    "Codewords to send when receiving Client Signal Failure indication from far-end or
    during Transport Singal Failure.";
                }
    
                leaf encapsulation {
                  type enumeration {
                    enum "none" {
                      value 0;
                      description
                        "No encapsulation. Bit transparent mapping";
                    }
                    enum "gfp-frame-mapped" {
                      value 1;
                      description
                        "Encapsulation using frame-mapped GFP (GFP-F)";
                    }
                    enum "gfp-transparent" {
                      value 2;
                      description
                        "Encapsulation using transparent GFP (GFP-T)";
                    }
                    enum "gfp-semi-transparent" {
                      value 3;
                      description
                        "Encapsulation using semi-transparent GFP (GFP-ST)";
                    }
                  }
                  description
                    "Type of encapsulation to use";
                }
    
                leaf local-fault-remote-fault {
                  type enumeration {
                    enum "lfrf-transport" {
                      value 0;
                      description
                        "Transport LF and RF by mapping ordered sets at the client interface to GFP data frames";
                    }
                    enum
                      "lfrf-client-signal-fail" {
                      value 1;
                      description
                        "Indicate Client Signal Fail toward network when LF ordered sets are received at client interface.";
                    }
                    enum
                      "lfrf-client-mgm-frames" {
                      value 2;
                      description
                        "Transport LF and RF by mapping ordered sets at the client interface to GFP Client Management Frames";
                    }
                    enum "lfrf-terminate" {
                      value 3;
                      description
                        "Terminate LF/RF signaling locally. Send RF back to client in response to received LF";
                    }
                    enum "lfrf-drop" {
                      value 4;
                      description
                        "Drop LF/RF Ordered Sets";
                    }
                  }
                  description
                    "Controls handling of Local Fault and Remote Fault ordered sets at the client interface";
                }
    
                leaf lan-signal-fail-indication {
                  type enumeration {
                    enum "lsfi-local-fault" {
                      value 0;
                      description
                        "Transmit Client Management Frames or LF ordered sets";
                    }
                    enum
                      "lsfi-client-signal-fail" {
                      value 1;
                      description
                        "Transmit Client Signal Fail frames (LOS- 01h, LOSYNC- 02h)";
                    }
                    enum "lsfi-idle" {
                      value 2;
                      description
                        "Transmit GFP Idle frames";
                    }
                  }
                  description
                    "LAN Signal Fail forward indication";
                }
    
                leaf gfp-fcs {
                  type boolean;
                  default "false";
                  description
                    "Specifies whether a GFP payload Frame Check Sum hould be appended to the GFP frames";
                }
    
                leaf gfp-upi {
                  type string {
                    length "2";
                    pattern '[0-9a-fA-F]*';
                  }
                  default "01";
                  description
                    "User Payload Identifier for GFP client frames";
                }
    
                leaf los-upi {
                  type string {
                    length "2";
                    pattern '[0-9a-fA-F]*';
                  }
                  default "01";
                  description
                    "GFP CMF User Payload Identifier for loss of client signal ";
                }
    
                leaf losync-upi {
                  type string {
                    length "2";
                    pattern '[0-9a-fA-F]*';
                  }
                  default "02";
                  description
                    "GFP CMF User Payload Identifier for loss of character synchronization";
                }
    
                leaf dci-upi {
                  type string {
                    length "2";
                    pattern '[0-9a-fA-F]*';
                  }
                  default "03";
                  description
                    "GFP CMF User Payload Identifier for client defect clear indication";
                }
    
                leaf fdi-upi {
                  type string {
                    length "2";
                    pattern '[0-9a-fA-F]*';
                  }
                  default "04";
                  description
                    "GFP CMF User Payload Identifier for client forward defect indication ";
                }
    
                leaf rdi-upi {
                  type string {
                    length "2";
                    pattern '[0-9a-fA-F]*';
                  }
                  default "05";
                  description
                    "GFP CMF User Payload Identifier for client reverse defect indication ";
                }
    
                leaf mac-fcs {
                  type enumeration {
                    enum "mac-fcs-transport" {
                      value 0;
                      description
                        "forward frames with FCS errors";
                    }
                    enum "mac-fcs-drop" {
                      value 1;
                      description
                        "Drop frames with FCS errors";
                    }
                  }
                  description
                    "Controls handling of MAC FCS error";
                }
    
                container policy-profile {
                  presence
                    "Indicates the policy-profiling of eth interface";
                  leaf committed-info-rate {
                    type uint32 {
                      range "1000000..5000000";
                    }
                    description
                      "Committed Information Rate, unit in 1Kbs";
                  }
    
                  leaf committed-burst-size {
                    type uint16 {
                      range "16..1024";
                    }
                    description
                      "Committed Burst Size, unit in 1KB (K Byte)";
                  }
                }  // container policy-profile
    
                leaf ains {
                  type ains-state;
                  default "disabled";
                }
    
                leaf vstimer {
                  when "../ains = 'enabled'";
                  type vstimer;
                }
    
                leaf ACTVST {
                  when "../ains = 'enabled'";
                  type string;
                  config false;
                }
              }  // container transport
            }  // container ethernet
    
            container otucn {
              when
                "../if:type = 'fjift:fujitsuOtuc'";
              presence
                "Attribute Nodes for Optical Transport Unit (OTUCn)";
              description
                "Optical Transport Unit (OTUCn):
    Models the optical channel interfaces for an Optical White Box.";
              leaf vstimer {
                type string {
                  pattern
                    '([0-4][0-8])-([0-5][0-9])';
                }
                description
                  "Valid state Timer.
    This timer is in the format <hh>-<mm> and inidcates the amount
    of time to stay in ains state wating foir a valid signal.";
              }
    
              leaf actual-vstimer {
                type string {
                  pattern
                    '([0-4][0-8])-([0-5][0-9])';
                }
                config false;
                description
                  "The amount of time a valid state timer has been running uninterrupted.
    This timer is in the format <hh>-<mm>.";
              }
    
              leaf rate {
                type identityref {
                  base otucn-rate-identity;
                }
                description
                  "rate identity of the OTUCn. 'identityref' is used
    to allow to extend for future higher rates";
              }
    
              leaf oper-status {
                type oper-status;
                config false;
                description
                  "The current operational state of the interface.
    
    This leaf has the same semantics as ifOperStatus.";
              }
    
              leaf admin-status {
                type admin-status;
                default "down";
                description
                  "The desired state of the interface.
    
    This leaf has the same read semantics as ifAdminStatus.";
              }
    
              choice standard {
                default "itu";
                description
                  "choice between ANSI Trail Trace Identifier and
    ITU-T Trail Trace Identifer (SAPI, DAPI, OperatorSpecific)";
                container tti-itu {
                  description
                    "ITU-T Trail Trace Identifer (SAPI, DAPI, OperatorSpecific)";
                  container tx-tti {
                    description
                      "Transmitted Trail Trace Identifier";
                    leaf sapi {
                      type itu-otn-tti-sapi;
                      description
                        "Source Access Point Identifier";
                    }
    
                    leaf dapi {
                      type itu-otn-tti-dapi;
                      description
                        "Destination Access Point Identifier";
                    }
    
                    leaf op-spec {
                      type itu-otn-tti-op-spec;
                      description
                        "TTI Operator Spec";
                    }
                  }  // container tx-tti
    
                  container rx-tti {
                    config false;
                    description
                      "Received Trail Trace Identifier";
                    leaf sapi {
                      type itu-otn-oper-tti-sapi;
                      description
                        "Source Access Point Identifier";
                    }
    
                    leaf dapi {
                      type itu-otn-oper-tti-dapi;
                      description
                        "Destination Access Point Identifier";
                    }
    
                    leaf op-spec {
                      type itu-otn-oper-tti-op-spec;
                      description
                        "TTI Operator Spec";
                    }
                  }  // container rx-tti
    
                  container exp-tti {
                    description
                      "Expected Trail Trace Identifier";
                    leaf sapi {
                      type itu-otn-tti-sapi;
                      description
                        "Source Access Point Identifier";
                    }
    
                    leaf dapi {
                      type itu-otn-tti-dapi;
                      description
                        "Destination Access Point Identifier";
                    }
    
                    leaf op-spec {
                      type itu-otn-tti-op-spec;
                      description
                        "TTI Operator Spec";
                    }
                  }  // container exp-tti
    
                  leaf tim-det-mode {
                    type itu-tim-det-mode;
                    description
                      "TIM detection mode";
                  }
    
                  leaf tim-act-enabled {
                    type boolean;
                    description
                      "Enables TTI Mismatch consequent actions.";
                  }
                }  // container tti-itu
                container tti-ansi {
                  description
                    "ANSI Trail Trace Identifer";
                  container tx-tti {
                    description
                      "Transmitted Trail Trace Identifier";
                    leaf tti {
                      type ansi-otn-tti;
                      description
                        "Trail Trace Identifier";
                    }
                  }  // container tx-tti
    
                  container rx-tti {
                    config false;
                    description
                      "Received Trail Trace Identifier";
                    leaf tti {
                      type ansi-otn-tti;
                      description
                        "Trail Trace Identifier";
                    }
                  }  // container rx-tti
    
                  container exp-tti {
                    description
                      "Expected Trail Trace Identifier";
                    leaf tti {
                      type ansi-otn-tti;
                      description
                        "Trail Trace Identifier";
                    }
                  }  // container exp-tti
    
                  leaf tim-act-enabled {
                    type boolean;
                    description
                      "Enables TTI Mismatch consequent actions.";
                  }
                }  // container tti-ansi
              }  // choice standard
    
              leaf degthr {
                type int16 {
                  range "-9..2";
                }
                default "0";
                description
                  "DEGTHR:Degraded defect one-second Errored Block Count threshold
    DEGTHR specifies the exponent part X of 10^X [%].";
              }
    
              leaf degm {
                type int8 {
                  range "2..10";
                }
                default "10";
                description
                  "DEGM:Degraded defect consecutive one-second monitoring intervals";
              }
    
              leaf circuit-id {
                type string {
                  length "0..45";
                }
                description
                  "circuit identifier/user label";
              }
    
              leaf direction {
                type enumeration {
                  enum "uni-rx" {
                    value 0;
                    description
                      "unidirectional receive only";
                  }
                  enum "uni-tx" {
                    value 1;
                    description
                      "unidirectional transmit only";
                  }
                  enum "bi" {
                    value 2;
                    description "bidirectional";
                  }
                }
              }
    
              leaf auto-rx {
                type boolean;
                description
                  "enable/disable generation of transient condition when
    the value of the TTI changes.";
              }
    
              leaf auto-tx {
                type boolean;
                description
                  "enable/disable automatic population of outgoing TTI";
              }
    
              list list-gcc {
                key "gccType";
                description " List of GCC0s";
                leaf gccType {
                  type GccType;
                  description "gcc type ";
                }
    
                leaf gccEnabled {
                  type boolean;
                  description
                    "true: means GCC enabled
    false: means GCC disabled";
                }
    
                leaf protocol {
                  type protocolType;
                  default "IP";
                  description
                    "Protocol running over GCC: IP or OSI";
                }
              }  // list list-gcc
    
              leaf loopback {
                type enumeration {
                  enum "disabled" {
                    value 0;
                    description
                      "default state loopback not active";
                  }
                  enum "enabled" {
                    value 1;
                    description
                      "loopback operated";
                  }
                }
                default "disabled";
                description
                  "loopback operation and release";
              }
    
              leaf location {
                type enumeration {
                  enum "nearEnd" {
                    value 0;
                    description
                      "Loopback location at near-end";
                  }
                  enum "farEnd" {
                    value 1;
                    description
                      "Loopback location at far-end";
                  }
                }
                default "nearEnd";
                description
                  "Set Loopback Location.";
              }
    
              leaf type {
                type enumeration {
                  enum "fac" {
                    value 0;
                    description
                      "pre-FEC Loopback in the facility direction";
                  }
                  enum "term" {
                    value 1;
                    description
                      "Loopback in the terminal direction";
                  }
                  enum "fac2" {
                    value 2;
                    description
                      "post-FEC Loopback in the facility direction";
                  }
                }
                default "fac";
                description
                  "Set Loopback type (or direction).";
              }
            }  // container otucn
          }  // list interface
        }  // container interfaces
    
        container interfaces-state {
          config false;
          description
            "Data nodes for the operational state of interfaces.";
          list interface {
            key "name";
            description
              "The list of interfaces on the device.
    
    System-controlled interfaces created by the system are
    always present in this list, whether they are configured or
    not.";
            leaf name {
              type string;
              description
                "The name of the interface.
    
    A server implementation MAY map this leaf to the ifName
    MIB object.  Such an implementation needs to use some
    mechanism to handle the differences in size and characters
    allowed between this leaf and ifName.  The definition of
    such a mechanism is outside the scope of this document.";
              reference
                "RFC 2863: The Interfaces Group MIB - ifName";
    
            }
    
            leaf type {
              type identityref {
                base interface-type;
              }
              mandatory true;
              description
                "The type of the interface.";
              reference
                "RFC 2863: The Interfaces Group MIB - ifType";
    
            }
    
            leaf admin-status {
              if-feature if-mib;
              type enumeration {
                enum "up" {
                  value 1;
                  description
                    "Ready to pass packets.";
                }
                enum "down" {
                  value 2;
                  description
                    "Not ready to pass packets and not in some test mode.";
                }
                enum "testing" {
                  value 3;
                  description
                    "In some test mode.";
                }
              }
              mandatory true;
              description
                "The desired state of the interface.
    
    This leaf has the same read semantics as ifAdminStatus.";
              reference
                "RFC 2863: The Interfaces Group MIB - ifAdminStatus";
    
            }
    
            leaf oper-status {
              type enumeration {
                enum "up" {
                  value 1;
                  description
                    "Ready to pass packets.";
                }
                enum "down" {
                  value 2;
                  description
                    "The interface does not pass any packets.";
                }
                enum "testing" {
                  value 3;
                  description
                    "In some test mode.  No operational packets can
    be passed.";
                }
                enum "unknown" {
                  value 4;
                  description
                    "Status cannot be determined for some reason.";
                }
                enum "dormant" {
                  value 5;
                  description
                    "Waiting for some external event.";
                }
                enum "not-present" {
                  value 6;
                  description
                    "Some component (typically hardware) is missing.";
                }
                enum "lower-layer-down" {
                  value 7;
                  description
                    "Down due to state of lower-layer interface(s).";
                }
              }
              mandatory true;
              description
                "The current operational state of the interface.
    
    This leaf has the same semantics as ifOperStatus.";
              reference
                "RFC 2863: The Interfaces Group MIB - ifOperStatus";
    
            }
    
            leaf last-change {
              type yang:date-and-time;
              description
                "The time the interface entered its current operational
    state.  If the current state was entered prior to the
    last re-initialization of the local network management
    subsystem, then this node is not present.";
              reference
                "RFC 2863: The Interfaces Group MIB - ifLastChange";
    
            }
    
            leaf if-index {
              if-feature if-mib;
              type int32 {
                range "1..2147483647";
              }
              mandatory true;
              description
                "The ifIndex value for the ifEntry represented by this
    interface.";
              reference
                "RFC 2863: The Interfaces Group MIB - ifIndex";
    
            }
    
            leaf phys-address {
              type yang:phys-address;
              description
                "The interface's address at its protocol sub-layer.  For
    example, for an 802.x interface, this object normally
    contains a Media Access Control (MAC) address.  The
    interface's media-specific modules must define the bit
    and byte ordering and the format of the value of this
    object.  For interfaces that do not have such an address
    (e.g., a serial line), this node is not present.";
              reference
                "RFC 2863: The Interfaces Group MIB - ifPhysAddress";
    
            }
    
            leaf-list higher-layer-if {
              type interface-state-ref;
              description
                "A list of references to interfaces layered on top of this
    interface.";
              reference
                "RFC 2863: The Interfaces Group MIB - ifStackTable";
    
            }
    
            leaf-list lower-layer-if {
              type interface-state-ref;
              description
                "A list of references to interfaces layered underneath this
    interface.";
              reference
                "RFC 2863: The Interfaces Group MIB - ifStackTable";
    
            }
    
            leaf speed {
              type yang:gauge64;
              units "bits/second";
              description
                "An estimate of the interface's current bandwidth in bits
    per second.  For interfaces that do not vary in
    bandwidth or for those where no accurate estimation can
    be made, this node should contain the nominal bandwidth.
    For interfaces that have no concept of bandwidth, this
    node is not present.";
              reference
                "RFC 2863: The Interfaces Group MIB -
                	  ifSpeed, ifHighSpeed";
    
            }
    
            container statistics {
              description
                "A collection of interface-related statistics objects.";
              leaf discontinuity-time {
                type yang:date-and-time;
                mandatory true;
                description
                  "The time on the most recent occasion at which any one or
    more of this interface's counters suffered a
    discontinuity.  If no such discontinuities have occurred
    since the last re-initialization of the local management
    subsystem, then this node contains the time the local
    management subsystem re-initialized itself.";
              }
    
              leaf in-octets {
                type yang:counter64;
                description
                  "The total number of octets received on the interface,
    including framing characters.
    
    Discontinuities in the value of this counter can occur
    at re-initialization of the management system, and at
    other times as indicated by the value of
    'discontinuity-time'.";
                reference
                  "RFC 2863: The Interfaces Group MIB - ifHCInOctets";
    
              }
    
              leaf in-unicast-pkts {
                type yang:counter64;
                description
                  "The number of packets, delivered by this sub-layer to a
    higher (sub-)layer, that were not addressed to a
    multicast or broadcast address at this sub-layer.
    
    Discontinuities in the value of this counter can occur
    at re-initialization of the management system, and at
    other times as indicated by the value of
    'discontinuity-time'.";
                reference
                  "RFC 2863: The Interfaces Group MIB - ifHCInUcastPkts";
    
              }
    
              leaf in-broadcast-pkts {
                type yang:counter64;
                description
                  "The number of packets, delivered by this sub-layer to a
    higher (sub-)layer, that were addressed to a broadcast
    address at this sub-layer.
    
    Discontinuities in the value of this counter can occur
    at re-initialization of the management system, and at
    other times as indicated by the value of
    'discontinuity-time'.";
                reference
                  "RFC 2863: The Interfaces Group MIB -
                  	  ifHCInBroadcastPkts";
    
              }
    
              leaf in-multicast-pkts {
                type yang:counter64;
                description
                  "The number of packets, delivered by this sub-layer to a
    higher (sub-)layer, that were addressed to a multicast
    address at this sub-layer.  For a MAC-layer protocol,
    this includes both Group and Functional addresses.
    
    Discontinuities in the value of this counter can occur
    at re-initialization of the management system, and at
    other times as indicated by the value of
    'discontinuity-time'.";
                reference
                  "RFC 2863: The Interfaces Group MIB -
                  	  ifHCInMulticastPkts";
    
              }
    
              leaf in-discards {
                type yang:counter32;
                description
                  "The number of inbound packets that were chosen to be
    discarded even though no errors had been detected to
    prevent their being deliverable to a higher-layer
    protocol.  One possible reason for discarding such a
    packet could be to free up buffer space.
    
    Discontinuities in the value of this counter can occur
    at re-initialization of the management system, and at
    other times as indicated by the value of
    'discontinuity-time'.";
                reference
                  "RFC 2863: The Interfaces Group MIB - ifInDiscards";
    
              }
    
              leaf in-errors {
                type yang:counter32;
                description
                  "For packet-oriented interfaces, the number of inbound
    packets that contained errors preventing them from being
    deliverable to a higher-layer protocol.  For character-
    oriented or fixed-length interfaces, the number of
    inbound transmission units that contained errors
    preventing them from being deliverable to a higher-layer
    protocol.
    
    Discontinuities in the value of this counter can occur
    at re-initialization of the management system, and at
    other times as indicated by the value of
    'discontinuity-time'.";
                reference
                  "RFC 2863: The Interfaces Group MIB - ifInErrors";
    
              }
    
              leaf in-unknown-protos {
                type yang:counter32;
                description
                  "For packet-oriented interfaces, the number of packets
    received via the interface that were discarded because
    of an unknown or unsupported protocol.  For
    character-oriented or fixed-length interfaces that
    support protocol multiplexing, the number of
    transmission units received via the interface that were
    discarded because of an unknown or unsupported protocol.
    For any interface that does not support protocol
    multiplexing, this counter is not present.
    
    Discontinuities in the value of this counter can occur
    at re-initialization of the management system, and at
    other times as indicated by the value of
    'discontinuity-time'.";
                reference
                  "RFC 2863: The Interfaces Group MIB - ifInUnknownProtos";
    
              }
    
              leaf out-octets {
                type yang:counter64;
                description
                  "The total number of octets transmitted out of the
    interface, including framing characters.
    
    Discontinuities in the value of this counter can occur
    at re-initialization of the management system, and at
    other times as indicated by the value of
    'discontinuity-time'.";
                reference
                  "RFC 2863: The Interfaces Group MIB - ifHCOutOctets";
    
              }
    
              leaf out-unicast-pkts {
                type yang:counter64;
                description
                  "The total number of packets that higher-level protocols
    requested be transmitted, and that were not addressed
    to a multicast or broadcast address at this sub-layer,
    including those that were discarded or not sent.
    
    Discontinuities in the value of this counter can occur
    at re-initialization of the management system, and at
    other times as indicated by the value of
    'discontinuity-time'.";
                reference
                  "RFC 2863: The Interfaces Group MIB - ifHCOutUcastPkts";
    
              }
    
              leaf out-broadcast-pkts {
                type yang:counter64;
                description
                  "The total number of packets that higher-level protocols
    requested be transmitted, and that were addressed to a
    broadcast address at this sub-layer, including those
    that were discarded or not sent.
    
    Discontinuities in the value of this counter can occur
    at re-initialization of the management system, and at
    other times as indicated by the value of
    'discontinuity-time'.";
                reference
                  "RFC 2863: The Interfaces Group MIB -
                  	  ifHCOutBroadcastPkts";
    
              }
    
              leaf out-multicast-pkts {
                type yang:counter64;
                description
                  "The total number of packets that higher-level protocols
    requested be transmitted, and that were addressed to a
    multicast address at this sub-layer, including those
    that were discarded or not sent.  For a MAC-layer
    protocol, this includes both Group and Functional
    addresses.
    
    Discontinuities in the value of this counter can occur
    at re-initialization of the management system, and at
    other times as indicated by the value of
    'discontinuity-time'.";
                reference
                  "RFC 2863: The Interfaces Group MIB -
                  	  ifHCOutMulticastPkts";
    
              }
    
              leaf out-discards {
                type yang:counter32;
                description
                  "The number of outbound packets that were chosen to be
    discarded even though no errors had been detected to
    prevent their being transmitted.  One possible reason
    for discarding such a packet could be to free up buffer
    space.
    
    Discontinuities in the value of this counter can occur
    at re-initialization of the management system, and at
    other times as indicated by the value of
    'discontinuity-time'.";
                reference
                  "RFC 2863: The Interfaces Group MIB - ifOutDiscards";
    
              }
    
              leaf out-errors {
                type yang:counter32;
                description
                  "For packet-oriented interfaces, the number of outbound
    packets that could not be transmitted because of errors.
    For character-oriented or fixed-length interfaces, the
    number of outbound transmission units that could not be
    transmitted because of errors.
    
    Discontinuities in the value of this counter can occur
    at re-initialization of the management system, and at
    other times as indicated by the value of
    'discontinuity-time'.";
                reference
                  "RFC 2863: The Interfaces Group MIB - ifOutErrors";
    
              }
            }  // container statistics
    
            leaf routing-instance {
              type routing-instance-state-ref;
              must
                "../if:name=/rt:routing-state/rt:routing-instance[rt:name=current()]/rt:interfaces/rt:interface" {
                error-message
                  "The interface is not assigned to the routing instance.";
                description
                  "The reference must mirror a corresponding assignment under
    routing-instance.";
              }
              description
                "The name of the routing instance to which the interface is
    assigned.";
            }
    
            container ipv4 {
              presence
                "Present if IPv4 is enabled on this interface";
              config false;
              description
                "Interface-specific parameters for the IPv4 address family.";
              leaf forwarding {
                type boolean;
                description
                  "Indicates whether IPv4 packet forwarding is enabled or
    disabled on this interface.";
              }
    
              leaf mtu {
                type uint16 {
                  range "68..max";
                }
                units "octets";
                description
                  "The size, in octets, of the largest IPv4 packet that the
    interface will send and receive.";
                reference
                  "RFC 791: Internet Protocol";
    
              }
    
              list address {
                key "ip";
                description
                  "The list of IPv4 addresses on the interface.";
                leaf ip {
                  type inet:ipv4-address-no-zone;
                  description
                    "The IPv4 address on the interface.";
                }
    
                choice subnet {
                  description
                    "The subnet can be specified as a prefix-length, or,
    if the server supports non-contiguous netmasks, as
    a netmask.";
                  leaf prefix-length {
                    type uint8 {
                      range "0..32";
                    }
                    description
                      "The length of the subnet prefix.";
                  }
                  leaf netmask {
                    if-feature ipv4-non-contiguous-netmasks;
                    type yang:dotted-quad;
                    description
                      "The subnet specified as a netmask.";
                  }
                }  // choice subnet
    
                leaf origin {
                  type ip-address-origin;
                  description
                    "The origin of this address.";
                }
              }  // list address
    
              list neighbor {
                key "ip";
                description
                  "A list of mappings from IPv4 addresses to
    link-layer addresses.
    
    This list represents the ARP Cache.";
                reference
                  "RFC 826: An Ethernet Address Resolution Protocol";
    
                leaf ip {
                  type inet:ipv4-address-no-zone;
                  description
                    "The IPv4 address of the neighbor node.";
                }
    
                leaf link-layer-address {
                  type yang:phys-address;
                  description
                    "The link-layer address of the neighbor node.";
                }
    
                leaf origin {
                  type neighbor-origin;
                  description
                    "The origin of this neighbor entry.";
                }
              }  // list neighbor
            }  // container ipv4
    
            container ipv6 {
              presence
                "Present if IPv6 is enabled on this interface";
              config false;
              description
                "Parameters for the IPv6 address family.";
              leaf forwarding {
                type boolean;
                default "false";
                description
                  "Indicates whether IPv6 packet forwarding is enabled or
    disabled on this interface.";
                reference
                  "RFC 4861: Neighbor Discovery for IP version 6 (IPv6)
                  	  Section 6.2.1, IsRouter";
    
              }
    
              leaf mtu {
                type uint32 {
                  range "1280..max";
                }
                units "octets";
                description
                  "The size, in octets, of the largest IPv6 packet that the
    interface will send and receive.";
                reference
                  "RFC 2460: Internet Protocol, Version 6 (IPv6) Specification
                  	  Section 5";
    
              }
    
              list address {
                key "ip";
                description
                  "The list of IPv6 addresses on the interface.";
                leaf ip {
                  type inet:ipv6-address-no-zone;
                  description
                    "The IPv6 address on the interface.";
                }
    
                leaf prefix-length {
                  type uint8 {
                    range "0..128";
                  }
                  mandatory true;
                  description
                    "The length of the subnet prefix.";
                }
    
                leaf origin {
                  type ip-address-origin;
                  description
                    "The origin of this address.";
                }
    
                leaf status {
                  type enumeration {
                    enum "preferred" {
                      value 0;
                      description
                        "This is a valid address that can appear as the
    destination or source address of a packet.";
                    }
                    enum "deprecated" {
                      value 1;
                      description
                        "This is a valid but deprecated address that should
    no longer be used as a source address in new
    communications, but packets addressed to such an
    address are processed as expected.";
                    }
                    enum "invalid" {
                      value 2;
                      description
                        "This isn't a valid address, and it shouldn't appear
    as the destination or source address of a packet.";
                    }
                    enum "inaccessible" {
                      value 3;
                      description
                        "The address is not accessible because the interface
    to which this address is assigned is not
    operational.";
                    }
                    enum "unknown" {
                      value 4;
                      description
                        "The status cannot be determined for some reason.";
                    }
                    enum "tentative" {
                      value 5;
                      description
                        "The uniqueness of the address on the link is being
    verified.  Addresses in this state should not be
    used for general communication and should only be
    used to determine the uniqueness of the address.";
                    }
                    enum "duplicate" {
                      value 6;
                      description
                        "The address has been determined to be non-unique on
    the link and so must not be used.";
                    }
                    enum "optimistic" {
                      value 7;
                      description
                        "The address is available for use, subject to
    restrictions, while its uniqueness on a link is
    being verified.";
                    }
                  }
                  description
                    "The status of an address.  Most of the states correspond
    to states from the IPv6 Stateless Address
    Autoconfiguration protocol.";
                  reference
                    "RFC 4293: Management Information Base for the
                    	  Internet Protocol (IP)
                    	  - IpAddressStatusTC
                     RFC 4862: IPv6 Stateless Address Autoconfiguration";
    
                }
              }  // list address
    
              list neighbor {
                key "ip";
                description
                  "A list of mappings from IPv6 addresses to
    link-layer addresses.
    
    This list represents the Neighbor Cache.";
                reference
                  "RFC 4861: Neighbor Discovery for IP version 6 (IPv6)";
    
                leaf ip {
                  type inet:ipv6-address-no-zone;
                  description
                    "The IPv6 address of the neighbor node.";
                }
    
                leaf link-layer-address {
                  type yang:phys-address;
                  description
                    "The link-layer address of the neighbor node.";
                }
    
                leaf origin {
                  type neighbor-origin;
                  description
                    "The origin of this neighbor entry.";
                }
    
                leaf is-router {
                  type empty;
                  description
                    "Indicates that the neighbor node acts as a router.";
                }
    
                leaf state {
                  type enumeration {
                    enum "incomplete" {
                      value 0;
                      description
                        "Address resolution is in progress, and the link-layer
    address of the neighbor has not yet been
    determined.";
                    }
                    enum "reachable" {
                      value 1;
                      description
                        "Roughly speaking, the neighbor is known to have been
    reachable recently (within tens of seconds ago).";
                    }
                    enum "stale" {
                      value 2;
                      description
                        "The neighbor is no longer known to be reachable, but
    until traffic is sent to the neighbor no attempt
    should be made to verify its reachability.";
                    }
                    enum "delay" {
                      value 3;
                      description
                        "The neighbor is no longer known to be reachable, and
    traffic has recently been sent to the neighbor.
    Rather than probe the neighbor immediately, however,
    delay sending probes for a short while in order to
    give upper-layer protocols a chance to provide
    reachability confirmation.";
                    }
                    enum "probe" {
                      value 4;
                      description
                        "The neighbor is no longer known to be reachable, and
    unicast Neighbor Solicitation probes are being sent
    to verify reachability.";
                    }
                  }
                  description
                    "The Neighbor Unreachability Detection state of this
    entry.";
                  reference
                    "RFC 4861: Neighbor Discovery for IP version 6 (IPv6)
                    	  Section 7.3.2";
    
                }
              }  // list neighbor
    
              container ipv6-router-advertisements {
                description
                  "Parameters of IPv6 Router Advertisements.";
                leaf send-advertisements {
                  type boolean;
                  description
                    "A flag indicating whether or not the router sends periodic
    Router Advertisements and responds to Router
    Solicitations.";
                }
    
                leaf max-rtr-adv-interval {
                  type uint16 {
                    range "4..1800";
                  }
                  units "seconds";
                  description
                    "The maximum time allowed between sending unsolicited
    multicast Router Advertisements from the interface.";
                }
    
                leaf min-rtr-adv-interval {
                  type uint16 {
                    range "3..1350";
                  }
                  units "seconds";
                  description
                    "The minimum time allowed between sending unsolicited
    multicast Router Advertisements from the interface.";
                }
    
                leaf managed-flag {
                  type boolean;
                  description
                    "The value that is placed in the 'Managed address
    configuration' flag field in the Router Advertisement.";
                }
    
                leaf other-config-flag {
                  type boolean;
                  description
                    "The value that is placed in the 'Other configuration' flag
    field in the Router Advertisement.";
                }
    
                leaf link-mtu {
                  type uint32;
                  description
                    "The value that is placed in MTU options sent by the
    router. A value of zero indicates that no MTU options are
    sent.";
                }
    
                leaf reachable-time {
                  type uint32 {
                    range "0..3600000";
                  }
                  units "milliseconds";
                  description
                    "The value that is placed in the Reachable Time field in
    the Router Advertisement messages sent by the router. A
    value of zero means unspecified (by this router).";
                }
    
                leaf retrans-timer {
                  type uint32;
                  units "milliseconds";
                  description
                    "The value that is placed in the Retrans Timer field in the
    Router Advertisement messages sent by the router. A value
    of zero means unspecified (by this router).";
                }
    
                leaf cur-hop-limit {
                  type uint8;
                  description
                    "The value that is placed in the Cur Hop Limit field in the
    Router Advertisement messages sent by the router. A value
    of zero means unspecified (by this router).";
                }
    
                leaf default-lifetime {
                  type uint16 {
                    range "0..9000";
                  }
                  units "seconds";
                  description
                    "The value that is placed in the Router Lifetime field of
    Router Advertisements sent from the interface, in seconds.
    A value of zero indicates that the router is not to be
    used as a default router.";
                }
    
                container prefix-list {
                  description
                    "A list of prefixes that are placed in Prefix Information
    options in Router Advertisement messages sent from the
    interface.
    
    By default, these are all prefixes that the router
    advertises via routing protocols as being on-link for the
    interface from which the advertisement is sent.";
                  list prefix {
                    key "prefix-spec";
                    description
                      "Advertised prefix entry and its parameters.";
                    leaf prefix-spec {
                      type inet:ipv6-prefix;
                      description
                        "IPv6 address prefix.";
                    }
    
                    leaf valid-lifetime {
                      type uint32;
                      units "seconds";
                      description
                        "The value that is placed in the Valid Lifetime in the
    Prefix Information option. The designated value of all
    1's (0xffffffff) represents infinity.
    
    An implementation SHOULD keep this value constant in
    consecutive advertisements except when it is
    explicitly changed in configuration.";
                    }
    
                    leaf on-link-flag {
                      type boolean;
                      description
                        "The value that is placed in the on-link flag ('L-bit')
    field in the Prefix Information option.";
                    }
    
                    leaf preferred-lifetime {
                      type uint32;
                      units "seconds";
                      description
                        "The value that is placed in the Preferred Lifetime in
    the Prefix Information option, in seconds. The
    designated value of all 1's (0xffffffff) represents
    infinity.
    
    An implementation SHOULD keep this value constant in
    consecutive advertisements except when it is
    explicitly changed in configuration.";
                    }
    
                    leaf autonomous-flag {
                      type boolean;
                      description
                        "The value that is placed in the Autonomous Flag field
    in the Prefix Information option.";
                    }
                  }  // list prefix
                }  // container prefix-list
              }  // container ipv6-router-advertisements
            }  // container ipv6
          }  // list interface
        }  // container interfaces-state
      }  // module ietf-interfaces
    

© 2024 YumaWorks, Inc. All rights reserved.