fujitsu-otn

This module contains YANG definitions for the OTU Interfaces of an Optical White Box (OWB). Copyright (c) 2015 Fujitsu Ltd. All...

  • Version: 2018-07-24

    fujitsu-otn@2018-07-24


    
      module fujitsu-otn {
    
        yang-version 1;
    
        namespace
          "urn:fujitsu:params:xml:ns:yang:otn";
    
        prefix otn;
    
        import fujitsu-notifications {
          prefix notifications;
        }
        import fujitsu-notification-types {
          prefix notification-types;
        }
    
        organization "Fujitsu Ltd.";
    
        contact
          "Fujitsu Ltd.
         
         Address: 2801 Telecom Parkway
                  Richardson, Texas 75082
         
         Tel: +1-800-USE-FTAC (1-800-873-3822)
         Email: ftac@fnc.fujitsu.com
         Web: www.fujitsu.com/us/services/telecom";
    
        description
          "This module contains YANG definitions 
         for the OTU Interfaces of an Optical White Box (OWB).
         
         Copyright (c) 2015 Fujitsu Ltd.
         All rights reserved. ";
    
        revision "2018-07-24" {
          description
            "Tim-Act-Enabled for TTI/ANSI";
        }
    
        revision "2018-04-19" {
          description
            "default values not needed for oper sapi/dapi";
        }
    
        revision "2018-02-04" {
          description
            "adding description for leaf tim-det-mode.";
        }
    
        revision "2015-08-13" {
          description "Initial revision.";
        }
    
    
        typedef itu-otn-tti-sapi {
          type string {
            length "0..15";
          }
          default "";
          description
            "Source Access Point Identifier";
        }
    
        typedef itu-otn-tti-dapi {
          type string {
            length "0..15";
          }
          default "";
          description
            "Destination Access Point Identifier";
        }
    
        typedef itu-otn-tti-op-spec {
          type string {
            length "0..32";
          }
          default "";
          description "Operator Spec";
        }
    
        typedef itu-otn-oper-tti-sapi {
          type string {
            length "0..15";
          }
          description
            "Source Access Point Identifier";
        }
    
        typedef itu-otn-oper-tti-dapi {
          type string {
            length "0..15";
          }
          description
            "Destination Access Point Identifier";
        }
    
        typedef itu-otn-oper-tti-op-spec {
          type string {
            length "0..32";
          }
          description "Operator Spec";
        }
    
        typedef ansi-otn-tti {
          type string {
            length "0..62";
          }
          default "";
          description "Trail Trace Identifier";
        }
    
        typedef itu-tim-det-mode {
          type enumeration {
            enum "off" {
              value 0;
              description "TIM detection off";
            }
            enum "sapi-only" {
              value 1;
              description
                "TIM detection sapi only";
            }
            enum "dapi-only" {
              value 2;
              description
                "TIM detection dapi only";
            }
            enum "op-spec-only" {
              value 3;
              description
                "TIM detection op-spec only";
            }
            enum "sapi-and-dapi" {
              value 4;
              description
                "TIM detection sapi and dapi";
            }
            enum "sapi-and-op-spec" {
              value 5;
              description
                "TIM detection sapi and op-spec";
            }
            enum "dapi-and-op-spec" {
              value 6;
              description
                "TIM detection dapi and op-spec";
            }
            enum "all" {
              value 7;
              description
                "TIM detection all (sapi, dapi, op-spec)";
            }
          }
          default "off";
          description "TIM detection mode";
        }
    
        grouping otn-tti-itu {
          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";
          }
        }  // grouping otn-tti-itu
    
        grouping otn-oper-tti-itu {
          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";
          }
        }  // grouping otn-oper-tti-itu
    
        grouping otn-tti-ansi {
          leaf tti {
            type ansi-otn-tti;
            description "Trail Trace Identifier";
          }
        }  // grouping otn-tti-ansi
    
        grouping tti-choice {
          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";
                uses otn-tti-itu;
              }  // container tx-tti
    
              container rx-tti {
                config false;
                description
                  "Received Trail Trace Identifier";
                uses otn-oper-tti-itu;
              }  // container rx-tti
    
              container exp-tti {
                description
                  "Expected Trail Trace Identifier";
                uses otn-tti-itu;
              }  // 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";
                uses otn-tti-ansi;
              }  // container tx-tti
    
              container rx-tti {
                config false;
                description
                  "Received Trail Trace Identifier";
                uses otn-tti-ansi;
              }  // container rx-tti
    
              container exp-tti {
                description
                  "Expected Trail Trace Identifier";
                uses otn-tti-ansi;
              }  // container exp-tti
    
              leaf tim-act-enabled {
                type boolean;
                description
                  "Enables TTI Mismatch consequent actions.";
              }
            }  // container tti-ansi
          }  // choice standard
        }  // grouping tti-choice
    
        augment /notifications:event-notification {
          container tti {
            when
              "/notifications:event-notification/notifications:event-type-id =
             'notification-types:otuReceivedTraceChange'";
            description
              "OTN Received Trace Change";
            container current-tti {
              description
                "Current received Trail Trace Identifier";
              choice standard {
                case itu {
                  uses otn-tti-itu;
                }  // case itu
    
                case ansi {
                  uses otn-tti-ansi;
                }  // case ansi
              }  // choice standard
            }  // container current-tti
    
            container previous-tti {
              description
                "Previous received Trail Trace Identifier";
              choice standard {
                case itu {
                  uses otn-tti-itu;
                }  // case itu
    
                case ansi {
                  uses otn-tti-ansi;
                }  // case ansi
              }  // choice standard
            }  // container previous-tti
          }  // container tti
        }
      }  // module fujitsu-otn
    

© 2023 YumaWorks, Inc. All rights reserved.