Bug 1823 : Added karaf bundle for 43-openflowjava-nx-api-config.xml 85/11085/4
authorMadhu Venugopal <mavenugo@gmail.com>
Fri, 12 Sep 2014 08:44:01 +0000 (01:44 -0700)
committerMadhu Venugopal <mavenugo@gmail.com>
Fri, 12 Sep 2014 11:43:12 +0000 (11:43 +0000)
Change-Id: I982a281640112f5e6ac023a0763024664189b66c
Signed-off-by: Brent Salisbury <brent.salisbury@gmail.com>
Signed-off-by: Madhu Venugopal <mavenugo@gmail.com>
features/of-nxm-extensions/pom.xml
features/of-nxm-extensions/src/main/resources/features.xml
of-extension/openflowjava-nx-api-config/pom.xml [new file with mode: 0644]
of-extension/openflowjava-nx-api-config/src/main/resources/43-openflowjava-nx-api-config.xml [new file with mode: 0644]
pom.xml

index c6adfd234317812e27fc9439ff022bb0cdf9b86d..4f14a440cdbd9d3725963f6f76e03b245b4215e5 100644 (file)
       <classifier>config</classifier>
       <type>xml</type>
     </dependency>
+    <dependency>
+      <groupId>org.opendaylight.ovsdb</groupId>
+      <artifactId>of-extension.openflowjava-nx-api-config</artifactId>
+      <version>${ovsdb.ofextension.version}</version>
+      <classifier>config</classifier>
+      <type>xml</type>
+    </dependency>
   </dependencies>
   <build>
     <resources>
index a1f1013fd4f6c9c37d98cf2dd3762c089a1d15ab..d16e9eeb35fef2f2388b1aab5a4ca36b10570b97 100644 (file)
@@ -10,5 +10,6 @@
         <bundle>mvn:org.opendaylight.ovsdb/of-extension.nx-ofjava/${ovsdb.nx.version}</bundle>
         <bundle>mvn:org.opendaylight.ovsdb/of-extension.nx-sal/${ovsdb.nx.version}</bundle>
         <configfile finalname="etc/opendaylight/karaf/44-openflowjava-nx-config.xml">mvn:org.opendaylight.ovsdb/of-extension.openflowjava-nx-config/${ovsdb.ofextension.version}/xml/config</configfile>
+        <configfile finalname="etc/opendaylight/karaf/43-openflowjava-nx-api-config.xml">mvn:org.opendaylight.ovsdb/of-extension.openflowjava-nx-api-config/${ovsdb.ofextension.version}/xml/config</configfile>
     </feature>
 </features>
diff --git a/of-extension/openflowjava-nx-api-config/pom.xml b/of-extension/openflowjava-nx-api-config/pom.xml
new file mode 100644 (file)
index 0000000..3a5f8ba
--- /dev/null
@@ -0,0 +1,45 @@
+<?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">
+  <parent>
+    <artifactId>commons</artifactId>
+    <groupId>org.opendaylight.ovsdb</groupId>
+    <version>1.2.0-SNAPSHOT</version>
+    <relativePath>../../commons/parent</relativePath>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>of-extension.openflowjava-nx-api-config</artifactId>
+  <version>${ovsdb.ofextension.version}</version>
+  <packaging>jar</packaging>
+
+  <properties>
+    <configfile>43-openflowjava-nx-api-config.xml</configfile>
+  </properties>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <executions>
+            <execution>
+                <id>attach-artifacts</id>
+                <goals>
+                    <goal>attach-artifact</goal>
+                </goals>
+                <phase>package</phase>
+                <configuration>
+                    <artifacts>
+                        <artifact>
+                            <file>${project.build.directory}/classes/${configfile}</file>
+                            <type>xml</type>
+                            <classifier>config</classifier>
+                        </artifact>
+                    </artifacts>
+                </configuration>
+            </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/of-extension/openflowjava-nx-api-config/src/main/resources/43-openflowjava-nx-api-config.xml b/of-extension/openflowjava-nx-api-config/src/main/resources/43-openflowjava-nx-api-config.xml
new file mode 100644 (file)
index 0000000..1964e4d
--- /dev/null
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<snapshot>
+  <required-capabilities>
+    <capability>urn:opendaylight:params:xml:ns:yang:openflowplugin:ofjava:nx:api:config?module=openflowjava-nx-api-config&amp;revision=2014-07-11</capability>
+  </required-capabilities>
+
+  <configuration>
+
+    <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
+      <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
+        <module>
+          <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:openflowplugin:ofjava:nx:api:config">prefix:openflowjava-extension-nicira-api</type>
+          <name>openflowjava-extension-nx-api-bundle</name>
+          <openflow-switch-connection-provider>
+            <type xmlns:ofSwitch="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider">ofSwitch:openflow-switch-connection-provider</type>
+            <name>openflow-switch-connection-provider-legacy</name>
+          </openflow-switch-connection-provider>
+          <openflow-switch-connection-provider>
+            <type xmlns:ofSwitch="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider">ofSwitch:openflow-switch-connection-provider</type>
+            <name>openflow-switch-connection-provider-default</name>
+          </openflow-switch-connection-provider>
+        </module>
+      </modules>
+
+      <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
+        <service>
+          <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:openflowplugin:ofjava:nx:api:config">prefix:nicira-extension-codec-registrator</type>
+          <instance>
+            <name>openflowjava-nicira-ext-registrator</name>
+            <provider>/modules/module[type='openflowjava-extension-nicira-api'][name='openflowjava-extension-nx-api-bundle']</provider>
+          </instance>
+        </service>
+      </services>
+    </data>
+
+  </configuration>
+</snapshot>
diff --git a/pom.xml b/pom.xml
index 11342d4de4fb817534cdc1f17be20e605068895a..f25ef5318703ab537353d4254ec529739e940dd9 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -39,6 +39,7 @@
     <module>integrationtest</module>
     <!-- Config Files -->
     <module>of-extension/openflowjava-nx-config</module>
+    <module>of-extension/openflowjava-nx-api-config</module>
     <!-- Karaf Distribution -->
     <module>features/ovsdb</module>
     <module>features/of-nxm-extensions</module>