Jeff Groom | 34c28ce | 2018-04-26 19:42:18 -0600 | [diff] [blame] | 1 | module ciena-waveserver-xcvr-modem { |
| 2 | namespace "urn:ciena:params:xml:ns:yang:ciena-ws:ciena-waveserver-xcvr-modem"; |
| 3 | prefix xcvr-modem; |
| 4 | |
| 5 | import ciena-waveserver-typedefs { |
| 6 | prefix cienawstypes; |
| 7 | } |
| 8 | import ciena-waveserver-xcvr { |
| 9 | prefix xcvr; |
| 10 | } |
| 11 | |
| 12 | organization |
| 13 | "Ciena Corporation"; |
| 14 | contact |
| 15 | "Web URL: http://www.ciena.com/ |
| 16 | Postal: 7035 Ridge Road |
| 17 | Hanover, Maryland 21076 |
| 18 | U.S.A. |
| 19 | Phone: +1 800-921-1144 |
| 20 | Fax: +1 410-694-5750"; |
| 21 | description |
| 22 | "This YANG module defines Ciena's XCVR modem specific data for the NETCONF protocol. It will augment the ciena-waveserver-xcvr module."; |
| 23 | |
| 24 | revision 2017-10-24 { |
| 25 | description |
| 26 | "Changed type for 'frequency-min' and 'frequency-max' leafs from int to decimal. |
| 27 | Changed type for 'tx-dispersion-min' and 'tx-dispersion-max' from unsigned to signed int."; |
| 28 | reference "Waveserver Ai user's guide."; |
| 29 | } |
| 30 | revision 2017-08-28 { |
| 31 | description |
| 32 | "Waveserver Platform Data Model |
| 33 | Migrated from Waveserver Classic R1.4 YANG model. |
| 34 | Updated namespace to 'ciena-waveserver'. |
| 35 | Added 'c-band', 'l-band', and 'frequency-resolution' to 'transmitter-technology' container. |
| 36 | Removed 'modulation-support' container and added 'supported-modes' to 'vendor-data/properties' container. |
| 37 | Added 'temperature-critical' and 'temperature-warning' to 'diagnostics/device' container. |
| 38 | Removed 'wavelength-control' and 'wavelength-tolerance' attributes. |
| 39 | Removed 'transport-protocols' and 'line-system-support' containers."; |
| 40 | reference "Waveserver Ai user's guide."; |
| 41 | } |
| 42 | |
| 43 | augment "/xcvr:waveserver-xcvrs/xcvr:xcvrs/xcvr:properties/xcvr:vendor-data/xcvr:properties/xcvr:diagnostic-monitoring" { |
| 44 | when "../../../xcvr:type = 'WaveLogic Ai'" { |
| 45 | description |
| 46 | "XCVR vendor diagnostic-monitoring properties specific to modem XCVRs."; |
| 47 | } |
| 48 | description |
| 49 | "XCVR vendor diagnostic-monitoring properties specific to modem XCVRs."; |
| 50 | leaf diagnostic-support { |
| 51 | type cienawstypes:yes-no-enum; |
| 52 | config false; |
| 53 | description |
| 54 | "Diagnostic Monitoring, is Diagnostic Support turned on."; |
| 55 | } |
| 56 | leaf dispersion-measurement { |
| 57 | type cienawstypes:yes-no-enum; |
| 58 | config false; |
| 59 | description |
| 60 | "Diagnostic Monitoring, is Dispersion Measurement turned on."; |
| 61 | } |
| 62 | } |
| 63 | augment "/xcvr:waveserver-xcvrs/xcvr:xcvrs/xcvr:properties/xcvr:vendor-data/xcvr:properties" { |
| 64 | when "../../xcvr:type = 'WaveLogic Ai'" { |
| 65 | description |
| 66 | "XCVR vendor properties specific to modem XCVRs."; |
| 67 | } |
| 68 | description |
| 69 | "XCVR vendor properties specific to modem XCVRs."; |
| 70 | leaf supported-modes { |
| 71 | type bits { |
| 72 | bit mode-35-100 { |
| 73 | description |
| 74 | "Modem is capable of 35Gbaud / 100Gbps transmission."; |
| 75 | } |
| 76 | bit mode-35-150 { |
| 77 | description |
| 78 | "Modem is capable of 35Gbaud / 150Gbps transmission."; |
| 79 | } |
| 80 | bit mode-35-200 { |
| 81 | description |
| 82 | "Modem is capable of 35Gbaud / 200Gbps transmission."; |
| 83 | } |
| 84 | bit mode-35-250 { |
| 85 | description |
| 86 | "Modem is capable of 35Gbaud / 250Gbps transmission."; |
| 87 | } |
| 88 | bit mode-56-100 { |
| 89 | description |
| 90 | "Modem is capable of 56Gbaud / 100Gbps transmission."; |
| 91 | } |
| 92 | bit mode-56-150 { |
| 93 | description |
| 94 | "Modem is capable of 56Gbaud / 150Gbps transmission."; |
| 95 | } |
| 96 | bit mode-56-200 { |
| 97 | description |
| 98 | "Modem is capable of 56Gbaud / 200Gbps transmission."; |
| 99 | } |
| 100 | bit mode-56-250 { |
| 101 | description |
| 102 | "Modem is capable of 56Gbaud / 250Gbps transmission."; |
| 103 | } |
| 104 | bit mode-56-300 { |
| 105 | description |
| 106 | "Modem is capable of 56Gbaud / 300Gbps transmission."; |
| 107 | } |
| 108 | bit mode-56-350 { |
| 109 | description |
| 110 | "Modem is capable of 56Gbaud / 350Gbps transmission."; |
| 111 | } |
| 112 | bit mode-56-400 { |
| 113 | description |
| 114 | "Modem is capable of 56Gbaud / 400Gbps transmission."; |
| 115 | } |
| 116 | } |
| 117 | config false; |
| 118 | description |
| 119 | "Supported baud/line-rate modes on this modem."; |
| 120 | } |
| 121 | container transmitter-technology { |
| 122 | config false; |
| 123 | description |
| 124 | "Modem Transmitter Technology properties/capabilities."; |
| 125 | leaf tunable { |
| 126 | type cienawstypes:yes-no-enum; |
| 127 | config false; |
| 128 | description |
| 129 | "Modem Transmitter Technology, Tunable."; |
| 130 | } |
| 131 | leaf wavelength-min { |
| 132 | type cienawstypes:decimal-2-dig; |
| 133 | units "nm"; |
| 134 | config false; |
| 135 | description |
| 136 | "Modem Transmitter Technology, Wavelength Min value, in nanometers."; |
| 137 | } |
| 138 | leaf wavelength-max { |
| 139 | type cienawstypes:decimal-2-dig; |
| 140 | units "nm"; |
| 141 | config false; |
| 142 | description |
| 143 | "Modem Transmitter Technology, Wavelength Max value, in nanometers."; |
| 144 | } |
| 145 | leaf frequency-min { |
| 146 | type cienawstypes:modem-frequency; |
| 147 | units "GHz"; |
| 148 | config false; |
| 149 | description |
| 150 | "Modem Transmitter Technology, minimum supported frequency, in GHz."; |
| 151 | } |
| 152 | leaf frequency-max { |
| 153 | type cienawstypes:modem-frequency; |
| 154 | units "GHz"; |
| 155 | config false; |
| 156 | description |
| 157 | "Modem Transmitter Technology, maximum supported frequency, in GHz."; |
| 158 | } |
| 159 | leaf frequency-resolution { |
| 160 | type uint32; |
| 161 | units "MHz"; |
| 162 | config false; |
| 163 | description |
| 164 | "Modem Transmitter Technology, frequency resolution, in MHz."; |
| 165 | } |
| 166 | leaf tx-dispersion-min { |
| 167 | type int32; |
| 168 | units "ps/nm"; |
| 169 | config false; |
| 170 | description |
| 171 | "Modem Transmitter Technology, Tx Dispersion Min (ps/nm)."; |
| 172 | } |
| 173 | leaf tx-dispersion-max { |
| 174 | type int32; |
| 175 | units "ps/nm"; |
| 176 | config false; |
| 177 | description |
| 178 | "Modem Transmitter Technology, Tx Dispersion Max (ps/nm)."; |
| 179 | } |
| 180 | leaf edfa { |
| 181 | type cienawstypes:yes-no-enum; |
| 182 | config false; |
| 183 | description |
| 184 | "Whether this modem is an EDFA modem."; |
| 185 | } |
| 186 | leaf c-band { |
| 187 | type cienawstypes:yes-no-enum; |
| 188 | config false; |
| 189 | description |
| 190 | "Whether this modem supports C-Band frequencies."; |
| 191 | } |
| 192 | leaf l-band { |
| 193 | type cienawstypes:yes-no-enum; |
| 194 | config false; |
| 195 | description |
| 196 | "Whether this modem supports L-Band frequencies."; |
| 197 | } |
| 198 | } |
| 199 | } |
| 200 | augment "/xcvr:waveserver-xcvrs/xcvr:xcvrs/xcvr:properties/xcvr:diagnostics/xcvr:device" { |
| 201 | when "../../xcvr:type = 'WaveLogic Ai'" { |
| 202 | description |
| 203 | "XCVR device diagnostic properties specific to modem XCVRs."; |
| 204 | } |
| 205 | description |
| 206 | "XCVR device diagnostic properties specific to modem XCVRs."; |
| 207 | container equipment-status { |
| 208 | config false; |
| 209 | description |
| 210 | "XCVR modem equipment status properties."; |
| 211 | leaf transmitter-state { |
| 212 | type cienawstypes:enabled-disabled-enum; |
| 213 | config false; |
| 214 | description |
| 215 | "Transmitter State of the Modem."; |
| 216 | } |
| 217 | leaf equipment-out-of-spec { |
| 218 | type cienawstypes:yes-no-enum; |
| 219 | config false; |
| 220 | description |
| 221 | "Is the alarm associated with Equipment Out of Spec raised."; |
| 222 | } |
| 223 | leaf temperature-critical { |
| 224 | type cienawstypes:yes-no-enum; |
| 225 | config false; |
| 226 | description |
| 227 | "Is there a critical temperature alarm currently raised."; |
| 228 | } |
| 229 | leaf temperature-warning { |
| 230 | type cienawstypes:yes-no-enum; |
| 231 | config false; |
| 232 | description |
| 233 | "Is there a temperature warning currently raised."; |
| 234 | } |
| 235 | leaf equipment-failure { |
| 236 | type cienawstypes:yes-no-enum; |
| 237 | config false; |
| 238 | description |
| 239 | "Is the alarm associated with Equipment Failure raised."; |
| 240 | } |
| 241 | leaf data-link-suspect { |
| 242 | type cienawstypes:yes-no-enum; |
| 243 | config false; |
| 244 | description |
| 245 | "Is the alarm associated with Data Link Suspect raised."; |
| 246 | } |
| 247 | leaf comms-link-suspect { |
| 248 | type cienawstypes:yes-no-enum; |
| 249 | config false; |
| 250 | description |
| 251 | "Is the alarm associated with Comms Link Suspect raised."; |
| 252 | } |
| 253 | leaf clock-suspect { |
| 254 | type cienawstypes:yes-no-enum; |
| 255 | config false; |
| 256 | description |
| 257 | "Is the alarm associated with Clock Suspect raised."; |
| 258 | } |
| 259 | leaf loss-of-synchronization-tick { |
| 260 | type cienawstypes:yes-no-enum; |
| 261 | config false; |
| 262 | description |
| 263 | "Is the alarm associated with Loss of Synchronization Tick raised."; |
| 264 | } |
| 265 | } |
| 266 | } |
| 267 | } |