changes for config subsystem - BUG 754
[openflowjava.git] / openflow-protocol-impl / src / main / yang / openflow-switch-connection-provider-impl.yang
1 module openflow-switch-connection-provider-impl {
2         yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider:impl";
4     prefix "openflow-switch-connection-provider-impl";
5
6     import config {prefix config; revision-date 2013-04-05; }
7     import openflow-switch-connection-provider {prefix openflow-switch-connection-provider; revision-date 2014-03-28; }
8     import ietf-inet-types {prefix ietf-inet; revision-date 2010-09-24; }
9
10     description
11         "openflow-switch-connection-provider";
12
13     revision "2014-03-28" {
14         description
15             "Initial revision";
16     }
17
18     identity openflow-switch-connection-provider-impl {
19         base "config:module-type";
20         config:provided-service openflow-switch-connection-provider:openflow-switch-connection-provider;
21         config:java-name-prefix SwitchConnectionProvider;
22     }
23
24
25     augment "/config:modules/config:module/config:configuration" {
26         case openflow-switch-connection-provider-impl {
27             when "/config:modules/config:module/config:type = 'openflow-switch-connection-provider-impl'";
28
29             leaf port {
30                 description "local listening port";
31                 type uint16;
32                 mandatory true;
33             }
34             leaf address {
35                 description "address of local listening interface";
36                 type ietf-inet:ip-address;
37             }
38             leaf switch-idle-timeout {
39                 description "idle timeout in [ms]";
40                 type uint32;
41                 mandatory true;
42             }
43             leaf tls-support {
44                 description "tls support enabled (requires SSL-context / keystore)";
45                 type boolean;
46                 default false;
47             }
48         }
49     }
50 }