fujitsu-notifications

This module contains a collection of YANG definitions for additional notifications. Copyright (c) 2015 Fujitsu Ltd. All rights ...

  • Version: 2015-11-20

    fujitsu-notifications@2015-11-20


    
      module fujitsu-notifications {
    
        yang-version 1;
    
        namespace
          "urn:fujitsu:params:xml:ns:yang:notifications";
    
        prefix fujitsu-notifications;
    
        import ietf-yang-types {
          prefix yang;
        }
    
        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 a collection of YANG definitions for
    additional notifications.
    
    Copyright (c) 2015 Fujitsu Ltd.
    All rights reserved. ";
    
        revision "2015-11-20" {
          description "Initial revision.";
        }
    
    
        identity event-identity {
          description
            "Base identity for event types.  A unique identification of the
    event, not including the resource.  Different resources can
    share event types.
    
    A string-based qualifier can be used in addition to the
    identity in order to have different alarm types based on
    information not known at design-time.
    
    This identity is abstract and shall not be used for events.";
        }
    
        typedef event-type-id {
          type identityref {
            base event-identity;
          }
          description
            "Identifies an event type.";
        }
    
        typedef event-type-qualifier {
          type string;
          description
            "If an event type can not be fully specified at design-time by
    event-type-id, this string qualifier is used in addition to
    fully define a unique event type.";
        }
    
        typedef resource {
          type union {
            type instance-identifier;
            type yang:object-identifier;
            type string;
          }
          description
            "If the resource reporting the event is modelled in YANG,
    this type will be an instance-identifier.  If the resource
    is an SNMP object, the type will be an object-identifier.
    If the resource is anything else, this type will be a string.";
        }
    
        typedef event-text {
          type string {
            length "1..1024";
          }
          description
            "The string used to inform operators about the event.  This
    MUST contain enough information for an operator to be able
    to understand the event.  If this string contains structure,
    this format should be clearly documented for programs to be
    able to parse that information.";
        }
    
        notification event-notification {
          description
            "This notification is used to report an event.";
          leaf resource {
            type resource;
            mandatory true;
            description
              "The resource reporting the event.";
          }
    
          leaf event-type-id {
            type event-type-id;
            mandatory true;
            description
              "This leaf and the leaf 'event-type-qualifier' together
    provides a unique identification of the event type.";
          }
    
          leaf event-type-qualifier {
            type event-type-qualifier;
            description
              "This leaf is used when the 'event-type-id' leaf cannot
    uniquely identify the event type.
    Event's location and direction are included in this qualifier.
    Threshold crossover events would also include time-period";
          }
    
          leaf event-time {
            type yang:date-and-time;
            mandatory true;
            description
              "The time the event occurred.  The value represents the time
    the real event occurred in the resource and not when it was
    notified.";
          }
    
          leaf event-text {
            type event-text;
            mandatory true;
            description
              "A user friendly text describing the reason for event.";
          }
    
          leaf circuit-id {
            type string {
              length "0..45";
            }
            description
              "Circuit identifier of the resource, if available.";
          }
    
          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 {
                  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";
                  }
                }  // case itu
                leaf tti {
                  type ansi-otn-tti;
                  description
                    "Trail Trace Identifier";
                }
              }  // choice standard
            }  // container current-tti
    
            container previous-tti {
              description
                "Previous received Trail Trace Identifier";
              choice standard {
                case 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";
                  }
                }  // case itu
                leaf tti {
                  type ansi-otn-tti;
                  description
                    "Trail Trace Identifier";
                }
              }  // choice standard
            }  // container previous-tti
          }  // container tti
    
          container oper-status {
            when
              "/notifications:event-notification/notifications:event-type-id =
    'notification-types:entityOperStatusChange'";
            description
              "Entity Operational Status";
            leaf current-oper-status {
              type entity-states:oper-status;
            }
    
            leaf previous-oper-status {
              type entity-states:oper-status;
            }
          }  // container oper-status
    
          container physical-inventory {
            description
              "Equipment Pyhical Inventory";
            leaf vendorName {
              type string;
              description
                "A unique string describing the vendor name.";
            }
    
            leaf unitName {
              type string;
              description
                "A unique string describing the type of unit.";
            }
    
            leaf vendorUnitCode {
              type string;
              description "Vendor unit code.";
            }
    
            leaf IssueNumber {
              type string;
              description "HW Issue # ";
            }
    
            leaf fcNumber {
              type string;
              description "FC Number ";
            }
    
            leaf clei {
              type string;
              description
                "Common Language Equipment Identification";
            }
    
            leaf dom {
              type string;
              description
                "Date of manufacture. For example, YY.MM or YYMMDD";
            }
    
            leaf serialNumber {
              type string;
              description "Unit serial number";
            }
    
            leaf usi {
              type string;
              description
                "Unique Serial Identifier which includes the manufacturing location code";
            }
          }  // container physical-inventory
        }  // notification event-notification
      }  // module fujitsu-notifications
    

© 2023 YumaWorks, Inc. All rights reserved.