T-API notification functional tests
[transportpce.git] / api / src / main / yang / transportpce-networkutils@2017-08-18.yang
1 module transportpce-networkutils {
2   yang-version 1;
3   namespace "http://org/opendaylight/transportpce/networkutils";
4   prefix org-opendaylight-transportpce-networkutils;
5
6   revision 2017-08-18 {
7     description
8       "Initial revision of networkutils model";
9   }
10
11   grouping links-input-grouping {
12     container links-input {
13       description
14         "This is the input to initialize the nodes";
15       leaf xpdr-node {
16         type string;
17       }
18       leaf xpdr-num {
19         type uint8;
20       }
21       leaf network-num {
22         type uint8;
23       }
24       leaf rdm-node {
25         type string;
26       }
27       leaf srg-num {
28         type uint8;
29       }
30       leaf termination-point-num {
31         type string;
32       }
33     }
34   }
35
36   rpc init-roadm-nodes {
37     description
38       "This rpc initiates roadm to roadm link";
39     input {
40       leaf rdm-a-node {
41         type string;
42       }
43       leaf deg-a-num {
44         type uint8;
45       }
46       leaf termination-point-a {
47         type string;
48       }
49       leaf rdm-z-node {
50         type string;
51       }
52       leaf deg-z-num {
53         type uint8;
54       }
55       leaf termination-point-z {
56         type string;
57       }
58     }
59     output {
60       leaf result {
61         type string;
62       }
63     }
64   }
65
66   rpc init-xpdr-rdm-links {
67     description
68       "This rpc initiates xponder to rdm link";
69     input {
70       uses links-input-grouping;
71     }
72     output {
73       leaf result {
74         type string;
75       }
76     }
77   }
78
79   rpc init-rdm-xpdr-links {
80     description
81       "This rpc initiates rdm to xponder link";
82     input {
83       uses links-input-grouping;
84     }
85     output {
86       leaf result {
87         type string;
88       }
89     }
90   }
91
92   rpc delete-link {
93     description
94       "This rpc deletes a given link in openroadm Topology layer";
95     input {
96       leaf link-id {
97         type string;
98       }
99     }
100     output {
101       leaf result {
102         type string;
103       }
104     }
105   }
106 }