Global Configuration.
Version: 2021-04-20
module huawei-fwd-engine { yang-version 1; namespace "urn:huawei:yang:huawei-fwd-engine"; prefix fwd-engine; import huawei-extension { prefix ext; } import huawei-devm { prefix devm; } 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 "Global Configuration."; revision "2021-04-20" { description "Added frame-padding-fix."; reference "Huawei private."; } revision "2020-03-09" { description "Initial revision."; reference "Huawei private."; } ext:task-name "device-mgr"; augment /devm:devm { description "Forward engine configuration."; container fwd-performance-alarms { description "List of forwarding performance alarm."; list fwd-performance-alarm { ext:generated-by "system"; ext:operation-exclude "create|delete"; key "slot-id"; description "Configure the alarm reporting and alarm clearance thresholds for forwarding performance."; leaf slot-id { type string { length "1..15"; } description "Slot ID."; } leaf report-threshold { type uint32 { range "0..100"; } units "%"; must "(../report-threshold>../clear-threshold and ../report-threshold!=0 and ../clear-threshold!=0) or (../report-threshold=0 and ../clear-threshold=0)"; default "80"; description "Specifies the alarm reporting threshold."; } leaf clear-threshold { type uint32 { range "0..100"; } units "%"; must "(../report-threshold>../clear-threshold and ../report-threshold!=0 and ../clear-threshold!=0) or (../report-threshold=0 and ../clear-threshold=0)"; default "75"; description "Specifies the alarm clearance threshold."; } } // list fwd-performance-alarm } // container fwd-performance-alarms container fwd-services-alarms { description "List of value-added services alarm."; list fwd-services-alarm { ext:generated-by "system"; ext:operation-exclude "create|delete"; key "slot-id"; description "Configure the alarm reporting and alarm clearance thresholds for value-added services."; leaf slot-id { type string { length "1..15"; } description "Slot ID."; } leaf report-threshold { type uint32 { range "0..100"; } units "%"; must "(../report-threshold>../clear-threshold and ../report-threshold!=0 and ../clear-threshold!=0) or (../report-threshold=0 and ../clear-threshold=0)"; default "80"; description "Specifies the alarm reporting threshold."; } leaf clear-threshold { type uint32 { range "0..100"; } units "%"; must "(../report-threshold>../clear-threshold and ../report-threshold!=0 and ../clear-threshold!=0) or (../report-threshold=0 and ../clear-threshold=0)"; default "75"; description "Specifies the alarm clearance threshold."; } } // list fwd-services-alarm } // container fwd-services-alarms container fwd-reassembly-alarms { description "List of packet reassembly alarm."; list fwd-reassembly-alarm { ext:generated-by "system"; ext:operation-exclude "create|delete"; key "slot-id"; description "Configure the alarm reporting and alarm clearance thresholds for packet reassembly."; leaf slot-id { type string { length "1..15"; } description "Slot ID."; } leaf report-threshold { type uint32 { range "0..100"; } units "%"; must "(../report-threshold>../clear-threshold and ../report-threshold!=0 and ../clear-threshold!=0) or (../report-threshold=0 and ../clear-threshold=0)"; default "80"; description "Specifies the alarm reporting threshold."; } leaf clear-threshold { type uint32 { range "0..100"; } units "%"; must "(../report-threshold>../clear-threshold and ../report-threshold!=0 and ../clear-threshold!=0) or (../report-threshold=0 and ../clear-threshold=0)"; default "75"; description "Specifies the alarm clearance threshold."; } } // list fwd-reassembly-alarm } // container fwd-reassembly-alarms container fwd-board-flow-alarms { description "List of traffic alarm on a board."; list fwd-board-flow-alarm { ext:generated-by "system"; ext:operation-exclude "create|delete"; key "slot-id"; description "Configure the alarm reporting and alarm clearance thresholds for traffic on a board."; leaf slot-id { type string { length "1..15"; } description "Slot ID."; } leaf input-report-threshold { type uint32 { range "0..100"; } units "%"; must "(../input-report-threshold>../input-clear-threshold and ../input-report-threshold!=0 and ../input-clear-threshold!=0) or (../input-report-threshold=0 and ../input-clear-threshold=0)"; default "80"; description "Specifies the input bandwidth alarm reporting threshold."; } leaf input-clear-threshold { type uint32 { range "0..100"; } units "%"; must "(../input-report-threshold>../input-clear-threshold and ../input-report-threshold!=0 and ../input-clear-threshold!=0) or (../input-report-threshold=0 and ../input-clear-threshold=0)"; default "75"; description "Specifies the input bandwidth alarm clearance threshold."; } leaf output-report-threshold { type uint32 { range "0..100"; } units "%"; must "(../output-report-threshold>../output-clear-threshold and ../output-report-threshold!=0 and ../output-clear-threshold!=0) or (../output-report-threshold=0 and ../output-clear-threshold=0)"; default "80"; description "Specifies the output bandwidth alarm reporting threshold."; } leaf output-clear-threshold { type uint32 { range "0..100"; } units "%"; must "(../output-report-threshold>../output-clear-threshold and ../output-report-threshold!=0 and ../output-clear-threshold!=0) or (../output-report-threshold=0 and ../output-clear-threshold=0)"; default "75"; description "Specifies the output bandwidth alarm clearance threshold."; } } // list fwd-board-flow-alarm } // container fwd-board-flow-alarms } augment /devm:devm/devm:lpu-boards/devm:lpu-board { description "Padding fix configuration."; container frame-padding-fix { presence "create frame-padding-fix"; description "Enable/disable a board to reserve the padding fields in upstream Ethernet packets."; } // container frame-padding-fix } augment /devm:devm/devm:mpu-boards/devm:mpu-board { description "Padding fix configuration."; container frame-padding-fix { presence "create frame-padding-fix"; description "Enable/disable a board to reserve the padding fields in upstream Ethernet packets."; } // container frame-padding-fix } } // module huawei-fwd-engine
© 2023 YumaWorks, Inc. All rights reserved.