Bug 5510 - making sure that br-int is created
[groupbasedpolicy.git] / neutron-ovsdb / src / main / yang / neutron-ovsdb-impl.yang
1 module neutron-ovsdb-impl {
2
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:neutron-ovsdb:impl";
5     prefix "neutron-ovsdb-impl";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
9
10     description
11         "This module contains the base YANG definitions for
12         neutron-ovsdb implementation.";
13
14     revision "2015-02-19" {
15         description
16             "Initial revision.";
17     }
18
19     // This is the definition of the service implementation as a module identity.
20     identity neutron-ovsdb-impl {
21         base config:module-type;
22
23         // Specifies the prefix for generated java classes.
24         config:java-name-prefix NeutronOvsdb;
25     }
26
27     // Augments the 'configuration' choice node under modules/module.
28     augment "/config:modules/config:module/config:configuration" {
29         case neutron-ovsdb-impl {
30             when "/config:modules/config:module/config:type = 'neutron-ovsdb-impl'";
31
32             container data-broker {
33                 uses config:service-ref {
34                     refine type {
35                         mandatory true;
36                         config:required-identity mdsal:binding-async-data-broker;
37                     }
38                 }
39             }
40
41             container rpc-registry {
42                 uses config:service-ref {
43                     refine type {
44                         mandatory true;
45                         config:required-identity mdsal:binding-rpc-registry;
46                     }
47                 }
48             }
49
50             container integration-bridge-setting {
51                 leaf name {
52                     mandatory true;
53                     type string;
54                 }
55                 leaf openflow-port {
56                     mandatory true;
57                     type uint16;
58                 }
59                 leaf openflow-protocol {
60                     mandatory true;
61                     type string {
62                         pattern "^tcp$|^udp$";
63                    }
64                 }
65             }
66         }
67     }
68 }