Update portmapping YANG model
[transportpce.git] / api / src / main / yang / gnpy-api@2019-01-03.yang
1 module gnpy-api {
2   yang-version 1;
3   namespace "gnpy:gnpy-api";
4   prefix gnpyapi;
5
6   import gnpy-network-topology {
7     prefix gnpynt;
8   }
9   import gnpy-path-computation-simplified {
10     prefix gnpypc;
11   }
12
13   organization
14     "Telecom Infra Project OOPT PSE Working Group";
15   contact
16     "WG Web:   <https://github.com/Telecominfraproject/oopt-gnpy>
17      contact:  <mailto:ahmed.triki@orange.com>
18      contact:  <mailto:esther.lerouzic@orange.com>
19     ";
20   description
21     "YANG model for gnpy api input for path computation - TransportPCE preversion";
22
23   revision 2019-01-03 {
24     description
25       "first draft";
26     reference
27       "YANG model for api input for path computation with gnpy";
28   }
29
30   container gnpy-api {
31     description
32       "This is the structure of the body of the request to gnpy";
33     container topology-file {
34       description
35         "Describe the topology file to connect to gnpy";
36       uses gnpynt:topo;
37     }
38     container service-file {
39       description
40         "Describe the service file to connect to gnpy";
41       uses gnpypc:service;
42     }
43   }
44 }