cisco-evpn-service

This module defines the top level model for evpn service deployment. Copyright (c) 2021 by Cisco Systems, Inc. All rights reserv...

  • Version: 2020-12-10

    cisco-evpn-service@2020-12-10


    
      module cisco-evpn-service {
    
        yang-version 1.1;
    
        namespace
          "http://cisco.com/yang/evpn/cisco-evpn-service";
    
        prefix cisco-evpn-service;
    
        import ietf-yang-types {
          prefix yang;
        }
        import ietf-routing-types {
          prefix ietf-routing-types;
        }
        import ietf-inet-types {
          prefix inet;
        }
        import Cisco-IOS-XE-types {
          prefix ios-types;
        }
    
        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
          "This module defines the top level model for evpn service deployment.
         Copyright (c) 2021 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2020-12-10" {
          description "Latest.";
          reference
            "0.2.0";
    
        }
    
    
        typedef urib-time-str {
          type string;
        }
    
        typedef urib-counter32 {
          type uint32;
        }
    
        typedef l3-vrf-name {
          type string {
            pattern
              '[A-Za-z0-9!@#$\^\*=\+\{\}\.;:_-]{1,32}';
          }
        }
    
        typedef nw-if-id {
          type string;
        }
    
        typedef l2rib-mac-rtflags {
          type string;
        }
    
        typedef l2-mac-type {
          type enumeration {
            enum "unknown" {
              value 0;
              description "Unknown";
            }
            enum "primary" {
              value 1;
              description "Primary";
            }
            enum "gateway" {
              value 2;
              description "Gateway";
            }
            enum "overlay" {
              value 4;
              description "Overlay";
            }
            enum "primary-vpc-peer" {
              value 5;
              description
                "Primary MAC using VPC peer-link";
            }
            enum "control-plane" {
              value 6;
              description "Control Plane";
            }
            enum "vsan" {
              value 7;
              description "VSAN";
            }
          }
          default "primary";
        }
    
        typedef l2-mac-info {
          type enumeration {
            enum "standard" {
              value 0;
              description "Standard";
            }
            enum "drop" {
              value 1;
              description "Drop";
            }
            enum "svi-down-flood" {
              value 2;
              description "SVI DOWN FLOOD";
            }
            enum "sup-inband-cfsoe" {
              value 3;
              description "SUP INBAND CFSOE";
            }
            enum "vpc-peer-link" {
              value 4;
              description "VPC peer-link";
            }
            enum "nve" {
              value 5;
              description "NVE";
            }
            enum "sup-eth" {
              value 6;
              description "SUP-ETH";
            }
          }
          default "standard";
        }
    
        typedef l2rib-generic-flags {
          type string;
        }
    
        typedef l2rib-mac-rt-resolution {
          type enumeration {
            enum "mac-res-unknown" {
              value 0;
              description
                "MAC resolution unknown; do not use paths
               from MAC route";
            }
            enum "mac-res-regular" {
              value 1;
              description
                "Do not resolve; use paths from MAC route";
            }
            enum "mac-res-esi" {
              value 2;
              description
                "ESI resolution via EAD routes for EVPN";
            }
            enum "mac-res-bmac" {
              value 3;
              description
                "Populate path-lists indexed by BMAC address.";
            }
            enum "mac-res-peer-sync" {
              value 4;
              description
                "Routes from the ESI-peer.
               No need for Peerid/ESI resolution";
            }
          }
        }
    
        typedef evpn-route-type {
          type enumeration {
            enum "ethernet-auto-discovery" {
              value 1;
              description
                "Ethernet auto discovery route";
            }
            enum "mac-ip-advertisement" {
              value 2;
              description
                "Mac-IP advertisement route";
            }
            enum
              "inclusive-multicast-ethernet-tag" {
              value 3;
              description
                "Inclusive multicast ethernet-tag route";
            }
            enum "ethernet-segment" {
              value 4;
              description
                "Ethernet segment route";
            }
            enum "ip-prefix" {
              value 5;
              description "IP prefix route";
            }
          }
          default "mac-ip-advertisement";
        }
    
        typedef urib-nexthop-encap {
          type enumeration {
            enum "none" {
              value 0;
              description "Not set";
            }
            enum "vxlan" {
              value 1;
              description " encapsulation";
            }
            enum "invalid" {
              value 2;
              description "Invalid";
            }
          }
        }
    
        typedef urib-yes-no {
          type enumeration {
            enum "No" {
              value 0;
              description "No";
            }
            enum "Yes" {
              value 1;
              description "Yes";
            }
          }
        }
    
        typedef zero-based-counter32 {
          type yang:zero-based-counter32;
          description
            "A 32-bit counter. NOTE - This counter type is not currnetly
           implemented in openconfig-yang-types.";
        }
    
        typedef ethernet-segment-identifier-type {
          type yang:hex-string {
            length "29";
          }
          description
            "10-octet Ethernet segment identifier (esi),
           ex: 00:5a:5a:5a:5a:5a:5a:5a:5a:5a";
        }
      }  // module cisco-evpn-service
    

© 2023 YumaWorks, Inc. All rights reserved.