c1eb202288f1df4118eccb725a662ecac0fa8f26
[transportpce.git] / api / src / main / yang / renderer.yang
1 module renderer {
2   yang-version 1;
3   namespace "urn:opendaylight:params:xml:ns:yang:renderer";
4   prefix "renderer";
5
6   revision "2017-02-28" {
7     description "Initial revision of renderer model";
8   }
9   rpc service-path{
10     input{
11       leaf wave-number{
12         type uint32;
13       }
14       leaf operation{
15         type enumeration{
16           enum "create"{
17             value 1;
18           }
19           enum "delete"{
20             value 2;
21           }
22         }
23       }
24       list nodes{
25         key "node-id";
26         leaf node-id{
27           type string;
28         }
29         leaf src-tp{
30           type string;
31           description "Source termination point ";
32           mandatory true;
33         }
34         leaf dest-tp{
35           type string;
36           description "Destination termination point ";
37            mandatory true;
38         }
39       }
40     }
41     output{
42       leaf result{
43         type string;
44       }
45     }
46   }
47 }