ietf-service-assurance-interface

This module extends the ietf-service-assurance module to add support for the interface subservice. It checks whether an interfa...

  • Version: 2023-07-11

    ietf-service-assurance-interface@2023-07-11


    
      module ietf-service-assurance-interface {
    
        yang-version 1.1;
    
        namespace
          "urn:ietf:params:xml:ns:yang:ietf-service-assurance-interface";
    
        prefix sain-interface;
    
        import ietf-service-assurance {
          prefix sain;
          reference
            "RFC 9418: YANG Modules for Service Assurance";
    
    
        }
    
        organization "IETF OPSAWG Working Group";
    
        contact
          "WG Web:   <https://datatracker.ietf.org/wg/opsawg/>
         WG List:  <mailto:opsawg@ietf.org>
         Author:   Benoit Claise  <mailto:benoit.claise@huawei.com>
         Author:   Jean Quilbeuf   <mailto:jean.quilbeuf@huawei.com>";
    
        description
          "This module extends the ietf-service-assurance module to add
         support for the interface subservice.
    
         It checks whether an interface is healthy.
    
         Copyright (c) 2023 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 Revised BSD License
         set forth in Section 4.c of the IETF Trust's Legal Provisions
         Relating to IETF Documents
         (https://trustee.ietf.org/license-info).
    
         This version of this YANG module is part of RFC 9418; see the
         RFC itself for full legal notices.  ";
    
        revision "2023-07-11" {
          description "Initial revision.";
          reference
            "RFC 9418: YANG Modules for Service Assurance";
    
        }
    
    
        identity interface-type {
          base sain:subservice-base;
          description
            "Checks whether an interface is healthy.";
        }
    
        augment /sain:subservices/sain:subservice/sain:parameter {
          when
            "derived-from-or-self(sain:type, 'interface-type')";
          description
            "Augments the parameter choice from ietf-service-assurance
           module with a case specific to the interface subservice.";
          container parameters {
            description
              "Parameters for the interface subservice type.";
            leaf device {
              type string;
              mandatory true;
              description
                "Device supporting the interface.";
            }
    
            leaf interface {
              type string;
              mandatory true;
              description
                "Name of the interface.";
            }
          }  // container parameters
        }
      }  // module ietf-service-assurance-interface
    

© 2023 YumaWorks, Inc. All rights reserved.