Interface D creation. NetworkModel->ServiceHandler
[transportpce.git] / api / src / main / yang / service_path / transportpce-networkmodel@2020-11-16.yang
1 module transportpce-networkmodel {
2   namespace "http://org/opendaylight/transportpce/networkmodel";
3   prefix org-opendaylight-transportpce-networkmodel;
4
5   import transportpce-common-ord-topology-types {
6     prefix transportpce-common-ord-topology-types;
7     revision-date 2020-11-16;
8   }
9
10   import org-openroadm-common-types {
11     prefix org-openroadm-common-types;
12     revision-date 2018-10-19;
13   }
14
15   organization
16     "transportPCE";
17   contact
18     "transportPCE committers - ODL";
19   description
20     "YANG definitions proposed for interface D (transportPCE). Adapted from service definition (openroadm)
21      Copyright © 2020 Nokia, Inc. and others.  All rights reserved.
22
23      openroadm copyright:
24       Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
25       AT&T Intellectual Property.  All other rights reserved.
26
27       Redistribution and use in source and binary forms, with or without modification,
28       are permitted provided that the following conditions are met:
29
30       * Redistributions of source code must retain the above copyright notice, this
31         list of conditions and the following disclaimer.
32       * Redistributions in binary form must reproduce the above copyright notice,
33         this list of conditions and the following disclaimer in the documentation and/or
34         other materials provided with the distribution.
35       * Neither the Members of the Open ROADM MSA Agreement nor the names of its
36         contributors may be used to endorse or promote products derived from this software
37         without specific prior written permission.
38
39       THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
40       AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
41       WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
42       IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
43       INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
44       NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
45       OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
46       WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
47       ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
48       POSSIBILITY OF SUCH DAMAGE";
49
50   revision 2020-11-16 {
51     description
52       "Initial revision of network model version 1.5";
53   }
54
55   grouping element-change {
56     leaf id {
57       type string;
58       mandatory true;
59       description "Id of abstracted element that changed in the topology";
60     }
61     leaf state {
62       type org-openroadm-common-types:state;
63       mandatory true;
64       description "Operational state of the affected element";
65     }
66   }
67
68   notification topology-update-result {
69     description
70       "This Notification indicates result of an update in the openroadm topology";
71     leaf notification-type {
72       type transportpce-common-ord-topology-types:topology-notification-types;
73     }
74     list ord-topology-changes {
75       key "id";
76       uses element-change;
77     }
78   }
79 }