Bug 3166 ui-backend introduced
[groupbasedpolicy.git] / ui-backend / src / main / yang / ui-backend-impl.yang
diff --git a/ui-backend/src/main/yang/ui-backend-impl.yang b/ui-backend/src/main/yang/ui-backend-impl.yang
new file mode 100644 (file)
index 0000000..bd3f9cc
--- /dev/null
@@ -0,0 +1,52 @@
+module ui-backend-impl {
+
+    yang-version 1;
+    namespace "urn:opendaylight:params:xml:ns:yang:controller:config:ui-backend:impl";
+    prefix "ui-backend-impl";
+
+    import config { prefix config; revision-date 2013-04-05; }
+    import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
+
+    description
+        "This module contains the base YANG definitions for
+        ui-backend implementation.";
+
+    revision "2015-05-11" {
+        description
+            "Initial revision.";
+    }
+
+    // This is the definition of the service implementation as a module identity.
+    identity ui-backend-impl {
+        base config:module-type;
+
+        // Specifies the prefix for generated java classes.
+        config:java-name-prefix UiBackend;
+    }
+
+    // Augments the 'configuration' choice node under modules/module.
+    augment "/config:modules/config:module/config:configuration" {
+        case ui-backend-impl {
+            when "/config:modules/config:module/config:type = 'ui-backend-impl'";
+
+            container data-broker {
+                uses config:service-ref {
+                    refine type {
+                        mandatory true;
+                        config:required-identity mdsal:binding-async-data-broker;
+                    }
+                }
+            }
+
+            container rpc-registry {
+                uses config:service-ref {
+                    refine type {
+                        mandatory true;
+                        config:required-identity mdsal:binding-rpc-registry;
+                    }
+                }
+            }
+
+        }
+    }
+}
\ No newline at end of file