diff options
author | 2016-02-02 08:35:12 +0100 | |
---|---|---|
committer | 2016-02-02 13:16:31 +0100 | |
commit | a03a2cb26606a9099f2ea8cfd589f7ef503f0374 (patch) | |
tree | 071291fffee8e08fd6ae5481d99798666c64c480 /vbd/impl/src/main/yang/vbd-impl.yang | |
parent | 136b9074bc3a49fbbb86699eec6458d7f4d7ba7f (diff) |
Adding named augmentation + prepare naked application.
Named augmentation of node topology-types was added for
better readibility of generated code.
Running application was created. It is possible to start via
installing feature odl-vbd-rest.
Change-Id: I2d919cd20d962ff9b28143794f6984137331c51a
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Diffstat (limited to 'vbd/impl/src/main/yang/vbd-impl.yang')
-rw-r--r-- | vbd/impl/src/main/yang/vbd-impl.yang | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vbd/impl/src/main/yang/vbd-impl.yang b/vbd/impl/src/main/yang/vbd-impl.yang new file mode 100644 index 000000000..d0c259500 --- /dev/null +++ b/vbd/impl/src/main/yang/vbd-impl.yang @@ -0,0 +1,35 @@ +module vbd-impl { + yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:vbd:impl"; + prefix "vbd-impl"; + + import config { prefix config; revision-date 2013-04-05; } + import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;} + + description + "Service definition for vbd project"; + + revision "2016-02-02" { + description + "Initial revision"; + } + + identity vbd { + base config:module-type; + config:java-name-prefix Vbd; + } + + augment "/config:modules/config:module/config:configuration" { + case vbd { + when "/config:modules/config:module/config:type = 'vbd'"; + container broker { + uses config:service-ref { + refine type { + mandatory true; + config:required-identity md-sal-binding:binding-broker-osgi-registry; + } + } + } + } + } +} |