huawei-bd-ext

BD ext.

  • Version: 2020-06-22

    huawei-bd-ext@2020-06-22


    
      module huawei-bd-ext {
    
        yang-version 1;
    
        namespace
          "urn:huawei:yang:huawei-bd-ext";
    
        prefix bd-ext;
    
        import huawei-bd {
          prefix bd;
        }
        import huawei-qos {
          prefix qos;
        }
        import huawei-extension {
          prefix ext;
        }
        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 "BD ext.";
    
        revision "2020-06-22" {
          description
            "Add reset-bd-ac-suppression-statistics.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-03-06" {
          description "Add pipe type.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-01-13" {
          description "Modify description.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-04-23" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "forwarding";
    
        typedef bd-pipe-mode {
          type enumeration {
            enum "pipe" {
              value 1;
              description "BD pipe mode.";
            }
            enum "shortpipe" {
              value 2;
              description "BD short pipe mode.";
            }
            enum "uniform" {
              value 3;
              description "BD uniform mode.";
            }
          }
          description "BD pipe mode.";
        }
    
        typedef bd-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 bd-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 bd-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-bd-ac-suppression-statistics {
          ext:node-ref "/bd:bd/bd:instances/bd:instance/bd:service-points/bd:service-point";
          description "Reset AC suppression.";
          input {
            leaf interface-name {
              type leafref {
                path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name";
              }
              mandatory true;
              description "Interface name.";
            }
    
            leaf bd-id {
              type uint32 {
                range "1..16777215";
              }
              mandatory true;
              description "BD ID.";
            }
          }
        }  // rpc reset-bd-ac-suppression-statistics
      }  // module huawei-bd-ext
    

© 2023 YumaWorks, Inc. All rights reserved.