Cisco-IOS-XE-ethernet-rpc

Copyright (c) 2021 by Cisco Systems, Inc. All rights reserved.

  • Version: 2021-07-01

    Cisco-IOS-XE-ethernet-rpc@2021-07-01


    
      module Cisco-IOS-XE-ethernet-rpc {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XE-ethernet-rpc";
    
        prefix Cisco-IOS-XE-ethernet-rpc;
    
        import ietf-yang-types {
          prefix yang;
        }
        import cisco-semver {
          prefix cisco-semver;
        }
    
        organization "Cisco Systems, Inc.";
    
        contact
          "Cisco Systems, Inc.
         Customer Service
    
         Postal: 170 W Tasman Drive
         San Jose, CA 95134
    
         Tel: +1 1800 553-NETS
    
         E-mail: cs-yang@cisco.com";
    
        description
          "Copyright (c) 2021 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2021-07-01" {
          description "Initial revision";
          reference
            "1.0.0";
    
        }
    
        cisco-semver:module-version "1.0.0";
    
        typedef remote-loopback-actions {
          type enumeration {
            enum "remote-loopback-start" {
              value 0;
              description
                "Start OAM remote-loopback";
            }
            enum "remote-loopback-stop" {
              value 1;
              description
                "Stop OAM remote-loopback";
            }
          }
          description
            "Ethernet OAM remote-loopback start/stop action";
        }
    
        typedef latching-loopback-actions {
          type enumeration {
            enum "latching-loopback-activate" {
              value 0;
              description
                "Activate ethernet latching-loopback";
            }
            enum "latching-loopback-deactivate" {
              value 1;
              description
                "Deactivate ethernet latching-loopback";
            }
          }
          description
            "Ethernet latching-loopback activate/deactivate action";
        }
    
        grouping remote-loopback {
          description
            "Ethernet OAM remote-loopback start/stop profile";
          leaf action {
            type remote-loopback-actions;
            mandatory true;
            description
              "Start or stop action for remote-loopback";
          }
    
          leaf interface {
            type string {
              length "1..99";
              pattern '[0-9a-zA-Z/\-_]*';
            }
            mandatory true;
            description
              "Interface name to start/stop ethernet OAM remote-loopback";
          }
        }  // grouping remote-loopback
    
        grouping latching-loopback {
          description
            "Ethernet latching-loopback activate/deactivate profile";
          leaf action {
            type latching-loopback-actions;
            mandatory true;
            description
              "Activate/deactivate action for ethernet latching-loopback";
          }
    
          leaf domain {
            type string {
              length "1..64";
              pattern '[0-9a-zA-Z\-_]*';
            }
            mandatory true;
            description
              "Ethernet CFM (Connectivity fault management) domain name";
          }
    
          leaf id {
            type uint16 {
              range "1..8191";
            }
            mandatory true;
            description
              "Local MEP(Maintenance End Point) id";
          }
    
          leaf service {
            type string {
              length "1..64";
              pattern '[0-9a-zA-Z\-_\^]*';
            }
            mandatory true;
            description
              "Ethernet CFM(Connectivity fault management) maintenance
             association name";
          }
    
          leaf destination-mac {
            type yang:mac-address;
            mandatory true;
            description
              "MAC address of remote device";
          }
    
          leaf timeout {
            when
              "(../action = 'latching-loopback-activate')";
            type uint32 {
              range "0..90000";
            }
            units "seconds";
            default "300";
            description
              "Timeout value of latching loopback in seconds.
             0 for permanent latching loopback session";
          }
        }  // grouping latching-loopback
    
        rpc ethernet-oam {
          description
            "Start/Stop ethernet OAM remote-loopback on interface";
          input {
            uses Cisco-IOS-XE-ethernet-rpc:remote-loopback;
          }
        }  // rpc ethernet-oam
    
        rpc eth-lat-loopback {
          description
            "Ethernet latching-loopback activate/deactivate";
          input {
            uses Cisco-IOS-XE-ethernet-rpc:latching-loopback;
          }
        }  // rpc eth-lat-loopback
      }  // module Cisco-IOS-XE-ethernet-rpc
    

© 2023 YumaWorks, Inc. All rights reserved.