From 0bff0bc46834dd80b972baaded1aaff1af4ef6f9 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Wed, 3 Sep 2014 16:34:24 +0200 Subject: [PATCH] BUG-1617 Add netconf tcp/ssh to karaf features Add bouncyCastle security provider to karaf distro Change-Id: Ia13b1078c62ba39b70ed3d72c29a8e434949d4bb Signed-off-by: Maros Marsalek --- .../mdsal/src/main/resources/features.xml | 5 +++ features/netconf/pom.xml | 30 ++++++++++++++++++ .../netconf/src/main/resources/features.xml | 20 +++++++++++- opendaylight/commons/opendaylight/pom.xml | 1 + .../opendaylight-karaf-resources/pom.xml | 31 +++++++++++++++++++ .../src/main/resources/etc/custom.properties | 2 ++ .../distribution/opendaylight-karaf/pom.xml | 8 +++++ 7 files changed, 96 insertions(+), 1 deletion(-) diff --git a/features/mdsal/src/main/resources/features.xml b/features/mdsal/src/main/resources/features.xml index ae73c71ee4..619eaee8a8 100644 --- a/features/mdsal/src/main/resources/features.xml +++ b/features/mdsal/src/main/resources/features.xml @@ -40,6 +40,11 @@ mvn:org.opendaylight.controller/sal-netconf-connector/${project.version} mvn:org.opendaylight.controller.model/model-inventory/${project.version} mvn:org.opendaylight.controller/netconf-config-dispatcher/${config.version} + mvn:org.opendaylight.controller/netconf-config/${netconf.version}/xml/config + + + odl-netconf-ssh + odl-mdsal-netconf-connector mvn:org.opendaylight.controller/netconf-connector-config/${netconf.version}/xml/config diff --git a/features/netconf/pom.xml b/features/netconf/pom.xml index d18d227f00..46f83fb514 100644 --- a/features/netconf/pom.xml +++ b/features/netconf/pom.xml @@ -38,6 +38,22 @@ org.opendaylight.controller netconf-auth + + org.opendaylight.controller + netconf-tcp + + + org.opendaylight.controller + netconf-ssh + + + org.bouncycastle + bcpkix-jdk15on + + + org.bouncycastle + bcprov-jdk15on + org.opendaylight.controller ietf-netconf-monitoring @@ -117,10 +133,24 @@ xml config + + org.opendaylight.controller + netconf-connector-config + ${config.version} + xml + config + org.opendaylight.controller netconf-monitoring + + org.opendaylight.aaa + features-aaa + ${aaa.version} + features + xml + diff --git a/features/netconf/src/main/resources/features.xml b/features/netconf/src/main/resources/features.xml index 0a6356231a..4157212f2e 100644 --- a/features/netconf/src/main/resources/features.xml +++ b/features/netconf/src/main/resources/features.xml @@ -5,11 +5,15 @@ xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.2.0 http://karaf.apache.org/xmlns/features/v1.2.0"> mvn:org.opendaylight.controller/features-protocol-framework/${protocol-framework.version}/xml/features mvn:org.opendaylight.controller/features-config/${config.version}/xml/features + mvn:org.opendaylight.aaa/features-aaa/${aaa.version}/xml/features + odl-netconf-api odl-netconf-mapping-api odl-netconf-util odl-netconf-impl + odl-netconf-tcp + odl-netconf-ssh odl-config-netconf-connector odl-netconf-netty-util odl-netconf-client @@ -38,8 +42,23 @@ odl-netconf-mapping-api odl-netconf-util odl-netconf-netty-util + + odl-config-netconf-connector + + odl-netconf-monitoring mvn:org.opendaylight.controller/netconf-impl/${project.version} + + odl-netconf-tcp + odl-aaa-authn-plugin + mvn:org.opendaylight.controller/netconf-ssh/${project.version} + mvn:org.bouncycastle/bcpkix-jdk15on/${bouncycastle.version} + mvn:org.bouncycastle/bcprov-jdk15on/${bouncycastle.version} + + + odl-netconf-impl + mvn:org.opendaylight.controller/netconf-tcp/${project.version} + odl-config-manager odl-netconf-api @@ -64,7 +83,6 @@ odl-netconf-netty-util mvn:org.opendaylight.controller/netconf-client/${project.version} - mvn:org.opendaylight.controller/netconf-config/${netconf.version}/xml/config odl-netconf-util diff --git a/opendaylight/commons/opendaylight/pom.xml b/opendaylight/commons/opendaylight/pom.xml index b05170ddc8..2e817b97f3 100644 --- a/opendaylight/commons/opendaylight/pom.xml +++ b/opendaylight/commons/opendaylight/pom.xml @@ -67,6 +67,7 @@ 0.5.2-SNAPSHOT 1.4 0.2.5-SNAPSHOT + 0.1.0-SNAPSHOT etc/opendaylight/karaf 05-clustering.xml 00-netty.xml diff --git a/opendaylight/distribution/opendaylight-karaf-resources/pom.xml b/opendaylight/distribution/opendaylight-karaf-resources/pom.xml index 00495a3201..e34a5d3c2c 100644 --- a/opendaylight/distribution/opendaylight-karaf-resources/pom.xml +++ b/opendaylight/distribution/opendaylight-karaf-resources/pom.xml @@ -18,4 +18,35 @@ opendaylight-karaf-resources Resources for opendaylight-karaf jar + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.6 + + + copy + + copy + + + generate-resources + + + + + org.bouncycastle + bcprov-jdk15on + ${bouncycastle.version} + target/classes/lib/ext + bcprov-jdk15on-${bouncycastle.version}.jar + + + + + + + + diff --git a/opendaylight/distribution/opendaylight-karaf-resources/src/main/resources/etc/custom.properties b/opendaylight/distribution/opendaylight-karaf-resources/src/main/resources/etc/custom.properties index a644bf6ee8..8a2aa59dfe 100644 --- a/opendaylight/distribution/opendaylight-karaf-resources/src/main/resources/etc/custom.properties +++ b/opendaylight/distribution/opendaylight-karaf-resources/src/main/resources/etc/custom.properties @@ -37,6 +37,8 @@ netconf.tcp.client.port=8383 netconf.ssh.address=0.0.0.0 netconf.ssh.port=1830 netconf.ssh.pk.path = ./configuration/RSA.pk +# Set security provider to BouncyCastle +org.apache.karaf.security.providers = org.bouncycastle.jce.provider.BouncyCastleProvider netconf.config.persister.active=1 diff --git a/opendaylight/distribution/opendaylight-karaf/pom.xml b/opendaylight/distribution/opendaylight-karaf/pom.xml index cdc592428f..795f68c397 100644 --- a/opendaylight/distribution/opendaylight-karaf/pom.xml +++ b/opendaylight/distribution/opendaylight-karaf/pom.xml @@ -226,6 +226,14 @@ target/assembly/lib karaf.branding-${branding.version}.jar + + + org.bouncycastle + bcprov-jdk15on + ${bouncycastle.version} + target/assembly/lib/ext + bcprov-jdk15on-${bouncycastle.version}.jar + -- 2.36.6