Merge "Updates to Renderer"
[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 service-name{
12           type string;
13       }
14       leaf wave-number{
15         type uint32;
16       }
17       leaf modulation-format {
18           type string;
19       }
20       leaf operation{
21         type enumeration{
22           enum "create"{
23             value 1;
24           }
25           enum "delete"{
26             value 2;
27           }
28         }
29       }
30       list nodes{
31         key "node-id";
32         leaf node-id{
33           type string;
34         }
35         leaf src-tp{
36           type string;
37           description "Source termination point ";
38           mandatory true;
39         }
40         leaf dest-tp{
41           type string;
42           description "Destination termination point ";
43            mandatory true;
44         }
45       }
46     }
47     output{
48       leaf result{
49         type string;
50       }
51     }
52   }
53 }