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