db02f8c1546f7c001d43091987f1a549009b2adf
[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         }
60     }
61
62     notification disconnect-event {
63         description "Disconnect notification";
64         leaf info {
65             type string;
66         }
67     }
68
69     notification switch-idle-event {
70         description "Switch-idle notification";
71         leaf info {
72             type string;
73         }
74     }
75
76     notification ssl-connection-error {
77         description "Switch ssl connection error notification.";
78         leaf info {
79             type string;
80         }
81         container switch-certificate{
82             uses switch-certificate;
83         }
84     }
85
86
87 }