Add blueprint wiring for openstack/net-virt-sfc
[netvirt.git] / openstack / net-virt / src / main / yang / netvirt-impl.yang
1 module netvirt-impl {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:netvirt:impl";
4     prefix "netvirt-impl";
5
6     import config { prefix config; revision-date 2013-04-05; }
7     import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
8     import opendaylight-entity-ownership-service {prefix eos; revision-date 2015-08-10;}
9
10     description
11         "Service definition for netvirt project";
12
13     revision "2015-05-13" {
14         description
15             "Initial revision";
16     }
17
18     identity netvirt-impl {
19         base config:module-type;
20         config:java-name-prefix netvirtImpl;
21     }
22
23     augment "/config:modules/config:module/config:configuration" {
24         case netvirt-impl {
25             when "/config:modules/config:module/config:type = 'netvirt-impl'";
26             container broker {
27                 uses config:service-ref {
28                     refine type {
29                         mandatory true;
30                         config:required-identity md-sal-binding:binding-broker-osgi-registry;
31                     }
32                 }
33             }
34             container clustering-entity-ownership-service {
35                 uses config:service-ref {
36                     refine type {
37                         mandatory true;
38                         config:required-identity eos:entity-ownership-service;
39                     }
40                 }
41             }
42             leaf conntrack-enabled {
43                 type boolean;
44             }
45
46             leaf int-bridge-gen-mac {
47                 type boolean;
48             }
49         }
50     }
51 }