From 195b0a857fd0f869fd368bdfd77afa631ea9d448 Mon Sep 17 00:00:00 2001 From: Stephane St-Laurent Date: Tue, 15 May 2018 12:48:55 -0700 Subject: [PATCH] Add files via upload --- .../models/opendevice-types@2017-10-08.yang | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 release/models/opendevice-types@2017-10-08.yang diff --git a/release/models/opendevice-types@2017-10-08.yang b/release/models/opendevice-types@2017-10-08.yang new file mode 100644 index 0000000..019192b --- /dev/null +++ b/release/models/opendevice-types@2017-10-08.yang @@ -0,0 +1,95 @@ +module opendevice-types { + yang-version 1; + namespace "http://www.opendevice.net/yang/opendevice-types"; + prefix "od-types"; + organization "Infinera"; + contact + "sales@infinera.com"; + description + "This module contains general type definitions and identities + for optical transport models."; + revision 2017-10-08; + + revision 2017-07-31; + + typedef percentage { + type uint8 { + range "0..100"; + } + description + "Integer indicating a percentage value"; + } + + typedef dwdm-frequency-ghz { + type decimal64 { + fraction-digits 3; + } + description + "Represents a DWDM Frequency in GHz. + "; + } + + typedef dwdm-frequency-mhz { + type uint64 ; + units MHz; + + description + "Represents a DWDM Frequency in MHz with a resolution of 1 MHz. + "; + } + typedef optical-power-mW { + type decimal64 { + fraction-digits 5; + } + units mW; + description "Represent an optical power in mW"; + reference ""; + } + typedef optical-power-dBm { + type decimal64 { + fraction-digits 5; + } + units dBm; + description "Represent an optical power in dBm"; + reference ""; + } + typedef optical-psd { + type decimal64 { + fraction-digits 5; + } + units dBm/GHz; + description "Represent optical power density in dBm/GHz"; + reference ""; + } + + + + + identity optical-band; + identity c-band { + base optical-band; + } + identity l-band { + base optical-band; + } + identity c-and-l-band { + base optical-band; + } + + grouping optical-spectrum-spec { + description "Parameters for describing an optical media-channel spectrum."; + leaf lower-frequency { + type dwdm-frequency-mhz; + description "Channel Start Frequency in GHz"; + } + + leaf upper-frequency { + type dwdm-frequency-mhz; + description "Channel End Frequency in GHz"; + } + } + + + + +} \ No newline at end of file