Merge "Move aaa-h2-store bundle to use blueprint"
[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         output {
29            leaf odl-cert {
30                type string;
31            }
32         }
33     }
34
35     rpc getODLCertificateReq {
36         description
37             "Generate a certificate request from the ctl.jks keystore to be signed by a CA";
38         output {
39            leaf odl-cert-req {
40                type string;
41            }
42         }
43     }
44
45     rpc setODLCertifcate {
46         description
47             "The certifcate should be generated based on
48             a certifcate request generated from the ctl.jks
49             keystore otherwise the certifcated will not be added to ctl keystore";
50         input {
51            leaf odl-cert {
52                type string;
53            }
54         }
55     }
56
57     rpc setNodeCertifcate {
58         description
59             "Certifcate of the ovs node that will communicate with opendaylight through TLS connection";
60         input {
61            leaf node-alias {
62                type string;
63            }
64            leaf node-cert {
65                type string;
66            }
67         }
68     }
69
70     rpc getNodeCertifcate {
71         description
72             "Get the ovs node certificate based on node alias";
73         input {
74            leaf node-alias {
75                type string;
76            }
77         }
78         output {
79             leaf node-cert {
80                 type string;
81             }
82         }
83     }
84 }