Merge "Integration of fcaps applications"
[vpnservice.git] / fcapsapplication / fcapsapplication-impl / src / main / yang / fcaps-app.yang
diff --git a/fcapsapplication/fcapsapplication-impl/src/main/yang/fcaps-app.yang b/fcapsapplication/fcapsapplication-impl/src/main/yang/fcaps-app.yang
new file mode 100644 (file)
index 0000000..6f775ca
--- /dev/null
@@ -0,0 +1,64 @@
+module fcaps-app {
+
+    yang-version 1;
+    namespace "urn:opendaylight:params:xml:ns:yang:openflowplugin:app:fcaps-app";
+    prefix "fcaps";
+
+    import config { prefix config; revision-date 2013-04-05; }
+    import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28; }
+    import opendaylight-sal-binding-broker-impl { prefix sal-broker; revision-date 2013-10-28;}
+    import opendaylight-entity-ownership-service { prefix eos; }
+
+    description
+        "This module contains the base YANG definitions for
+        fcaps-manager implementation.";
+
+    revision "2015-12-11" {
+        description
+            "Initial revision.";
+    }
+
+    identity fcaps-app {
+            base config:module-type;
+            config:java-name-prefix FcapsApp;
+    }
+
+    augment "/config:modules/config:module/config:configuration" {
+        case fcaps-app {
+            when "/config:modules/config:module/config:type = 'fcaps-app'";
+
+            container data-broker {
+                uses config:service-ref {
+                    refine type {
+                        mandatory true;
+                        config:required-identity md-sal-binding:binding-async-data-broker;
+                    }
+                }
+            }
+            container rpc-registry {
+                uses config:service-ref {
+                    refine type {
+                        mandatory true;
+                        config:required-identity md-sal-binding:binding-rpc-registry;
+                    }
+                }
+            }
+            container notification-adapter {
+                uses config:service-ref {
+                    refine type {
+                        mandatory true;
+                        config:required-identity sal-broker:binding-new-notification-service;
+                    }
+                }
+            }
+            container entity-ownership-service {
+                uses config:service-ref {
+                    refine type {
+                        mandatory true;
+                            config:required-identity eos:entity-ownership-service;
+                    }
+                }
+            }
+        }
+    }
+}
\ No newline at end of file