huawei-evpn-srv6

EVPN SRv6 configuration.

  • Version: 2020-03-08

    huawei-evpn-srv6@2020-03-08


    
      module huawei-evpn-srv6 {
    
        yang-version 1;
    
        namespace
          "urn:huawei:yang:huawei-evpn-srv6";
    
        prefix evpn-srv6;
    
        import huawei-network-instance {
          prefix ni;
        }
        import huawei-extension {
          prefix ext;
        }
        import huawei-evpl {
          prefix evpl;
        }
        import huawei-bgp {
          prefix bgp;
        }
        import huawei-bgp-evpn {
          prefix bgp-evpn;
        }
        import huawei-evpn {
          prefix evpn;
        }
        import huawei-srv6 {
          prefix srv6;
        }
        import ietf-inet-types {
          prefix inet;
        }
        import huawei-ifm {
          prefix ifm;
        }
    
        organization
          "Huawei Technologies Co., Ltd.";
    
        contact
          "Huawei Industrial Base
         Bantian, Longgang
         Shenzhen 518129
         People's Republic of China
         Website: http://www.huawei.com
         Email: support@huawei.com";
    
        description "EVPN SRv6 configuration.";
    
        revision "2020-03-08" {
          description
            "The modifications is removing the leaf auto-sid-disable,changing the container name of apply-sid-specify-nexthop and adding the default value of apply-sid-mode.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-12-17" {
          description
            "The modifications is removing the leaf auto-sid-disable,changing the container name of apply-sid-specify-nexthop and adding the default value of apply-sid-mode.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-12-16" {
          description
            "The modifications in the schema file are synchronized to the YANG file.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-03-22" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "evpnbgp";
    
        typedef apply-sid-mode {
          type enumeration {
            enum "per-instance" {
              value 0;
              description
                "Set apply sid per instance mode.";
            }
            enum "per-nexthop-all" {
              value 1;
              description
                "Set apply sid all nexthop mode.";
            }
            enum "per-nexthop-specify" {
              value 2;
              description
                "Set apply sid specify nexthop mode.";
            }
          }
          description
            "Apply SID for segment-routing IPv6 in EVPN.";
        }
    
        typedef next-header-type {
          type enumeration {
            enum "exnh59" {
              value 59;
              description
                "The value of SRv6 next header type is 59.";
            }
            enum "exnh143" {
              value 143;
              description
                "The value of SRv6 next header type is 143.";
            }
          }
          description
            "The value of SRv6 next header type.";
        }
    
        typedef apply-sid-mode-import-vpn-rib {
          type enumeration {
            enum "per-route" {
              value 1;
              description
                "Set apply sid per route mode.";
            }
            enum "per-nexthop" {
              value 2;
              description
                "Set apply sid per nexthop mode.";
            }
          }
          description
            "Apply SID for imported vpn RIBs.";
        }
    
        container evpn-srv6 {
          description "EVPN SRv6 configuration.";
          container base-process {
            description
              "Configure EVPN SRv6 base process.";
            leaf srv6-next-header {
              type next-header-type;
              default "exnh143";
              description
                "The value of SRv6 next header type.";
            }
          }  // container base-process
        }  // container evpn-srv6
      }  // module huawei-evpn-srv6
    

© 2023 YumaWorks, Inc. All rights reserved.