diff options
author | demx8as6 <martin.skorupski@highstreet-technologies.com> | 2018-07-06 10:27:37 +0200 |
---|---|---|
committer | Timoney, Dan (dt5972) <dt5972@att.com> | 2018-07-11 16:53:59 -0400 |
commit | 9872fa0a158c347d7bdfa72c4e0da06576b297b1 (patch) | |
tree | a2bc415665356bf06ebd4d6f4fdac7277da5141d /sdnr/model/yang/ltp-path@2017-05-26.yang | |
parent | 60315525ab5e7c12a9f47c409092e8dba6ad656d (diff) |
Add YANG modules used by SDN-R apps
Applications of wireless artifacts supports a couple of YANG modules
from various SDOs. Most of them might be "learnt" by ODL (CCSDK) when
connecting the frist time to a NetConf Server during handshake,
(HELLO-MESSAGE). APIs based on YANG modules might be used south-
bound and northbound.
Issue-ID: CCSDK-352
Change-Id: I8785148c1f9473c7c006255d718a1fbaf950164c
Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
Diffstat (limited to 'sdnr/model/yang/ltp-path@2017-05-26.yang')
-rw-r--r-- | sdnr/model/yang/ltp-path@2017-05-26.yang | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/sdnr/model/yang/ltp-path@2017-05-26.yang b/sdnr/model/yang/ltp-path@2017-05-26.yang new file mode 100644 index 00000000..e9404d8c --- /dev/null +++ b/sdnr/model/yang/ltp-path@2017-05-26.yang @@ -0,0 +1,138 @@ +module ltp-path { + namespace "urn:onf:params:xml:ns:yang:ltp-path"; + prefix ltp-path; + + import core-model { + prefix core-model; + } + + organization + "ONF (Open Networking Foundation) Open Transport Working Group - + Wireless Transport Project"; + contact + "WG Web: <https://www.opennetworking.org/technical-communities/areas/ + specification/1931-optical-transport> + WG List: <mailto:wireless-transport@login.opennetworking.org> + WG Chair: Lyndon Ong + <mailto:lyong@ciena.com> + WG Chair: Giorgio Cazzaniga + <mailto:giorgio.cazzaniga@sm-optics.com> + Editor: Martin Skorupski + <mailto:martin.skorupski@highstreet-technologies.com>"; + description + "This module contains a collection of YANG definitions describing a + telecommunication network path."; + + revision 2017-05-26 { + description "Initial version"; + reference "ltp-path, ONF core-model 1.2"; + } + + typedef layer-protocol-name-enumeration { + type enumeration { + enum ETH { + value 1; + description + "Identifying the layer of Ethernet."; + } + enum PTP { + value 2; + description + "Identifying the layer or the Precision Time Protocol."; + } + } + + description + "The propagation of the layer protocol name."; + } + + container ltp-path { + description + "Listing all the path-identifiers, used by RESTCONF interfaces to + address an entry in the ltp-path-list."; + + leaf-list path-identifier { + type leafref { + path '/ltp-path/ltp-path-list/path-id'; + } + description + "List of reference values for existing path entries."; + } + + list ltp-path-list { + + key "path-id"; + + description + "A list of path found in the network."; + + leaf path-id { + type string; + description + "A unique identifier of a path. It migth be beneficial to use the + format as defined in RFC 4122 + (https://www.ietf.org/rfc/rfc4122.txt)."; + } + + leaf path-name { + type string; + description + "The human readable name of a path. It should include start + and end point."; + } + + leaf forwarding-direction { + type core-model:forwarding-direction; + description + "Defines the directionality of the path."; + } + + leaf layer-protocol-name { + type layer-protocol-name-enumeration; + description + "Defines the layer of the path. Please see ONF CoreModel for + further details."; + } + + list logical-termination-point-list { + + key "ltp-index"; + min-elements 2; + + description + "An ordered list of logical-termination points, defining the path."; + + leaf ltp-index { + type string; + description + "The index of the LTP with in the list. The LTP with the highest + index is the end-point of the path. The LTP with the lowest + index is the start-point of the path."; + } + + leaf ltp-reference { + type leafref { + path '/core-model:network-element/core-model:ltp/core-model:uuid'; + } + description + "The reference value of a network-elements LTP."; + } + + leaf physical-port-reference { + type string; + description + "A text label for the unmodelled physical port associated with + the LTP. In many cases there is no associated physical port."; + } + + leaf node-reference { + type leafref { + path '/core-model:network-element/core-model:uuid'; + } + description + "A reference value identifying a network-element."; + } + } + } + } +} |