This module defines deviation statements for huawei-mirror module.
Version: 2021-05-07
module huawei-mirror-deviations-OC-NE-X8X16 { yang-version 1; namespace "urn:huawei:yang:huawei-mirror-deviations-OC-NE-X8X16"; prefix mirror-devs-OC-NE-X8X16; import huawei-mirror { prefix mirror; } import huawei-extension { prefix ext; } import huawei-ifm { prefix ifm; } import huawei-qos { prefix qos; } 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 "This module defines deviation statements for huawei-mirror module."; revision "2021-05-07" { description "Initial revision."; reference "Huawei private."; } ext:deviation-ext "/ifm:ifm/ifm:interfaces/ifm:interface/mirror:mirror/mirror:port-mirror-car" { ext:deviate-ext "add" { ext:generated-by "system" { when "count(../bas-port-mirrors/bas-port-mirror)>0"; description "The port-mirror-car is generated automatically when bas-port-mirror is configured on the same interface."; } } } deviation /mirror:mirror/mirror:query-traffic-policy-ports { deviate not-supported; } deviation /devm:devm/devm:mpu-boards/devm:mpu-board/mirror:mirror { deviate not-supported; } deviation /devm:devm/devm:lpu-boards/devm:lpu-board/mirror:mirror/mirror:rate-limit-percent { deviate not-supported; } deviation /qos:qos/qos:global-config/mirror:mirror { deviate not-supported; } deviation /ifm:ifm/ifm:interfaces/ifm:interface/mirror:mirror/mirror:port-mirror-slice { deviate add { must "count(../port-mirrors/port-mirror)>0 or count(../bas-port-mirrors/bas-port-mirror)>0 or (not(count(../port-mirrors/port-mirror)>0 or count(../bas-port-mirrors/bas-port-mirror)>0) and not(../port-mirror-slice))"; } } deviation /ifm:ifm/ifm:interfaces/ifm:interface/mirror:mirror/mirror:port-mirror-to { deviate add { must "not(../mirror-by-directions/mirror-by-direction[direction='both'] and count(../mirror-to-multis/mirror-to-multi)>0)"; } deviate add { must "not(count(../mirror-to-multis/mirror-to-multi)>0 and ../mirror-to-null0)"; } } deviation /ifm:ifm/ifm:interfaces/ifm:interface/mirror:mirror/mirror:mirror-by-directions { deviate add { must "not(count(./mirror-by-direction)>0 and (../port-observe or count(../mirror-to-multis/mirror-to-multi)>0 or ../mirror-to-null0 or count(../integrateds/integrated)>0))"; } } deviation /ifm:ifm/ifm:interfaces/ifm:interface/mirror:mirror/mirror:mirror-to-null0 { deviate add { must "not(../port-observe or count(../mirror-to-multis/mirror-to-multi)>0 or count(../mirror-by-directions/mirror-by-direction)>0 or count(../integrateds/integrated)>0)"; } } deviation /ifm:ifm/ifm:interfaces/ifm:interface/mirror:mirror/mirror:integrateds { deviate add { must "not(count(./integrated)>0 and (../port-observe or count(../mirror-by-directions/mirror-by-direction)>0 or count(../mirror-to-multis/mirror-to-multi)>0 or ../mirror-to-null0))"; } } } // module huawei-mirror-deviations-OC-NE-X8X16
© 2023 YumaWorks, Inc. All rights reserved.