huawei-qppb

QPPB module.

  • Version: 2020-06-11

    huawei-qppb@2020-06-11


    
      module huawei-qppb {
    
        yang-version 1;
    
        namespace "urn:huawei:yang:huawei-qppb";
    
        prefix qppb;
    
        import huawei-extension {
          prefix ext;
        }
        import huawei-qos {
          prefix qos;
        }
        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 "QPPB module.";
    
        revision "2020-06-11" {
          description
            "Modify descriptions and add units.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-03-12" {
          description
            "Descriptive optimization.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-02-25" {
          description
            "The modifications in the schema file are synchronized to the YANG file.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-05-05" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "qos";
    
        typedef direction-type {
          type enumeration {
            enum "inbound" {
              value 0;
              description "Inbound.";
            }
            enum "outbound" {
              value 1;
              description "Outbound.";
            }
          }
          description "Direction type.";
        }
    
        typedef qppb-direction-type {
          type enumeration {
            enum "inbound" {
              value 2;
              description "Inbound.";
            }
            enum "outbound" {
              value 3;
              description "Outbound.";
            }
          }
          description "QPPB direction type.";
        }
    
        typedef behavior-state {
          type enumeration {
            enum "active" {
              value 0;
              description "All active.";
            }
            enum "active-p" {
              value 1;
              description "Part active.";
            }
            enum "inactive" {
              value 2;
              description "Inactive.";
            }
          }
          description "QPPB behavior state.";
        }
    
        typedef traffic-mode {
          type enumeration {
            enum "source" {
              value 0;
              description "Source address.";
            }
            enum "destination" {
              value 1;
              description "Destination address.";
            }
            enum "both" {
              value 2;
              description
                "Source and Destination address.";
            }
          }
          description "Traffic mode.";
        }
    
        typedef qppb-mode {
          type enumeration {
            enum "source" {
              value 0;
              description "Source address.";
            }
            enum "destination" {
              value 1;
              description "Destination address.";
            }
          }
          description "QPPB mode.";
        }
    
        rpc reset-local-policy-statistics {
          ext:node-ref "/qos:qos/qppb:qppb/qppb:query-statistics";
          description
            "To clear local policy statistics.";
          input {
            leaf interface-name {
              type leafref {
                path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name";
              }
              mandatory true;
              description "Interface name.";
            }
    
            leaf direction {
              type qppb-direction-type;
              mandatory true;
              description "Direction.";
            }
    
            leaf local-id {
              type uint32 {
                range "1..255";
              }
              description "Local ID.";
            }
          }
        }  // rpc reset-local-policy-statistics
      }  // module huawei-qppb
    

© 2023 YumaWorks, Inc. All rights reserved.