Specifies the traffic engineering configuration.
Version: 2021-02-10
module huawei-te-interface-deviations-OC-NE-X8X16 { yang-version 1; namespace "urn:huawei:yang:huawei-te-interface-deviations-OC-NE-X8X16"; prefix te-interface-devs-OC-NE-X8X16; import huawei-network-instance { prefix ni; } import huawei-ifm { prefix ifm; } import huawei-te { prefix te; } import huawei-te-interface { prefix te-interface; } import huawei-tunnel-management { prefix tnlm; } import huawei-gre { prefix gre; } 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 "Specifies the traffic engineering configuration."; revision "2021-02-10" { description "Init revision."; reference "Huawei private."; } deviation /ni:network-instance/ni:instances/ni:instance/te:te/te-interface:interfaces/te-interface:interface/te-interface:attribute/te-interface:bandwidth/te-interface:max-reserved { deviate add { must 'not(/ifm:ifm/ifm:interfaces/ifm:interface[ifm:name = current()/../../../te-interface:name]/tnlm:tunnel-protocol/gre:gre-tunnel) or (/ifm:ifm/ifm:interfaces/ifm:interface[ifm:name = current()/../../../te-interface:name]/ifm:bandwidth and /ifm:ifm/ifm:interfaces/ifm:interface[ifm:name = current()/../../../te-interface:name]/ifm:bandwidth*1000>=../max-reserved) or (/ifm:ifm/ifm:interfaces/ifm:interface[ifm:name = current()/../../../te-interface:name]/ifm:bandwidth-kbps and /ifm:ifm/ifm:interfaces/ifm:interface[ifm:name = current()/../../../te-interface:name]/ifm:bandwidth-kbps>=../max-reserved) or (not(/ifm:ifm/ifm:interfaces/ifm:interface[ifm:name = current()/../../../te-interface:name]/ifm:bandwidth) and not(/ifm:ifm/ifm:interfaces/ifm:interface[ifm:name = current()/../../../te-interface:name]/ifm:bandwidth-kbps) and (65536>=../max-reserved*1000))'; } } deviation /ni:network-instance/ni:instances/ni:instance/te:te/te-interface:interfaces/te-interface:interface/te-interface:attribute/te-interface:bandwidth/te-interface:dynamic-max-reserved-percent { deviate add { must 'not(/ifm:ifm/ifm:interfaces/ifm:interface[ifm:name = current()/../../../te-interface:name]/tnlm:tunnel-protocol/gre:gre-tunnel) or (../dynamic-max-reserved-percent>=1 and ../dynamic-max-reserved-percent<=100)'; } } deviation /ni:network-instance/ni:instances/ni:instance/te:te/te-interface:interfaces/te-interface:interface { deviate add { must "/ifm:ifm/ifm:interfaces/ifm:interface[ifm:name=current()/te-interface:name]/ifm:type!='Tunnel' or /ifm:ifm/ifm:interfaces/ifm:interface[ifm:name=current()/te-interface:name]/tnlm:tunnel-protocol/gre:gre-tunnel"; } } } // module huawei-te-interface-deviations-OC-NE-X8X16
© 2023 YumaWorks, Inc. All rights reserved.