This module defines deviation statements for huawei-clocksync-ptpadapt module.
Version: 2021-05-07
module huawei-clocksync-ptpadapt-deviations-NE8000M8M14 { yang-version 1; namespace "urn:huawei:yang:huawei-clocksync-ptpadapt-deviations-NE8000M8M14"; prefix clocksync-ptpadapt-devs-NE8000M8M14; import huawei-clocksync-ptpadapt { prefix clocksync-ptpadapt; } 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 "This module defines deviation statements for huawei-clocksync-ptpadapt module."; revision "2021-05-07" { description "Initial revision."; reference "Huawei private."; } ext:deviation-ext "/clocksync-ptpadapt:clocksync-ptpadapt/clocksync-ptpadapt:ptpa-common/clocksync-ptpadapt:domain" { ext:deviate-ext "replace" { ext:dynamic-default { ext:default-value "0" { when "../freq-profile='part' or ((../device-type='client' or ../device-type='none') and ../freq-profile='timeprofile' and ../hop-by-hop-mode='true')"; description "The default value is 0 when freq-profile is part."; } ext:default-value "4" { when "../freq-profile='all' and ../device-type!='server-and-client'"; description "The default value is 4 when freq-profile is all."; } ext:default-value "44" { when "../freq-profile='timeprofile' and (((../device-type='client' or ../device-type='none') and ../hop-by-hop-mode='false') or ../device-type='server' or ../device-type='server-and-client')"; description "The default value is 44 when freq-profile is timeprofile."; } } } } deviation /clocksync-ptpadapt:clocksync-ptpadapt/clocksync-ptpadapt:ptpa-common/clocksync-ptpadapt:domain { deviate delete { must "(../freq-profile='part' and (../domain>=0 and ../domain<=255)) or (../freq-profile='all' and ../device-type!='server-and-client' and (../domain>=4 and ../domain<=23)) or (../freq-profile='timeprofile' and (../domain>=44 and ../domain<=63))"; } deviate add { must "((../freq-profile='part' or ((../device-type='client' or ../device-type='none') and ../freq-profile='timeprofile' and ../hop-by-hop-mode='true')) and (../domain>=0 and ../domain<=255)) or (../freq-profile='all' and ../device-type!='server-and-client' and (../domain>=4 and ../domain<=23)) or (../freq-profile='timeprofile' and (((../device-type='client' or ../device-type='none') and ../hop-by-hop-mode='false') or ../device-type='server' or ../device-type='server-and-client') and (../domain>=44 and ../domain<=63))"; } } deviation /clocksync-ptpadapt:reset-ptpa-server-pkt { deviate not-supported; } deviation /clocksync-ptpadapt:reset-ptpa-client-pkt { deviate not-supported; } } // module huawei-clocksync-ptpadapt-deviations-NE8000M8M14
© 2023 YumaWorks, Inc. All rights reserved.