Update portmapping YANG model
[transportpce.git] / api / src / main / yang / gnpy-eqpt-config@2018-11-19.yang
1 module gnpy-eqpt-config {
2   yang-version 1;
3   namespace "gnpy:gnpy-eqpt-config";
4   prefix gnpyeqpt;
5
6   organization
7     "Telecom Infra Project OOPT PSE
8      Working Group";
9   contact
10     "WG Web:   <https://github.com/Telecominfraproject/oopt-gnpy>
11      contact:  <mailto:ahmed.triki@orange.com>
12      contact:  <mailto:esther.lerouzic@orange.com>
13     ";
14   description
15     "Base YANG model for gnpy equipment library input for path computation - transportPCE preversion";
16
17   revision 2018-11-19 {
18     description
19       "first draft";
20     reference
21       "Base YANG model for equipment library input for path computation with gnpy";
22   }
23
24   /*
25    * Identities
26
27   identity edfa-variety {
28     description "edfa variety" ;
29   }
30
31   identity fiber-variety {
32     description "base identity for fiber variety" ;
33   }
34
35   identity transceiver-variety {
36     description "base identity for transceiver variety" ;
37   }
38
39    */
40
41   list Edfa {
42     key "type_variety";
43     leaf type_variety {
44       type string;
45       description
46         "a unique name to ID the amplifier in the JSON/Excel template topology input file";
47     }
48   }
49   list Fiber {
50     key "type_variety";
51     description
52       "a unique name to ID the fiber in the JSON or Excel template topology input file";
53     leaf type_variety {
54       type string;
55     }
56   }
57   list Transceiver {
58     key "type_variety";
59     description
60       "a unique name to ID the transceiver in the JSON or Excel template topology input file";
61     leaf type_variety {
62       type string;
63     }
64   }
65   list mode {
66     key "format";
67     leaf format {
68       type string;
69       description
70         "unique name of the mode";
71     }
72   }
73   container Spans;
74   container Roadms;
75   container SI;
76 }