huawei-flow-recognition

Flow recognition.

  • Version: 2020-03-27

    huawei-flow-recognition@2020-03-27


    
      module huawei-flow-recognition {
    
        yang-version 1;
    
        namespace
          "urn:huawei:yang:huawei-flow-recognition";
    
        prefix flow-recognition;
    
        import huawei-pub-type {
          prefix pub-type;
        }
        import huawei-extension {
          prefix ext;
        }
        import ietf-inet-types {
          prefix inet;
        }
        import huawei-ifm {
          prefix ifm;
        }
        import huawei-ethernet {
          prefix ethernet;
        }
    
        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 "Flow recognition.";
    
        reference
          "Huawei private.";
    
    
        revision "2020-03-27" {
          description
            "Added configure function to the YANG file.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-06-13" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "esqm";
    
        container flow-recognition {
          description
            "Collect flow information.";
          container streaminfos {
            config false;
            description
              "List of flow information.";
            list streaminfo {
              key "src-mac dst-mac src-ip-addr dst-ip-addr src-port dst-port protocol";
              description
                "Statistics of flow information.";
              leaf src-mac {
                type pub-type:mac-address;
                description
                  '"Source mac address."';
              }
    
              leaf dst-mac {
                type pub-type:mac-address;
                description
                  '"Destination mac address."';
              }
    
              leaf src-ip-addr {
                type inet:ip-address-no-zone;
                description
                  '"IP source address."';
              }
    
              leaf dst-ip-addr {
                type inet:ip-address-no-zone;
                description
                  '"IP destination address."';
              }
    
              leaf src-port {
                type uint16;
                description '"Source port."';
              }
    
              leaf dst-port {
                type uint16;
                description
                  '"Destination port."';
              }
    
              leaf protocol {
                type uint8;
                description
                  '"Protocol,eg 6 (TCP)."';
              }
    
              leaf direction {
                type uint8;
                description '"Direction."';
              }
    
              leaf if-name {
                type pub-type:if-name;
                description '"Interface Name."';
              }
    
              leaf time-stamp-sec {
                type uint32;
                units "s";
                description
                  '"Seconds from 1970."';
              }
    
              leaf time-stamp-nsec {
                type uint32;
                units "ns";
                description
                  '"Nano-seconds in 1 sec."';
              }
    
              leaf packet-num {
                type uint64;
                description
                  '"The packets num of the flow."';
              }
    
              leaf bytes-num {
                type uint64;
                description
                  '"The bytes num of the flow."';
              }
            }  // list streaminfo
          }  // container streaminfos
        }  // container flow-recognition
      }  // module huawei-flow-recognition
    

© 2023 YumaWorks, Inc. All rights reserved.