Clock atom-gps data model define.
Version: 2021-06-10
module huawei-clocksync-gps { yang-version 1; namespace "urn:huawei:yang:huawei-clocksync-gps"; prefix clocksync-gps; import huawei-pub-type { prefix pub-type; } 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 "Clock atom-gps data model define."; revision "2021-06-10" { description "Add smart-clock wtr-time node, Add smart-clock holdoff-time node."; reference "Huawei private."; } revision "2020-03-14" { description "Modify the node description."; reference "Huawei private."; } revision "2020-03-04" { description "Modify the node description."; reference "Huawei private."; } revision "2019-12-25" { description "Add reset-smart-clock-port action node."; reference "Huawei private."; } revision "2019-05-23" { description "Initial revision."; reference "Huawei private."; } ext:task-name "clksync"; typedef gps-workmode-type { type enumeration { enum "position" { value 0; description "Position."; } enum "hold" { value 1; description "Hold."; } enum "auto" { value 2; description "Auto."; } } description "Type of gps work mode."; } typedef gnss-model-type { type enumeration { enum "gps" { value 1; description "Gps."; } enum "glonass" { value 2; description "Glonass."; } enum "beidou" { value 3; description "Beidou."; } enum "gps-glonass" { value 4; description "Gps-glonass."; } enum "gps-beidou" { value 5; description "Gps-beidou."; } } description "Type of gnss model."; } typedef leap-adjustdirection-type { type enumeration { enum "leap59" { value 59; description "Leap59."; } enum "leap61" { value 61; description "Leap61."; } } description "Type of leap adjust direction."; } typedef gps-fixstatus-type { type enumeration { enum "nofixstatus" { value 0; description "Nofixstatus."; } enum "fixstatus" { value 1; description "Fixstatus."; } enum "holdstatus" { value 2; description "Holdstatus."; } enum "wtrstatus" { value 3; description "Waiting to restore status."; } enum "holdoffstatus" { value 4; description "Holdoff status."; } } description "Type of gps fix status."; } typedef leap-manualmode-enable-type { type enumeration { enum "disable" { value 0; description "Disable."; } enum "enable" { value 1; description "Enable."; } } description "Type of leap manual mode."; } typedef ptp-delay-mechanism { type enumeration { enum "delay" { value 0; description "Delay."; } enum "pdelay" { value 1; description "Pdelay."; } } description "Type of ptp delay mechanism."; } typedef ptp-port-step-type { type enumeration { enum "onestep" { value 0; description "Onestep."; } enum "twostep" { value 1; description "Twostep."; } } description "Type of ptp port step."; } typedef ssm-level { type enumeration { enum "unk" { value 0; description "Unknown SSM level (UNK)."; } enum "prc" { value 2; description "SSM level of the G.811 clock (PRC)."; } enum "ssua" { value 4; description "G.812 transit clock (SSUA)."; } enum "ssub" { value 8; description "G.812 local clock (SSUB)."; } enum "sec" { value 11; description "SDH (sec)."; } enum "dnu" { value 15; description "The quality level of the clock source is unavailable (DNU)."; } enum "none" { value 16; description "Invalid SSM level."; } enum "prtc" { value 8194; description "G.8272 clock (PRTC)."; } } description "SSM level type."; } rpc reset-gps { ext:node-ref "/ifm:ifm/ifm:interfaces/ifm:interface/clocksync-gps:gps-port-srcs/clocksync-gps:gps-port-src"; description "Reset the smart-clock module."; input { leaf port-name { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "Reset the smart-clock module."; } } } // rpc reset-gps } // module huawei-clocksync-gps
© 2023 YumaWorks, Inc. All rights reserved.