ios-xe renderer - features 04/39304/12
authorMichal Rehak <mirehak@cisco.com>
Tue, 24 May 2016 07:26:29 +0000 (09:26 +0200)
committerVladimir Lavor <vlavor@cisco.com>
Thu, 26 May 2016 12:00:19 +0000 (14:00 +0200)
    - features
    - artifacts
    - config

Change-Id: I1c42cabc69dd0b02268fc5b82fd15a10e12f9ce0
Signed-off-by: Michal Rehak <mirehak@cisco.com>
artifacts/pom.xml
features/pom.xml
features/src/main/features/features.xml
renderers/ios-xe/src/main/config/default-config.xml [new file with mode: 0755]

index b8c57bd28800aa11e4a43246042046e8fc631349..93101c44ab947e5ec7cc320946cdc5611e4539d8 100755 (executable)
         <type>xml</type>
         <classifier>config</classifier>
       </dependency>
+      <dependency>
+        <groupId>${project.groupId}</groupId>
+        <artifactId>ios-xe-renderer</artifactId>
+        <version>${project.version}</version>
+        <type>xml</type>
+        <classifier>config</classifier>
+      </dependency>
 
 
       <!-- GBP features -->
index 77089623e919981bb79b9e7668628d1a64b79d5d..fd26227806d5ed27910986c5e15db3232981aa47 100755 (executable)
@@ -4,14 +4,14 @@
   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">
+         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>
     <groupId>org.opendaylight.odlparent</groupId>
     <artifactId>features-parent</artifactId>
     <version>1.7.0-SNAPSHOT</version>
-    <relativePath />
+    <relativePath/>
   </parent>
 
   <groupId>org.opendaylight.groupbasedpolicy</groupId>
@@ -37,6 +37,7 @@
     <dlux.version>0.4.0-SNAPSHOT</dlux.version>
     <config.configfile.directory>etc/opendaylight/karaf</config.configfile.directory>
     <sxp.version>1.3.0-SNAPSHOT</sxp.version>
+    <netconf.version>1.1.0-SNAPSHOT</netconf.version>
   </properties>
 
   <dependencyManagement>
         <type>pom</type>
       </dependency>
 
+      <!-- netconf -->
+      <dependency>
+        <groupId>org.opendaylight.netconf</groupId>
+        <artifactId>netconf-artifacts</artifactId>
+        <version>${netconf.version}</version>
+        <type>pom</type>
+        <scope>import</scope>
+      </dependency>
+
       <!-- Openflow plugin -->
       <dependency>
         <groupId>org.opendaylight.openflowplugin</groupId>
       <type>xml</type>
     </dependency>
     <dependency>
-      <groupId>org.opendaylight.mdsal.model</groupId>
-      <artifactId>features-mdsal-model</artifactId>
-      <version>${mdsal.model.version}</version>
+      <groupId>org.opendaylight.netconf</groupId>
+      <artifactId>features-netconf-connector</artifactId>
       <classifier>features</classifier>
       <type>xml</type>
       <scope>runtime</scope>
     <dependency>
       <groupId>org.opendaylight.dlux</groupId>
       <artifactId>features-dlux</artifactId>
-         <version>${dlux.version}</version>
+      <version>${dlux.version}</version>
       <classifier>features</classifier>
       <type>xml</type>
     </dependency>
 
     <!-- JERSEY -->
     <dependency>
-        <groupId>com.sun.jersey</groupId>
-        <artifactId>jersey-core</artifactId>
+      <groupId>com.sun.jersey</groupId>
+      <artifactId>jersey-core</artifactId>
     </dependency>
     <dependency>
-        <groupId>com.sun.jersey</groupId>
-        <artifactId>jersey-server</artifactId>
+      <groupId>com.sun.jersey</groupId>
+      <artifactId>jersey-server</artifactId>
     </dependency>
     <dependency>
       <groupId>org.opendaylight.controller.thirdparty</groupId>
       <groupId>org.opendaylight.groupbasedpolicy</groupId>
       <artifactId>faas-renderer</artifactId>
     </dependency>
-     <dependency>
+    <dependency>
       <groupId>org.opendaylight.groupbasedpolicy</groupId>
       <artifactId>netconf-renderer</artifactId>
     </dependency>
       <groupId>org.opendaylight.groupbasedpolicy</groupId>
       <artifactId>sxp-mapper</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.opendaylight.groupbasedpolicy</groupId>
+      <artifactId>ios-xe-renderer</artifactId>
+    </dependency>
 
     <!-- GBP configuration -->
     <dependency>
       <classifier>config</classifier>
     </dependency>
     <dependency>
-       <groupId>org.opendaylight.groupbasedpolicy</groupId>
-       <artifactId>sxp-mapper</artifactId>
-       <type>xml</type>
-       <classifier>config</classifier>
+      <groupId>org.opendaylight.groupbasedpolicy</groupId>
+      <artifactId>sxp-mapper</artifactId>
+      <type>xml</type>
+      <classifier>config</classifier>
+    </dependency>
+    <dependency>
+      <groupId>org.opendaylight.groupbasedpolicy</groupId>
+      <artifactId>ios-xe-renderer</artifactId>
+      <type>xml</type>
+      <classifier>config</classifier>
     </dependency>
   </dependencies>
-</project>
+</project>
\ No newline at end of file
index 2b385da76648a60629f886fbddd3282f675b1066..0177b8b1d56d2f5484f7511ba7f8eb5725d0a3ea 100755 (executable)
@@ -33,6 +33,8 @@
     <repository>mvn:org.opendaylight.aaa/features-aaa-shiro/${aaa.version}/xml/features</repository>
     <!-- Repos needed by sxp-mapper -->
     <repository>mvn:org.opendaylight.sxp/features/${sxp.version}/xml/features</repository>
+    <!-- Repos needed by iosxe renderer -->
+    <repository>mvn:org.opendaylight.netconf/features-netconf-connector/${netconf.version}/xml/features</repository>
 
     <!-- The common GBP components -->
     <feature name='odl-groupbasedpolicy-base' version='${project.version}' description='OpenDaylight :: groupbasedpolicy :: Base Copmonents'>
         <bundle>mvn:org.opendaylight.groupbasedpolicy/ne-location-provider/{{VERSION}}</bundle>
         <configfile finalname="${config.configfile.directory}/15-ne-location-provider.xml">mvn:org.opendaylight.groupbasedpolicy/ne-location-provider/{{VERSION}}/xml/config</configfile>
     </feature>
+
+    <!--
+       IOS-XE renderer
+   -->
+    <feature name='odl-groupbasedpolicy-ios-xe' version='${project.version}' description='OpenDaylight :: groupbasedpolicy :: ios-xe renderer'>
+        <feature version="${project.version}">odl-groupbasedpolicy-base</feature>
+        <feature version="${sfc.version}">odl-sfc-provider</feature>
+        <feature version="${sxp.version}">odl-sxp-core</feature>
+        <feature version="${netconf.version}">odl-netconf-topology</feature>
+        <bundle>mvn:org.opendaylight.groupbasedpolicy/sxp-mapper/{{VERSION}}</bundle>
+        <bundle>mvn:org.opendaylight.groupbasedpolicy/ios-xe-renderer/{{VERSION}}</bundle>
+        <configfile finalname="${config.configfile.directory}/15-groupbasedpolicy-ios-xe-renderer.xml">mvn:org.opendaylight.groupbasedpolicy/ios-xe-renderer/{{VERSION}}/xml/config</configfile>
+    </feature>
 </features>
diff --git a/renderers/ios-xe/src/main/config/default-config.xml b/renderers/ios-xe/src/main/config/default-config.xml
new file mode 100755 (executable)
index 0000000..ec77ae9
--- /dev/null
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright (c) 2016 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
+  -->
+
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+
+<snapshot>
+    <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:iosxe="urn:opendaylight:params:xml:ns:yang:groupbasedpolicy:renderer:ios-xe-provider:impl:config">
+                        iosxe:ios-xe-provider-impl
+                    </type>
+                    <name>ios-xe-provider-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>
+
+                    <broker>
+                        <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-broker-osgi-registry</type>
+                        <name>binding-osgi-broker</name>
+                    </broker>
+
+                    <policy-validator-registry>
+                        <type xmlns:gbp="urn:opendaylight:params:xml:ns:yang:controller:config:groupbasedpolicy">gbp:policy-validator-registry</type>
+                        <name>policy-validator-registry</name>
+                    </policy-validator-registry>
+
+                    <renderer-name>ios-xe</renderer-name>
+                </module>
+            </modules>
+        </data>
+
+    </configuration>
+
+    <required-capabilities>
+        <capability>urn:opendaylight:params:xml:ns:yang:groupbasedpolicy:renderer:ios-xe-provider:impl:config?module=ios-xe-provider-impl&amp;revision=2016-05-17</capability>
+    </required-capabilities>
+
+</snapshot>