Merge "Fix AaaCertMdsalProvider service and AaaCert RPC service"
[aaa.git] / aaa-cert / src / main / yang / aaa-cert-rpc.yang
1 /*
2 Copyright (c) 2015 Inocybe Technology All rights reserved.
3
4 This program and the accompanying materials are made available under the
5 terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
7 */
8
9 module aaa-cert-rpc {
10     yang-version 1;
11     namespace "urn:opendaylight:yang:aaa:cert:rpc";
12     prefix "aaa-cert-rpc";
13
14     description
15         "defination of node certificate grouping and Rpc calls of certificate manipulation";
16
17     contact
18         "melserngawy@inocybe.com";
19
20     revision "2015-12-15" {
21         description
22             "Initial revision.";
23     }
24
25     rpc getODLCertificate {
26         description
27             "Get the ctl.jks keystore certificate";
28         input {
29             leaf cert-alias {
30                 type string;
31             }
32          }
33         output {
34            leaf odl-cert {
35                type string;
36            }
37         }
38     }
39
40     rpc getODLCertificateReq {
41         description
42             "Generate a certificate request from the ctl.jks keystore to be signed by a CA";
43         input {
44             leaf cert-req-alias {
45                 type string;
46             }
47          }
48         output {
49            leaf odl-cert-req {
50                type string;
51            }
52         }
53     }
54
55     rpc setODLCertifcate {
56         description
57             "The certifcate should be generated based on
58             a certifcate request generated from the ctl.jks
59             keystore otherwise the certifcated will not be added to ctl keystore";
60         input {
61             leaf odl-cert-alias {
62                 type string;
63             }
64            leaf odl-cert {
65                type string;
66            }
67         }
68     }
69
70     rpc setNodeCertifcate {
71         description
72             "Certifcate of the ovs node that will communicate with opendaylight through TLS connection";
73         input {
74            leaf node-alias {
75                type string;
76            }
77            leaf node-cert {
78                type string;
79            }
80         }
81     }
82
83     rpc getNodeCertifcate {
84         description
85             "Get the ovs node certificate based on node alias";
86         input {
87            leaf node-alias {
88                type string;
89            }
90         }
91         output {
92             leaf node-cert {
93                 type string;
94             }
95         }
96     }
97 }