Correct subject-alternate-names
[openflowplugin.git] / openflowjava / openflow-protocol-api / src / main / yang / system-notifications.yang
1 /*
2  * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. 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
7  */
8
9  module system-notifications {
10     namespace "urn:opendaylight:openflow:system";
11     prefix "ofs";
12
13     import ietf-yang-types {prefix yang; revision-date "2013-07-15";}
14
15     revision "2013-09-27" {
16         description "#NOT_PUBLISHED# Model of system messages used in OpenFlow Protocol Library";
17     }
18
19     grouping x500-principal {
20         leaf country {
21            type string;
22         }
23         leaf state {
24            type string;
25         }
26         leaf locality {
27            type string;
28         }
29         leaf organization {
30            type string;
31         }
32         leaf organization-unit {
33            type string;
34         }
35         leaf common-name {
36            type string;
37         }
38     }
39     grouping switch-certificate {
40         container subject {
41             uses x500-principal;
42         }
43         container issuer {
44             uses x500-principal;
45         }
46         leaf valid-from {
47             type yang:date-and-time;
48         }
49         leaf valid-to {
50             type yang:date-and-time;
51         }
52         leaf serial-number {
53             type string {
54                 pattern "0|(-?[1-9][0-9]*)";
55             }
56         }
57         leaf-list subject-alternate-names {
58             type string;
59             ordered-by user;
60         }
61     }
62
63     notification disconnect-event {
64         description "Disconnect notification";
65         leaf info {
66             type string;
67         }
68     }
69
70     notification switch-idle-event {
71         description "Switch-idle notification";
72         leaf info {
73             type string;
74         }
75     }
76
77     notification ssl-connection-error {
78         description "Switch ssl connection error notification.";
79         leaf info {
80             type string;
81         }
82         container switch-certificate{
83             uses switch-certificate;
84         }
85     }
86
87
88 }