Flow recognition.
Version: 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 augment /ifm:ifm/ifm:interfaces/ifm:interface { description "Configure the flow recognition for interface."; container flow-recognition { description "Configure the flow recognition management."; container flow-enables { description "List of the interface flow recognition."; list flow-enable { must "not(../../../ethernet:ethernet/ethernet:main-interface/ethernet:l2-attribute)"; must "../../../ifm:type='100GE' or ../../../ifm:type='25GE' or ../../../ifm:type='200GE' or ../../../ifm:type='400GE' or ../../../ifm:type='40GE' or ../../../ifm:type='10GE' or ../../../ifm:type='50GE' or ../../../ifm:type='10x10GE' or ../../../ifm:type='3x40GE' or ../../../ifm:type='4x10GE' or ../../../ifm:type='4x25GE' or ../../../ifm:type='50|100GE' or ../../../ifm:type='Ethernet' or ../../../ifm:type='GigabitEthernet' or ../../../ifm:type='XGigabitEthernet' or ../../../ifm:type='FlexE'"; key "direction"; description "Configure the interface flow recognition mode."; leaf direction { type enumeration { enum "inbound" { value 0; description "Indicates the interface flow recognition inbound mode."; } } description "Direction of interface flow recognition mode."; } } // list flow-enable } // container flow-enables } // container flow-recognition } } // module huawei-flow-recognition
© 2023 YumaWorks, Inc. All rights reserved.