Bump H2 database to 2.2.224
[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 ODL 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 ODL 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-alias {
52                 type string;
53             }
54            leaf odl-cert {
55                type string;
56            }
57         }
58     }
59
60     rpc setNodeCertifcate {
61         description
62             "Set the certifcate of the network node that will communicate with opendaylight through TLS connection";
63         input {
64            leaf node-alias {
65                type string;
66            }
67            leaf node-cert {
68                type string;
69            }
70         }
71     }
72
73     rpc getNodeCertifcate {
74         description
75             "Get the network node certificate based on node alias";
76         input {
77            leaf node-alias {
78                type string;
79            }
80         }
81         output {
82             leaf node-cert {
83                 type string;
84             }
85         }
86     }
87 }