Clean up API YANG models with the help of pyang
[transportpce.git] / api / src / main / yang / service_path / transportpce-service-path@2017-10-17.yang
1 module transportpce-service-path {
2   namespace "http://org/transportpce/B-C-interface/servicepath";
3   prefix transportpce-service-path;
4
5   import transportpce-common-service-path-types {
6     prefix transportpce-common-service-path-types;
7   }
8
9   organization
10     "transportPCE";
11   contact
12     "transportPCE committers - ODL";
13   description
14     "YANG definitions for service-path (transportPCE). Adapted from service definition (openroadm)
15      Copyright © 2017 Orange, Inc. and others.  All rights reserved.
16
17      openroadm copyright:
18       Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
19       AT&T Intellectual Property.  All other rights reserved.
20
21       Redistribution and use in source and binary forms, with or without modification,
22       are permitted provided that the following conditions are met:
23
24       * Redistributions of source code must retain the above copyright notice, this
25         list of conditions and the following disclaimer.
26       * Redistributions in binary form must reproduce the above copyright notice,
27         this list of conditions and the following disclaimer in the documentation and/or
28         other materials provided with the distribution.
29       * Neither the Members of the Open ROADM MSA Agreement nor the names of its
30         contributors may be used to endorse or promote products derived from this software
31         without specific prior written permission.
32
33       THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
34       AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35       WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
36       IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
37       INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
38       NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
39       OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
40       WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
41       ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42       POSSIBILITY OF SUCH DAMAGE";
43
44   revision 2017-10-17 {
45     description
46       "Version 1.6";
47   }
48   revision 2017-04-26 {
49     description
50       "Version 1.5";
51   }
52
53   container service-path-list {
54     description
55       "List of service paths. Can only be created, deleted, modified, etc. using special RPCs.";
56     list service-paths {
57       key "service-path-name";
58       uses transportpce-common-service-path-types:service-path;
59     }
60   }
61 }