add python compatibility module
[ccsdk/apps.git] / sdnr / model / yang / onf-ptp-dataset@2017-05-08.yang
1 module onf-ptp-dataset {
2     namespace "urn:onf:params:xml:ns:yang:onf-ptp-dataset";
3     prefix ptp-ex;
4
5     import ietf-yang-types {
6         prefix yang;
7     }
8     import core-model {
9         prefix core-model;
10     }
11     import ietf-ptp-dataset {
12         prefix ptp;
13     }
14
15     organization "ONF (Open Networking Foundation) Open Transport Working Group - Wireless Transport Project";
16     contact "WG Web: <https://www.opennetworking.org/technical-communities/areas/specification/1931-optical-transport>
17              WG List:  <mailto:wireless-transport@login.opennetworking.org>
18              WG Chair: Lyndon Ong
19                        <mailto:lyong@ciena.com>
20              Editors:  Alfons Mittermaier
21                        <mailto:alfons.mittermaier@@highstreet-technologies.com>
22                        Martin Skorupski
23                        <mailto:martin.skorupski@highstreet-technologies.com>";
24     description "This module contains a collection of YANG definitions to extent ptp-dataset.";
25     revision 2017-05-08 {
26         description "Initial version";
27         reference "A YANG Data Model extending ptp-dataset.";
28     }
29
30     augment "/ptp:instance-list/ptp:default-ds" {
31         description
32             "Addition of data nodes for the default data set of the clock.";
33
34         leaf local-priority {
35             type uint8;
36             default 128;
37             description
38                 "none";
39             reference 
40                 "ITU-T G.8275.1 Precision time protocol telecom profile for phase/time 
41                  synchronization with full timing support from the network
42                  Chapter 6.3.2";
43         }
44
45         leaf max-steps-removed {
46             type uint8;
47             default 128;
48             description
49                 "none";
50             reference 
51                 "ITU-T G.8275.1 Precision time protocol telecom profile for phase/time 
52                  synchronization with full timing support from the network
53                  Chapter 6.3";
54         }
55
56         leaf multicast-mac-address {
57             type yang:mac-address;
58             description
59                 "none";
60         }
61         
62         leaf designated-enabled {
63             type boolean;
64             default true;
65             description
66                 "A PTP Clock needs to be enabled by management.";
67         }
68     }
69
70     augment "/ptp:instance-list/ptp:port-ds-list" {
71         description
72             "Addition of data nodes for the default data set of the clock.";
73
74         leaf master-only {
75             type boolean;
76             default true;
77             description
78                 "Indicates that port can only be a master.";
79         }
80
81         leaf local-priority {
82             type uint8;
83             default 128;
84             description
85                 "Local priority as used for alternate BMCA";
86             reference 
87                 "ITU-T G.8275.1 Precision time protocol telecom profile for phase/time 
88                  synchronization with full timing support from the network
89                  Chapter 6.3.2";
90         }
91
92         leaf designated-enabled {
93             type boolean;
94             default true;
95             description
96                 "A PTP Port needs to be enabled by management.";
97             reference 
98                 "IEEE 1588-2008 IEEE Standard for a Precision Clock Synchronization Protocol 
99                  for Networked Measurement and Control Systems
100                  Chapter 9.2";
101         }
102
103         leaf delay-asymmetry {
104             type int64;
105             default 0;
106             description
107                 "As per PTP     Known path asymmetry in ns.";
108             reference 
109                 "ITU-T G.8275.1 Precision time protocol telecom profile for phase/time 
110                  synchronization with full timing support from the network
111                  Chapter 7.4.2";
112         }
113         
114         leaf logical-termination-point {
115             type leafref {
116                 path '/core-model:network-element/core-model:ltp/core-model:uuid';
117             }
118             description
119                 "A reference to a LTP of layer-protocol-name 'ETY' or 'MWPS', which is used 
120                  to discover the PTP topology.";
121         }
122
123     }
124
125 }