Renderer and OLM update
[transportpce.git] / api / src / main / yang / renderer@2017-02-28.yang
1 module renderer {
2   yang-version 1;
3   namespace "urn:opendaylight:params:xml:ns:yang:renderer";
4   prefix "renderer";
5
6   import org-transportpce-common-types {
7       prefix org-transportpce-common-types;
8       revision-date 2017-09-07;
9   }
10
11   organization
12        "transportPCE";
13      contact
14        "transportPCE committers - ODL";
15      description
16        "YANG definitions of RPCs supported by renderer.
17         Copyright (c) 2017 AT&T and others.  All rights reserved.
18         authors: Dhruv Bhardwaj ( db929a@att.com )
19                  Shweta Vachhani ( sv111y@att.com )";
20
21   revision "2017-02-28" {
22     description "Initial revision of renderer model";
23   }
24
25   rpc service-path {
26     input {
27       leaf modulation-format {
28           type string;
29       }
30       leaf operation {
31         type enumeration {
32           enum "create" {
33             value 1;
34           }
35           enum "delete" {
36             value 2;
37           }
38         }
39       }
40       uses org-transportpce-common-types:olm-renderer-input;
41     }
42     output{
43       leaf success {
44         type boolean;
45       }
46       leaf result {
47         type string;
48       }
49       uses org-transportpce-common-types:node-interfaces;
50     }
51   }
52
53   rpc renderer-rollback {
54     input {
55       uses org-transportpce-common-types:node-interfaces;
56     }
57     output {
58       leaf success {
59         type boolean;
60       }
61       list failed-to-rollback {
62         key node-id;
63         leaf node-id {
64           type string;
65         }
66         leaf-list interface {
67           type string;
68         }
69       }
70     }
71   }
72 }