Loopdetect.
Version: 2020-03-06
module huawei-loopdetect { yang-version 1; namespace "urn:huawei:yang:huawei-loopdetect"; prefix loopdetect; import huawei-ifm { prefix ifm; } 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 "Loopdetect."; revision "2020-03-06" { description "Change description."; reference "Huawei private."; } revision "2019-04-08" { description "Initial revision."; reference "Huawei private."; } ext:task-name "vlan"; container loopdetect { description "Loop detection."; container ldetect-global { presence "Enable global loop-detect."; description "Enable/disable global loop-detect."; leaf loose-identifier { type string { length "1..16"; } description "Global loop-detect loose identifier."; } } // container ldetect-global container trigger-detect { description "Configure trigger detect."; container global { description "Configure global auto loop detection."; leaf enable { type boolean; default "false"; description "Enable/disable global auto loop detection."; } leaf min-slot-up-time { type uint32 { range "1..100"; } units "min"; default "30"; description "Min slot up time."; } leaf min-port-up-time { type uint32 { range "1..600"; } units "min"; default "10"; description "Min port up time."; } } // container global } // container trigger-detect } // container loopdetect augment /ifm:ifm/ifm:interfaces/ifm:interface { description "Interface."; container loopdetect { description "Configure loop detection."; container mac-withdraw { presence "create loopdetect-mac-withdraw"; description "Enable/disable loop-detect MAC-withdraw."; } // container mac-withdraw container loopback-detect { presence "create loopback-detect"; description "Enable/disable loopback detect."; leaf block-time { type uint32 { range "5..1000"; } units "s"; default "10"; description "Loopback detect block time."; } } // container loopback-detect container loop-detect { when "/loopdetect:loopdetect/loopdetect:ldetect-global"; presence "create loop-detect"; description "Enable/disable loop detect instance."; leaf block-time-type { type enumeration { enum "perp-block-time" { value 1; description "Perpetual block time."; } enum "norm-block-time" { value 2; description "Normal block time."; } } description "Loop detect block time type."; } leaf block-time-value { when "../block-time-type='norm-block-time'"; type uint16 { range "1..255"; } units "s"; mandatory true; description "Block time."; } leaf trigger-down { type boolean; default "false"; description "Enable/disable loop detect triggerdown."; } leaf packet-priority { type uint32 { range "0..7"; } default "6"; description "Loop-detect protocol packet priority."; } leaf only-alarm { type boolean; default "false"; description "Enable/disable only send alarm with the interface block."; } } // container loop-detect } // container loopdetect } } // module huawei-loopdetect
© 2023 YumaWorks, Inc. All rights reserved.