ONOS-6074 Dynamic Config integration with Yang Runtime, compiler & model
Change-Id: I6c95bde6999c7b1536aa339dadd7274fc058291d
diff --git a/apps/yang/BUCK b/apps/yang/BUCK
new file mode 100644
index 0000000..8c0b321
--- /dev/null
+++ b/apps/yang/BUCK
@@ -0,0 +1,24 @@
+COMPILE_DEPS = [
+ '//lib:CORE_DEPS',
+ '//lib:onos-yang-model',
+ '//lib:onos-yang-compiler-api',
+ '//lib:onos-yang-runtime',
+]
+
+BUNDLES = [
+ '//lib:onos-yang-model',
+ '//lib:onos-yang-compiler-api',
+ '//lib:onos-yang-runtime',
+]
+
+osgi_jar (
+ deps = COMPILE_DEPS,
+)
+
+onos_app (
+ title = 'ONOS YANG Extension',
+ category = 'Utility',
+ url = 'http://onosproject.org',
+ description = 'Base application to bring in the YANG libraries and assemble them for other apps to use.',
+ included_bundles = BUNDLES,
+)
\ No newline at end of file
diff --git a/apps/yang/pom.xml b/apps/yang/pom.xml
new file mode 100644
index 0000000..98d43c2
--- /dev/null
+++ b/apps/yang/pom.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>onos-apps</artifactId>
+ <groupId>org.onosproject</groupId>
+ <version>1.10.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>onos-app-yang</artifactId>
+ <packaging>bundle</packaging>
+ <description>Onos Yang Extension</description>
+ <properties>
+ <onos.app.name>org.onosproject.yang</onos.app.name>
+ <onos.app.category>Utility</onos.app.category>
+ <onos.app.title>Onos Yang Extension</onos.app.title>
+ <onos.app.url>http://onosproject.org</onos.app.url>
+ <onos.app.readme>Onos Yang Extension.</onos.app.readme>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>org.onosproject</groupId>
+ <artifactId>onos-yang-model</artifactId>
+ <version>1.12-b3</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onosproject</groupId>
+ <artifactId>onos-yang-compiler-api</artifactId>
+ <version>1.12-b3</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onosproject</groupId>
+ <artifactId>onos-yang-runtime</artifactId>
+ <version>1.12-b3</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
diff --git a/apps/yang/src/main/java/org/onosproject/yang/YangManager.java b/apps/yang/src/main/java/org/onosproject/yang/YangManager.java
new file mode 100644
index 0000000..c41e950
--- /dev/null
+++ b/apps/yang/src/main/java/org/onosproject/yang/YangManager.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2016-present Open Networking Laboratory
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onosproject.yang;
+
+import org.apache.felix.scr.annotations.Activate;
+import org.apache.felix.scr.annotations.Component;
+import org.apache.felix.scr.annotations.Deactivate;
+import org.slf4j.Logger;
+import static org.slf4j.LoggerFactory.getLogger;
+
+/**
+ * Base application to bring in the YANG libraries and assemble them for other apps to use.
+ *
+ */
+@Component(immediate = true)
+public class YangManager {
+ private final Logger log = getLogger(getClass());
+ @Activate
+ public void activate() {
+ //log.info("Onos Yang Extension Activated!!");
+ }
+
+ @Deactivate
+ public void deactivate() {
+ //log.info("Onos Yang Extension Deactivated!!");
+ }
+}
\ No newline at end of file
diff --git a/apps/yang/src/main/java/org/onosproject/yang/package-info.java b/apps/yang/src/main/java/org/onosproject/yang/package-info.java
new file mode 100755
index 0000000..8cba760
--- /dev/null
+++ b/apps/yang/src/main/java/org/onosproject/yang/package-info.java
@@ -0,0 +1,20 @@
+/*
+ * Copyright 2017-present Open Networking Laboratory
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Base application to bring in the YANG libraries and assemble them for other apps to use.
+ */
+package org.onosproject.yang;
\ No newline at end of file