huawei-l2vpn-vpls-ext

L2VPN VPLS ext.

  • Version: 2020-03-24

    huawei-l2vpn-vpls-ext@2020-03-24


    
      module huawei-l2vpn-vpls-ext {
    
        yang-version 1;
    
        namespace
          "urn:huawei:yang:huawei-l2vpn-vpls-ext";
    
        prefix l2vpn-vpls-ext;
    
        import huawei-l2vpn {
          prefix l2vpn;
        }
        import huawei-qos {
          prefix qos;
        }
        import huawei-extension {
          prefix ext;
        }
    
        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 "L2VPN VPLS ext.";
    
        revision "2020-03-24" {
          description "Add must condition.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-03-09" {
          description "Add pipe type.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-01-17" {
          description
            "Modify container reserve-if-switch.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-01-13" {
          description
            "Modify container name and description.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-11-15" {
          description
            "Modify typedef defination.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-04-23" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "forwarding";
    
        typedef l2vpn-pipe-mode {
          type enumeration {
            enum "pipe" {
              value 1;
              description
                "The L2VPN pipe mode is pipe.";
            }
            enum "shortPipe" {
              value 2;
              description
                "The L2VPN pipe mode is short pipe.";
            }
            enum "uniform" {
              value 3;
              description
                "The L2VPN pipe mode is uniform.";
            }
          }
          description "L2VPN pipe mode.";
        }
    
        typedef l2vpn-service-class {
          type enumeration {
            enum "be" {
              value 0;
              description
                "Specify the CoS as BE.";
            }
            enum "af1" {
              value 1;
              description
                "Specify the CoS as AF1.";
            }
            enum "af2" {
              value 2;
              description
                "Specify the CoS as AF2.";
            }
            enum "af3" {
              value 3;
              description
                "Specify the CoS as AF3.";
            }
            enum "af4" {
              value 4;
              description
                "Specify the CoS as AF4.";
            }
            enum "ef" {
              value 5;
              description
                "Specify the CoS as EF.";
            }
            enum "cs6" {
              value 6;
              description
                "Specify the CoS as CS6.";
            }
            enum "cs7" {
              value 7;
              description
                "Specify the CoS as CS7.";
            }
          }
          description "Description of CoS.";
        }
    
        typedef l2vpn-color {
          type enumeration {
            enum "green" {
              value 0;
              description
                "Specify the packet color as green.";
            }
            enum "yellow" {
              value 1;
              description
                "Specify the packet color as yellow.";
            }
            enum "red" {
              value 2;
              description
                "Specify the packet color as red.";
            }
          }
          description
            "Description of packet color.";
        }
    
        typedef l2vpn-trust-type {
          type enumeration {
            enum "outpri" {
              value 0;
              description
                "Specify the trust type as OUTTER-VLAN-8021P.";
            }
            enum "inpri" {
              value 1;
              description
                "Specify the trust type as INNER-VLAN-8021P.";
            }
            enum "ipdscp" {
              value 2;
              description
                "Specify the trust type as IP-DSCP.";
            }
          }
          description
            "Description of trust type.";
        }
    
        rpc reset-vsi-ac-suppression-statistics {
          ext:node-ref "/l2vpn:l2vpn/l2vpn:instances/l2vpn:instance/l2vpn:vpls";
          description "Reset AC suppression.";
          input {
            leaf interface-name {
              type leafref {
                path "/l2vpn:l2vpn/l2vpn:instances/l2vpn:instance/l2vpn:vpls/l2vpn:acs/l2vpn:ac/l2vpn:interface-name";
              }
              mandatory true;
              description "Interface name.";
            }
    
            leaf vsi-name {
              type leafref {
                path "/l2vpn:l2vpn/l2vpn:instances/l2vpn:instance/l2vpn:name";
              }
              mandatory true;
              description "VSI name.";
            }
          }
        }  // rpc reset-vsi-ac-suppression-statistics
      }  // module huawei-l2vpn-vpls-ext
    

© 2023 YumaWorks, Inc. All rights reserved.