New configuration bundle for the new feature odl-packetcable-policy-server-all. 44/19344/2
authorSteven Pisarski <s.pisarski@cablelabs.com>
Wed, 29 Apr 2015 20:20:32 +0000 (14:20 -0600)
committerThomas Kee <xsited@yahoo.com>
Fri, 8 May 2015 19:51:57 +0000 (12:51 -0700)
Change-Id: I8cee33d563cdda7dcb2deb7f1773ea06a777221b
Signed-off-by: Steven Pisarski <s.pisarski@cablelabs.com>
packetcable-policy-config/pom.xml [new file with mode: 0644]
packetcable-policy-config/src/main/resources/80-packetcable.xml [new file with mode: 0644]
pom.xml

diff --git a/packetcable-policy-config/pom.xml b/packetcable-policy-config/pom.xml
new file mode 100644 (file)
index 0000000..38ee663
--- /dev/null
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ and is available at http://www.eclipse.org/legal/epl-v10.html
+--><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>packetcable</artifactId>
+    <groupId>org.opendaylight.packetcable</groupId>
+    <version>1.2.0-SNAPSHOT</version>
+  </parent>
+  <!--
+    Necessary TODO: Hookup your parent pom here, else you will not get necessary versions,
+    maven repos etc.  If you run this archetype in a subdirectory of your project, it
+    will pick the pom.xml from the parent directory as the parent pom, which may or may
+    not be correct.
+  -->
+  <!-- 
+    Necessary TODO: Replace the contents of src/main/resources/80-packetcable.xml with
+    the proper config subsystem contents for your module
+  -->
+  <artifactId>packetcable-policy-config</artifactId>
+  <groupId>org.opendaylight.packetcable</groupId>
+  <description>Configuration files for md-sal</description>
+  <!-- Optional TODO: Uncomment version if you are not using a parent pom.xml
+   <version>1.1.0-SNAPSHOT</version>
+   -->
+  <packaging>jar</packaging>
+  <properties>
+      <!-- Optional TODO: Rename your configfile to taste -->
+      <configfile>80-packetcable.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>
+                <!--
+                  Optional TODO: Add additional config files
+                    You may need to add more than one config file
+                    if so, you just need to add additional <artifact> entries
+                    here WITH DIFFERENT CLASSIFIERS
+                    Example:
+                    <artifact>
+                      <file>${project.build.directory}/classes/<another-configfile></file>
+                      <type>xml</type>
+                      <classifier>config-<meaningful suffix to describe your other configfile></classifier>
+                    </artifact>
+                -->
+              </artifacts>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  <scm>
+      <connection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</connection>
+      <developerConnection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</developerConnection>
+      <tag>HEAD</tag>
+      <url>https://git.opendaylight.org/gerrit/gitweb?p=packetcable.git;a=summary</url>
+   </scm>
+</project>
diff --git a/packetcable-policy-config/src/main/resources/80-packetcable.xml b/packetcable-policy-config/src/main/resources/80-packetcable.xml
new file mode 100644 (file)
index 0000000..2057f96
--- /dev/null
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ and is available at http://www.eclipse.org/legal/epl-v10.html
+-->
+<snapshot>
+    <required-capabilities>
+        <capability>urn:opendaylight:params:xml:ns:yang:packetcable:packetcable-policy-server:impl?module=packetcable-policy-server-impl&amp;revision=2014-01-31</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:packetcable:packetcable-policy-server:impl">
+                        prefix:packetcable-policy-server-impl
+                    </type>
+                    <name>packetcable-policy-server-default-impl</name>
+                    <data-broker>
+                       <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
+                       <name>binding-data-broker</name>
+                    </data-broker>
+                    <rpc-registry>
+                        <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-rpc-registry</type>
+                        <name>binding-rpc-broker</name>
+                    </rpc-registry> 
+                </module>
+            </modules>
+        </data>
+    </configuration>
+</snapshot>
diff --git a/pom.xml b/pom.xml
index 6686825840bc5b2e7a2fbb8598c945a176f65f44..bf7dbaeca6029f319d7f8ba151106f31e1c682a0 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -43,6 +43,7 @@
                <!-- New modules for the new Arris API -->
                <module>packetcable-policy-model</module>
                <module>packetcable-policy-server</module>
+               <module>packetcable-policy-config</module>
        </modules>
        <scm>
                <connection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</connection>