Merge branch 'release-1.0.X' into develop 16/4516/1
authorLorand Jakab <lojakab@cisco.com>
Tue, 21 Jan 2014 17:28:38 +0000 (19:28 +0200)
committerLorand Jakab <lojakab@cisco.com>
Tue, 21 Jan 2014 18:27:13 +0000 (20:27 +0200)
Conflicts:
commons/code-parent/pom.xml
mappingservice/api/pom.xml
mappingservice/implementation/pom.xml
mappingservice/integrationtest/src/test/java/org/opendaylight/lispflowmapping/integrationtest/MappingServiceIntegrationTest.java
mappingservice/northbound/pom.xml
mappingservice/northbound/src/main/java/org/opendaylight/lispflowmapping/northbound/LispMappingNorthbound.java
mappingservice/southbound/pom.xml

Change-Id: Ie87bc7db6bc9dfc80a3b7fdae9b8d2cc1f4092c3
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
134 files changed:
commons/parent/pom.xml
commons/unittest_tools/pom.xml
commons/unittest_tools/src/main/java/org/opendaylight/lispflowmapping/tools/junit/BaseExpectations.java
commons/unittest_tools/src/main/java/org/opendaylight/lispflowmapping/tools/junit/BaseTestCase.java
commons/unittest_tools/src/main/java/org/opendaylight/lispflowmapping/tools/junit/MockCommandInterpreter.java
mappingservice/api/pom.xml
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/ILispDAO.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/ILispTypeConverter.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/IMappingServiceKey.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/IQueryAll.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/IRowVisitor.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/MappingEntry.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/MappingServiceRLOC.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/MappingServiceValue.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/MappingValueKey.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/lisp/IFlowMapping.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/lisp/IGeneralMapResolver.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/lisp/IGeneralMapServer.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/lisp/IMapNotifyHandler.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/lisp/IMapRequestResultHandler.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/lisp/IMapResolver.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/lisp/IMapResolverAsync.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/lisp/IMapServer.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/lisp/IMapServerAsync.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/AddressFamilyNumberEnum.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/LispCanonicalAddressFormatEnum.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/EidRecord.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/EidToLocatorRecord.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/LocatorRecord.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/MapNotify.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/MapRegister.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/MapReply.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/MapReplyAction.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/MapRequest.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/NegativeAction.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/address/LispASAddress.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/address/LispAddress.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/address/LispAddressGeneric.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/address/LispIPAddress.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/address/LispIpv4Address.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/address/LispIpv6Address.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/address/LispLCAFAddress.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/address/LispMACAddress.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/address/LispNoAddress.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/address/LispSegmentLCAFAddress.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/lisp/address/ReencapHop.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/sbplugin/IConfigLispPlugin.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/type/sbplugin/ILispSouthboundPlugin.java
mappingservice/config/pom.xml
mappingservice/config/src/main/java/org/opendaylight/lispflowmapping/config/yang/LispConfigContextSetterImpl.java
mappingservice/config/src/main/java/org/opendaylight/lispflowmapping/config/yang/LispConfigModuleFactory.java
mappingservice/implementation/pom.xml
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/Activator.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/LispMappingService.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/authentication/ILispAuthentication.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/authentication/LispAuthenticationFactory.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/authentication/LispAuthenticationUtil.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/authentication/LispKeyIDEnum.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/authentication/LispMACAuthentication.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/authentication/LispNoAuthentication.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/dao/ClusterDAOService.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/dao/InMemoryDAO.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/dao/MappingServiceKey.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/dao/MappingServiceKeyUtil.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/dao/MappingServiceNoMaskKey.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/lisp/MapResolver.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/lisp/MapServer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/lisp/exception/LispSerializationException.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/EidRecordSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/EidToLocatorRecordSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/LispMessage.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/LispMessageEnum.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/LocatorRecordSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/MapNotifySerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/MapRegisterSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/MapReplySerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/MapRequestSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispAddressSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispApplicationDataLCAFAddressSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispDistinguishedNameAddressSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispIpv4AddressSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispIpv6AddressSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispLCAFAddressSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispListLCAFAddressSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispMACAddressSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispNoAddressSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispSegmentLCAFAddressSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispSourceDestLCAFAddressSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispTrafficEngineeringLCAFAddressSerializer.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/address/factory/LispAFIAddressSerializerFactory.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/serializer/address/factory/LispLCAFAddressSerializerFactory.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/util/ByteUtil.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/util/LispAFIConvertor.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/util/MapNotifyBuilderHelper.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/util/MaskUtil.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/util/NumberUtil.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/LispMappingServiceCliTest.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/dao/InMemoryDAOTest.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/lisp/MapResolverTest.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/lisp/MapServerTest.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/serializer/MapNotifySerializationTest.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/serializer/MapRegisterSerializationTest.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/serializer/MapReplySerializationTest.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/serializer/MapRequestSerializationTest.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispApplicationDataLCAFAddressTest.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispDistinguishedNameAddressSerializerTest.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispIpv6AddressTest.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispListLCAFAddressTest.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispSegmentLCAFAddressTest.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispSourceDestLCAFAddressTest.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/serializer/address/LispTrafficEngineeringLCAFAddressTest.java
mappingservice/integrationtest/pom.xml
mappingservice/integrationtest/src/test/java/org/opendaylight/lispflowmapping/integrationtest/MappingServiceIntegrationTest.java
mappingservice/integrationtest/src/test/resources/controller.config [deleted file]
mappingservice/integrationtest/src/test/resources/controller.xml [new file with mode: 0644]
mappingservice/integrationtest/src/test/resources/logback.xml
mappingservice/northbound/pom.xml
mappingservice/northbound/src/main/java/org/opendaylight/lispflowmapping/northbound/Activator.java
mappingservice/northbound/src/main/java/org/opendaylight/lispflowmapping/northbound/AuthKeyNB.java
mappingservice/northbound/src/main/java/org/opendaylight/lispflowmapping/northbound/ILispmappingNorthbound.java
mappingservice/northbound/src/main/java/org/opendaylight/lispflowmapping/northbound/LispAddressConvertorNB.java
mappingservice/northbound/src/main/java/org/opendaylight/lispflowmapping/northbound/LispMappingNorthbound.java
mappingservice/northbound/src/main/java/org/opendaylight/lispflowmapping/northbound/MapRegisterNB.java
mappingservice/northbound/src/main/java/org/opendaylight/lispflowmapping/northbound/NorthboundRSApplication.java
mappingservice/northbound/src/main/java/org/opendaylight/lispflowmapping/northbound/YangTransformerNB.java
mappingservice/northbound/src/test/java/org/opendaylight/lispflowmapping/northbound/TransformerTest.java
mappingservice/southbound/pom.xml
mappingservice/southbound/src/main/java/org/opendaylight/lispflowmapping/southbound/LispSouthboundPlugin.java
mappingservice/southbound/src/main/java/org/opendaylight/lispflowmapping/southbound/lisp/ILispSouthboundService.java
mappingservice/southbound/src/main/java/org/opendaylight/lispflowmapping/southbound/lisp/LispSouthboundService.java
mappingservice/southbound/src/main/java/org/opendaylight/lispflowmapping/southbound/lisp/exception/LispMalformedPacketException.java
mappingservice/southbound/src/main/java/org/opendaylight/lispflowmapping/southbound/lisp/network/PacketHeader.java
mappingservice/southbound/src/test/java/org/opendaylight/lispflowmapping/southbound/lisp/LispSouthboundServiceTest.java
pom.xml [new file with mode: 0644]

index 41ee7cb0cadd51cbdb2ada47a9b5714d140f1b32..79474941deff3d72e21febaf2ca9f89a39917698 100644 (file)
@@ -25,7 +25,7 @@
                <build.suffix>1.0.0</build.suffix>
                <yangtools.binding.version>0.6.0-SNAPSHOT</yangtools.binding.version>
                <yang.binding.version>0.6.0-SNAPSHOT</yang.binding.version>
-               <yang.version>0.5.9-SNAPSHOT</yang.version>
+               <yang.version>0.6.0-SNAPSHOT</yang.version>
                <yang.codegen.version>0.6.0-SNAPSHOT</yang.codegen.version>
                <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
                <sonar.branch>${user.name}-private-view</sonar.branch>
                <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
                <java.version.source>1.7</java.version.source>
                <java.version.target>1.7</java.version.target>
+               <releaseplugin.version>2.3.2</releaseplugin.version>
        </properties>
-
+       
        <repositories>
-               <!-- EBR release -->
-               <!-- http://repository.springsource.com/maven/bundles/release -->
-               <repository>
-                       <id>ebr-bundles-release</id>
-                       <name>ebr-bundles-release</name>
-                       <url>${nexusproxy}/repositories/ebr-bundles-release/</url>
-               </repository>
-               <!-- EBR external -->
-               <!-- http://repository.springsource.com/maven/bundles/external -->
-               <repository>
-                       <id>ebr-bundles-external</id>
-                       <name>ebr-bundles-external</name>
-                       <url>${nexusproxy}/repositories/ebr-bundles-external/</url>
-               </repository>
-               <!-- Maven repo2 mirror -->
-               <!-- http://repo2.maven.org/maven2 -->
-               <repository>
-                       <id>central2</id>
-                       <name>central2</name>
-                       <url>${nexusproxy}/repositories/central2/</url>
-               </repository>
-               <!-- Maven repo1 mirror -->
-               <!-- http://repo1.maven.org/maven2 -->
-               <repository>
-                       <id>central</id>
-                       <name>central</name>
-                       <url>${nexusproxy}/repositories/central/</url>
-               </repository>
-               <!-- Pax mirror -->
-               <!-- https://oss.sonatype.org/content/repositories/ops4j-releases -->
-               <repository>
-                       <id>ops4j-releases</id>
-                       <name>ops4j-releases</name>
-                       <url>${nexusproxy}/repositories/ops4j-releases/</url>
-               </repository>
-               <!-- Third Packages hosted in local maven because not available in other 
-                       places -->
-               <repository>
-                       <id>thirdparty</id>
-                       <name>thirdparty</name>
-                       <url>${nexusproxy}/repositories/thirdparty/</url>
-               </repository>
-               <!-- Jboss mirror -->
-               <!-- https://repository.jboss.org/nexus/content/repositories/releases -->
-               <repository>
-                       <id>jboss.releases</id>
-                       <name>jboss.releases</name>
-                       <url>${nexusproxy}/repositories/jboss.releases/</url>
-               </repository>
-               <!-- OpenDayLight Released artifact -->
-               <repository>
-                       <id>opendaylight-release</id>
-                       <name>opendaylight-release</name>
-                       <url>${nexusproxy}/repositories/opendaylight.release/</url>
-               </repository>
-               <!-- OpenDayLight Snapshot artifact -->
-               <repository>
-                       <id>opendaylight-snapshot</id>
-                       <name>opendaylight-snapshot</name>
-                       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
-               </repository>
-               <!-- Needed for the org.restlet.* dependencies. -->
-               <repository>
+
+    <!-- OpenDayLight Repo Mirror -->
+    <repository>
+      <id>opendaylight-mirror</id>
+      <name>opendaylight-mirror</name>
+      <url>${nexusproxy}/groups/public/</url>
+      <snapshots>
+          <enabled>false</enabled>
+      </snapshots>
+      <releases>
+          <enabled>true</enabled>
+          <updatePolicy>never</updatePolicy>
+      </releases>
+    </repository>
+    <!-- OpenDayLight Snapshot artifact -->
+    <repository>
+      <id>opendaylight-snapshot</id>
+      <name>opendaylight-snapshot</name>
+      <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
+      <snapshots>
+          <enabled>true</enabled>
+      </snapshots>
+      <releases>
+          <enabled>false</enabled>
+      </releases>
+    </repository>
+    
+    <repository>
                        <id>maven-restlet</id>
                        <name>Public online Restlet repository</name>
                        <url>http://maven.restlet.org</url>
                                <updatePolicy>never</updatePolicy>
                        </snapshots>
                </repository>
-       </repositories>
-       <pluginRepositories>
-               <pluginRepository>
-                       <id>opendaylight-release</id>
-                       <name>opendaylight-release</name>
-                       <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release/</url>
-               </pluginRepository>
-               <pluginRepository>
-                       <id>opendaylight-snapshot</id>
-                       <name>opendaylight-snapshot</name>
-                       <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
-               </pluginRepository>
-       </pluginRepositories>
+  </repositories>
+  
+    <pluginRepositories>
+    <!-- OpenDayLight Repo Mirror -->
+    <pluginRepository>
+      <id>opendaylight-mirror</id>
+      <name>opendaylight-mirror</name>
+      <url>${nexusproxy}/groups/public/</url>
+      <snapshots>
+          <enabled>false</enabled>
+      </snapshots>
+      <releases>
+          <enabled>true</enabled>
+          <updatePolicy>never</updatePolicy>
+      </releases>
+    </pluginRepository>
+    <!-- OpenDayLight Snapshot artifact -->
+    <pluginRepository>
+      <id>opendaylight-snapshot</id>
+      <name>opendaylight-snapshot</name>
+      <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
+      <snapshots>
+          <enabled>true</enabled>
+      </snapshots>
+      <releases>
+          <enabled>false</enabled>
+      </releases>
+    </pluginRepository>
+  </pluginRepositories>
+
        <distributionManagement>
                <!-- OpenDayLight Released artifact -->
                <repository>
                        <dependency>
                                <groupId>org.opendaylight.controller</groupId>
                                <artifactId>clustering.services</artifactId>
-                               <version>0.4.1-SNAPSHOT</version>
+                               <version>0.5.0-SNAPSHOT</version>
                        </dependency>
 
                        <dependency>
                        <dependency>
                                <groupId>org.opendaylight.yangtools.model</groupId>
                                <artifactId>ietf-inet-types</artifactId>
-                               <version>2010.09.24-SNAPSHOT</version>
+                               <version>2010.09.24.2-SNAPSHOT</version>
                        </dependency>
                        <dependency>
                                <groupId>org.opendaylight.yangtools.model</groupId>
                                <artifactId>ietf-yang-types</artifactId>
-                               <version>2010.09.24-SNAPSHOT</version>
+                               <version>2010.09.24.2-SNAPSHOT</version>
                        </dependency>
                        <dependency>
                                <groupId>com.google.guava</groupId>
                        <dependency>
                                <groupId>org.opendaylight.controller</groupId>
                                <artifactId>sal</artifactId>
-                               <version>0.5.1-SNAPSHOT</version>
+                               <version>0.7.0-SNAPSHOT</version>
                        </dependency>
                        <dependency>
                                <groupId>junit</groupId>
        <build>
                <pluginManagement>
                        <plugins>
+                       <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-release-plugin</artifactId>
+          <version>${releaseplugin.version}</version>
+        </plugin>
                                <plugin>
                                        <groupId>org.jacoco</groupId>
                                        <artifactId>jacoco-maven-plugin</artifactId>
index 7b47e473e8cee25b0947fb2b0d1d8e9c75656a10..fad6751581841b711a563bbd004530df84bec2b2 100644 (file)
                        <groupId>junit-addons</groupId>
                        <artifactId>junit-addons</artifactId>
                </dependency>
+               <dependency>
+<groupId>org.slf4j</groupId>
+<artifactId>slf4j-api</artifactId>
+<version>1.6.1</version>
+</dependency>
+               
        </dependencies>
 </project>
index 82a25b1dc157c06aaf67259fde165b07ebbf7394..a70f003e05fdc31e0d87522b7648882c2b916909 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -33,11 +33,14 @@ import org.jmock.syntax.ReceiverClause;
 import org.junit.After;
 import org.junit.Assert;
 import org.junit.Before;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 public class BaseExpectations extends Expectations {
     protected Mockery context;
     protected boolean showAllExpectations;
     private final Synchroniser synchroniser = new Synchroniser();
+    protected static final Logger logger = LoggerFactory.getLogger(BaseExpectations.class);
 
     @Before
     public void before() throws Exception {
@@ -233,7 +236,7 @@ public class BaseExpectations extends Expectations {
             values.add(lastValue);
             boolean match = match(lastValue);
             if (match && (logMatch != null)) {
-                System.out.println("Match: " + logMatch + " " + value);
+                logger.trace("Match: " + logMatch + " " + value);
             }
             return match;
         }
@@ -259,7 +262,7 @@ public class BaseExpectations extends Expectations {
 
         public Object invoke(Invocation invocation) throws Throwable {
             if (logInvocation) {
-                System.out.println("Invoke: returning " + lastValue);
+                logger.trace("Invoke: returning " + lastValue);
             }
             return lastValue;
         }
index c8f8a63ce3ed596303ba6f41d86e8ba954c4297d..f81d746fd3f8c6a1bfc14de496ffacdce981fe57 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 8d6939b8258bd0f65c67ff9c4336cc9d2031f0d3..4ebd9fb650a7e27894c5be14aa4a762650e74891 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index deea48573c11c5ed66fb774150a9c2d6c045b45d..9173fdeb776e8bd07426790f33cc00fa810666fc 100644 (file)
                <url>https://wiki.opendaylight.org/view/OpenDaylight_Lisp_Flow_Mapping:Main</url>
                <tag>HEAD</tag>
        </scm>
-       <properties>
-               <!-- Sonar properties using jacoco to retrieve integration test results -->
-               <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
-               <sonar.jacoco.Reportpath>target/jacoco.exec</sonar.jacoco.Reportpath>
-               <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
-       </properties>
        <build>
                <plugins>
                        <plugin>
                                        </instructions>
                                </configuration>
                        </plugin>
-                       <plugin>
-                               <groupId>org.jacoco</groupId>
-                               <artifactId>jacoco-maven-plugin</artifactId>
-                               <version>${jacoco.version}</version>
-                               <configuration>
-                                       <includes>org.opendaylight.controller.*</includes>
-                               </configuration>
-                               <executions>
-                                       <execution>
-                                               <id>pre-test</id>
-                                               <goals>
-                                                       <goal>prepare-agent</goal>
-                                               </goals>
-                                       </execution>
-                                       <execution>
-                                               <id>post-test</id>
-                                               <phase>test</phase>
-                                               <goals>
-                                                       <goal>report</goal>
-                                               </goals>
-                                       </execution>
-                               </executions>
-                       </plugin>
                </plugins>
        </build>
        <dependencies>
index ef0d9fe9418f1d23b62e7797191121b425989d05..64e1093130a68317965077c48bf119ba0b3a3d32 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index da748b88d7a61fbee4ed7a5d76e1c5a97f2dd6de..f1cd7d2da2f24b512aca58613367c7bd880dd082 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 18510463655fc7c5c23dfba58de5c947502818de..054d9252ea081dc54525be714783058ccf248d7d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index d201a75269dda4324521d01eff15230f746c6f02..0a31c3236ac32d7a3d422bb9f95a4350d2c13217 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index bf62f56d4854b0644539f5b18b5d26e3113ce6ea..2b3c3479d76adeaf52a8d7f0676e0afd0cb4602b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 7afa758319f08537bd24be8b1a68644ab682c0cf..c7aee06d119e2bafe0024373bb2b33169fb1bcb4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 8581fd43576bdf77b932a325d7d6fabf3c63215c..12c01d696228e5f1e8a2aaffa2a49bdccd2c1448 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -40,40 +40,45 @@ public class MappingServiceRLOC {
         return record;
     }
 
-    public void setRecord(LocatorRecord record) {
+    public MappingServiceRLOC setRecord(LocatorRecord record) {
         this.record = record;
+        return this;
     }
 
     public int getTtl() {
         return ttl;
     }
 
-    public void setTtl(int ttl) {
+    public MappingServiceRLOC setTtl(int ttl) {
         this.ttl = ttl;
+        return this;
     }
 
     public Action getAction() {
         return action;
     }
 
-    public void setAction(Action action) {
+    public MappingServiceRLOC setAction(Action action) {
         this.action = action;
+        return this;
     }
 
     public boolean isAuthoritative() {
         return authoritative;
     }
 
-    public void setAuthoritative(boolean authoritative) {
+    public MappingServiceRLOC setAuthoritative(boolean authoritative) {
         this.authoritative = authoritative;
+        return this;
     }
 
     public Date getRegisterdDate() {
         return registerdDate;
     }
 
-    public void setRegisterdDate(Date registerdDate) {
+    public MappingServiceRLOC setRegisterdDate(Date registerdDate) {
         this.registerdDate = registerdDate;
+        return this;
     }
 
     @Override
index d92369ace0da6dd26ec78ee176a175b7cc61ed6f..cb1ac0a33ac1195ea5ceb0c8304e407296952924 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 3d7dcb8802b79399ca3f5a8a63b4c43ce05201fd..cad6eb748adcc54d8db2b89d4410f5f5e1a1efac 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index bcb39703f6d7e3285717f2f306ae7108535ba76d..65c154aa5055f147b1787f1b02ef8991819a373c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index d55aeb73c7a928322ca457beae574dd6612340a6..09f4e6f8aef9faa3539d6fd89236593f2e289674 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 24613c3489eeca2d5180d8bfef18984d2dfb38ad..29a7941ae0916eb4bbf1fa2cde9543e5c5f870fb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 79eefe3b090db5d80b37046f433fb539a0e8ee50..cb46383e42043972edd82fdc7b13719e2cb6b13e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 5c8b7f8d28e4aadb3ffd771eb6d4c33ecd5b5c7a..5ccb288ab27594cbfb0131e66fba7f8a8e2170b2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index d373e669746b7c5a06b548817cc84b2069df8782..1d93456cf29765691d8d1c66f785e43b6f61849a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 6fff6dfdae107f8d89abfd10de9396306aeda6c9..97fbd1d1b6be38665d06a0da164d0d1f7d2d9198 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 3c9abb18fc79c2d71ae931687c220b2ad4805f1a..d8c1661b0c2f20510ce64e2b212278a584e7b37f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index b0ab457b742475ed140cb8ba07acf4ea779eb143..86501194c8967eb8002f645772500c2ca9b6e24d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 275c5514f4b19a87b9f69b770b470a6ed4a446d2..67da57985f66a09144cd3e6bc8605f95a508fec3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 8dd0da9a4a033dbdf0fab12a0f5755ad60470662..831b20ec989854492ab05e8c8b382cda66559837 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 995129ca4be23430543f3b2fb183117ea669857e..b03625178d3ccbee77623e6f1db5906a2c4a4c5a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 4b9134de3bf2352e802eff8b137e7cab5eaa07fe..05296a8bef62b46208657b8352e3b60348e8ac5c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 972cd9efdb5639ebe0375c8ff956588a01bf54cd..4bab00183c06c93293815cb6ca3158ecd2e373e9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 01a02d0062998750cec44c6889a89336260cbf39..b72fd06913a44c217c509f40bf1b73e206350edd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index c2c0fd49e858e4bf1d4271af0ebe69069e6ff7fa..f89814d100f1a8928e8f4c1a1f91f3cff42c841f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 103b2764ba002ae713a51cc541543ddf1fc2d2bc..a327367e76079687c50683a47d528d879a396706 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 18e7dab4fe28ae2813a7029b8a95c3c869de80c9..cf8e9b709361b0321db0d880f6ef95adb95eb30e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index f75bf8145e386c67fc9d8c3b81b125d56ca80b2e..b9365df2a80ec0eaf00707bebe06c715d58c18cb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index fe921de3a97b3ec6ffdbd62b24252c72869ce3ae..efa259bace044be518523d442c883aa189045efd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index a55af719e611f4dd981f2e39aa02618adb3f01cc..f3fe561329265be1b7629de88300fef77c814f54 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 6bdde7484625fdd01f70ed4f92be56413b34ff5f..a027f4fe7ebd07eb789797a78f502a93781fa3cf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 984b080fdc3c1fa7af06e649e54e6a05cafb26c0..6067bc705cbef59c96a46245fff6ccd689e1923b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * 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,
index 6842114ff08d64c7d1c44d0bf6cb1fe584cde841..06376e80b4393748a0a29661a130ad2430f03fd8 100644 (file)
@@ -68,7 +68,6 @@ public abstract class LispIPAddress extends LispAddress implements IMaskable {
         try {
             this.address = InetAddress.getByAddress(byteRepresentation.array());
         } catch (UnknownHostException e) {
-            e.printStackTrace();
         }
 
     }
index 3eaf277d7a83bb96bc8c66c5dde891e9a07667b2..34cd0e7da1f20ceb7abf45d417cdb3c1b2902599 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index babc5df12175fb54f03c458102e86f9d69618678..37a58488df3cb7d0a1f6c0c36c3ff18e7eee3a02 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 9a5b137c8f8c3b968ae572c8d1b87ba48ec0eddd..1607f027a222c65a312d671b344533ac2cb9f24d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 027cba77fbf5a607760e28e40c1e5b657f1dd012..a347f3ded73d9d293859425dee47bcda88695581 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index cece5214f5cf63690b75985c29de51e3f180d9f8..a8981c27fe9d205777f769dc23345a943d869106 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 03a21bc051fe5705af7272f8a5a128bdb7319150..d8c910958ea1a530c73ea2f1c21d7319f18a9bbd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index a11f34cdd831babfbf8f7daf5d2c48c06f2336bf..b3ea165ed7ecdccb60d9acb6238538c6e7d569db 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 4159d87d1df2231ce3ca9a123415f160ba523fca..ea2bf372dd869ece9070936344e013fbca045a09 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 8f3a5208c668ae6eb8a209c49c0bcb75118f8377..be8b799d884fc55e6c295c6f0b02dc916d285e23 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 08283fe23ffcb3cac776c40438581d735b941dec..7342eb1706031a587c09c08677f016b76abc447c 100644 (file)
                                                                                        </namespaceToPackage1>
                                                                                </additionalConfiguration>
                                                                        </generator>
+                                                                       <generator>
+                                                                               <codeGeneratorClass>
+                                                                                       org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
+                                                                               </codeGeneratorClass>
+                                                                               <outputBaseDir>
+                                                                                       target/generated-sources/sal
+                                                                               </outputBaseDir>
+                                                                       </generator>
                                                                </codeGenerators>
                                                                <inspectDependencies>true</inspectDependencies>
                                                        </configuration>
                                                        <artifactId>yang-jmx-generator-plugin</artifactId>
                                                        <version>0.2.3-SNAPSHOT</version>
                                                </dependency>
+                                               <dependency>
+                                                       <groupId>org.opendaylight.yangtools</groupId>
+                                                       <artifactId>maven-sal-api-gen-plugin</artifactId>
+                                                       <version>${yang.version}</version>
+                                                       <type>jar</type>
+                                               </dependency>
                                        </dependencies>
                                </plugin>
                        </plugins>
index ec6266bfcee6b01009edc709ea2dc43a189b7db6..47a58700766d8172f9faea8140b26c4eea6b2c6d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index f6c14b977741b3b96850668d63aa8c2b37d5dd3a..a480a9d78327c14bec04605c4309e3e82a806a19 100644 (file)
@@ -9,7 +9,7 @@
 */
 
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 73ad4e97cb62126a7f415ea6f1ae2303ebfe8ee6..427c90d1d25389208d7c13f8128964bddf318ef9 100644 (file)
                <url>https://wiki.opendaylight.org/view/OpenDaylight_Lisp_Flow_Mapping:Main</url>
                <tag>HEAD</tag>
        </scm>
-       <properties>
-               <!-- Sonar properties using jacoco to retrieve integration test results -->
-               <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
-               <sonar.jacoco.Reportpath>target/jacoco.exec</sonar.jacoco.Reportpath>
-               <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
-       </properties>
        <build>
                <plugins>
                        <plugin>
                                        </instructions>
                                </configuration>
                        </plugin>
-                       <plugin>
-                               <groupId>org.jacoco</groupId>
-                               <artifactId>jacoco-maven-plugin</artifactId>
-                               <version>${jacoco.version}</version>
-                               <configuration>
-                                       <includes>org.opendaylight.controller.*</includes>
-                               </configuration>
-                               <executions>
-                                       <execution>
-                                               <id>pre-test</id>
-                                               <goals>
-                                                       <goal>prepare-agent</goal>
-                                               </goals>
-                                       </execution>
-                                       <execution>
-                                               <id>post-test</id>
-                                               <phase>test</phase>
-                                               <goals>
-                                                       <goal>report</goal>
-                                               </goals>
-                                       </execution>
-                               </executions>
-                       </plugin>
                </plugins>
        </build>
        <dependencies>
index 672c27e21dac9d4be9e8f9b8e24e569c159a1c2e..d89b49ea607a23a3aeed662994694b9ec09d39f0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -18,8 +18,6 @@ import org.opendaylight.controller.sal.core.ComponentActivatorAbstractBase;
 import org.opendaylight.lispflowmapping.implementation.dao.ClusterDAOService;
 import org.opendaylight.lispflowmapping.interfaces.dao.ILispDAO;
 import org.opendaylight.lispflowmapping.interfaces.lisp.IFlowMapping;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  * Main application activator class for registering the dependencies and
@@ -29,11 +27,6 @@ import org.slf4j.LoggerFactory;
 
 public class Activator extends ComponentActivatorAbstractBase {
 
-    /*
-     * Logger instance
-     */
-    protected static final Logger logger = LoggerFactory.getLogger(Activator.class);
-
     /**
      * Function called when the activator starts just after some initializations
      * are done by the ComponentActivatorAbstractBase.
index 5befc148690cdf7d0e6e92c126939f47f4c14211..99d2f17d8d4a1d2f798a52ec85b664b8b1e79cf0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -92,7 +92,7 @@ public class LispMappingService implements CommandProvider, IFlowMapping, Bindin
     }
 
     void setBindingAwareBroker(BindingAwareBroker bindingAwareBroker) {
-        logger.debug("BindingAwareBroker set!");
+        logger.trace("BindingAwareBroker set!");
         BundleContext bundleContext = FrameworkUtil.getBundle(this.getClass()).getBundleContext();
         bindingAwareBroker.registerConsumer(this, bundleContext);
     }
@@ -108,20 +108,20 @@ public class LispMappingService implements CommandProvider, IFlowMapping, Bindin
     }
 
     void setLispDao(ILispDAO dao) {
-        logger.debug("LispDAO set in LispMappingService");
+        logger.trace("LispDAO set in LispMappingService");
         basicInit(dao);
-        logger.debug("Registering LispIpv4Address");
+        logger.trace("Registering LispIpv4Address");
         lispDao.register(LispIpv4AddressInMemoryConverter.class);
-        logger.debug("Registering LispIpv6Address");
+        logger.trace("Registering LispIpv6Address");
         lispDao.register(LispIpv6AddressInMemoryConverter.class);
-        logger.debug("Registering MappingServiceKey");
+        logger.trace("Registering MappingServiceKey");
         lispDao.register(MappingServiceKeyConvertor.class);
-        logger.debug("Registering MappingServiceNoMaskKey");
+        logger.trace("Registering MappingServiceNoMaskKey");
         lispDao.register(MappingServiceNoMaskKeyConvertor.class);
     }
 
     void unsetLispDao(ILispDAO dao) {
-        logger.debug("LispDAO was unset in LispMappingService");
+        logger.trace("LispDAO was unset in LispMappingService");
         mapServer = null;
         mapResolver = null;
         lispDao = null;
@@ -132,7 +132,7 @@ public class LispMappingService implements CommandProvider, IFlowMapping, Bindin
             registerWithOSGIConsole();
             logger.info("LISP (RFC6830) Mapping Service init finished");
         } catch (Throwable t) {
-            t.printStackTrace();
+            logger.error(t.getStackTrace().toString());
         }
     }
 
@@ -142,7 +142,7 @@ public class LispMappingService implements CommandProvider, IFlowMapping, Bindin
     }
 
     public void destroy() {
-        logger.debug("LISP (RFC6830) Mapping Service is destroyed!");
+        logger.info("LISP (RFC6830) Mapping Service is destroyed!");
         mapResolver = null;
         mapServer = null;
     }
@@ -244,7 +244,7 @@ public class LispMappingService implements CommandProvider, IFlowMapping, Bindin
     }
 
     public void onSessionInitialized(ConsumerContext session) {
-        logger.debug("Lisp Consumer session initialized!");
+        logger.info("Lisp Consumer session initialized!");
         NotificationService notificationService = session.getSALService(NotificationService.class);
         // notificationService.registerNotificationListener(LispNotification.class,
         // this);
index f3d00370b7bc438b2344cee535e0693d2a42c45d..131472474a9cd1fcdae08ebc413f072ced7691d0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 4663fccaa25b90e28b51f3a8e2b26f5ee401b9d5..9536c2c4da94538f6d3a8df03258f22c03c63c6a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 7a8dda58b300e4313b361d13e0c42ec468f855b3..e0d55fcf209a4acf7d6b9df03a3fff18564eef3d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 54958da4c7e6ba3df990cc8005fc784f219193cd..6590cbd4eb8d927a1fc15bf971cda0b84c7ed80c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index cdc610133264713ef1a1336fe0ef2e7e57daee1f..1b929ae46e6541c6440250257dc0a8655eb655c0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -36,7 +36,7 @@ public class LispMACAuthentication implements ILispAuthentication {
             authenticationLength = Mac.getInstance(algorithm).getMacLength();
             tempAuthenticationData = new byte[authenticationLength];
         } catch (NoSuchAlgorithmException e) {
-            logger.error("No such MAC algorithm" + algorithm);
+            logger.warn("No such MAC algorithm" + algorithm);
         }
     }
 
@@ -64,9 +64,9 @@ public class LispMACAuthentication implements ILispAuthentication {
 
             return mac.doFinal(data);
         } catch (InvalidKeyException e) {
-            logger.error("Invalid password" + key);
+            logger.warn("Invalid password" + key);
         } catch (NoSuchAlgorithmException e) {
-            logger.error("No such MAC algorithm" + algorithm);
+            logger.warn("No such MAC algorithm" + algorithm);
         }
         return null;
     }
index c44e0d3f7690f081d17e5f067a5aed7e7c45f2ae..e6449ef2f798b02d359ec28801445ea1fd3c30b1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index aa4b07617e2d35543f22c308c59eff926bdc4a33..dff8ddef35efccadd86188a81a0cbfad69273189 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -58,7 +58,7 @@ public class ClusterDAOService implements ILispDAO, IQueryAll {
     }
 
     void unsetClusterContainerService(IClusterContainerServices s) {
-        logger.debug("Cluster Service unset");
+        logger.trace("Cluster Service unset");
         if (this.clusterContainerService == s) {
             this.clusterContainerService = null;
         }
@@ -68,32 +68,32 @@ public class ClusterDAOService implements ILispDAO, IQueryAll {
     @SuppressWarnings("deprecation")
     private void allocateCache() {
         if (this.clusterContainerService == null) {
-            logger.error("un-initialized clusterContainerService, can't create cache");
+            logger.warn("un-initialized clusterContainerService, can't create cache");
             return;
         }
-        logger.debug("Creating Cache for ClusterDAOService");
+        logger.trace("Creating Cache for ClusterDAOService");
         try {
             this.clusterContainerService.createCache(CACHE_NAME, EnumSet.of(IClusterServices.cacheMode.NON_TRANSACTIONAL));
         } catch (CacheConfigException cce) {
-            logger.error("Cache couldn't be created for ClusterDAOService -  check cache mode");
+            logger.warn("Cache couldn't be created for ClusterDAOService -  check cache mode");
         } catch (CacheExistException cce) {
-            logger.error("Cache for ClusterDAOService already exists, destroy and recreate");
+            logger.warn("Cache for ClusterDAOService already exists, destroy and recreate");
         }
-        logger.debug("Cache successfully created for ClusterDAOService");
+        logger.trace("Cache successfully created for ClusterDAOService");
     }
 
     @SuppressWarnings({ "unchecked", "deprecation" })
     private void retrieveCache() {
         if (this.clusterContainerService == null) {
-            logger.error("un-initialized clusterContainerService, can't retrieve cache");
+            logger.warn("un-initialized clusterContainerService, can't retrieve cache");
             return;
         }
-        logger.debug("Retrieving cache for ClusterDAOService");
+        logger.trace("Retrieving cache for ClusterDAOService");
         typeToKeysToValues = (ConcurrentMap<Class<?>, Map<Object, Map<String, Object>>>) this.clusterContainerService.getCache(CACHE_NAME);
         if (typeToKeysToValues == null) {
-            logger.error("Cache couldn't be retrieved for ClusterDAOService");
+            logger.warn("Cache couldn't be retrieved for ClusterDAOService");
         }
-        logger.debug("Cache was successfully retrieved for ClusterDAOService");
+        logger.trace("Cache was successfully retrieved for ClusterDAOService");
     }
 
     public void getAll(IRowVisitor visitor) {
index d96369a61856e6fd465ec7fcebddeee71d2eadb9..93e20dfbd759b96b827433db9cfe6d6c1d206aaa 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 5414da26d5dfe077947a1d31e548d1b5e6ada684..bd6bcde2ba4c735e4bc22a984806cedfde376521 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 955ca6d7320e5359b3a14ba6bb22484a6f40fa5f..4f5b047fa527f9fe8e84d6f0bbd5d6cac5b25527 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -11,13 +11,9 @@ import org.opendaylight.lispflowmapping.implementation.util.MaskUtil;
 import org.opendaylight.lispflowmapping.interfaces.dao.IMappingServiceKey;
 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.lispaddress.LispAddressContainer;
 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.lispaddress.LispAddressContainerBuilder;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 public class MappingServiceKeyUtil {
 
-    protected static final Logger logger = LoggerFactory.getLogger(MappingServiceKeyUtil.class);
-
     public static IMappingServiceKey generateMappingServiceKey(LispAddressContainer lispAddressContainer, int mask) {
         if (MaskUtil.isMaskable(lispAddressContainer.getAddress())) {
             LispAddressContainerBuilder normalizedBuilder = new LispAddressContainerBuilder();
index eb586fc9a55d6299293599589c42108753480418..50c0592d27261ea87adcf46e3f85393f99ea3a70 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 3f298707b859e8830d1c5075658e299d7828ad2a..3f12d4c97da767ed024b4a866aa5d759297e4c09 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 390751fe70b52dbacb841f7684b48dd45d7e529d..4a42136381e3725e9816af71c8c2202500238e83 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -9,7 +9,8 @@
 package org.opendaylight.lispflowmapping.implementation.lisp;
 
 import java.util.ArrayList;
-import java.util.List;
+import java.util.Date;
+import java.util.HashMap;
 import java.util.Map;
 
 import org.apache.commons.lang3.BooleanUtils;
@@ -62,22 +63,45 @@ public class MapServer implements IMapServerAsync {
                 if (shouldAuthenticate) {
                     password = getPassword(eidRecord.getLispAddressContainer(), eidRecord.getMaskLength());
                     if (!LispAuthenticationUtil.validate(mapRegister, password)) {
-                        logger.debug("Authentication failed");
+                        logger.warn("Authentication failed");
                         failed = true;
                         break;
                     }
                 }
-                MappingServiceValue value = new MappingServiceValue();
+                IMappingServiceKey key = MappingServiceKeyUtil.generateMappingServiceKey(eidRecord.getLispAddressContainer(),
+                        eidRecord.getMaskLength());
+                MappingServiceValue value = null;
+                Map<String, ?> locators = dao.get(key);
+                if (locators != null) {
+                    value = (MappingServiceValue) locators.get("value");
+                }
+                if (value == null) {
+                    value = new MappingServiceValue();
+                    value.setRlocs(new ArrayList<MappingServiceRLOC>());
+                }
+                if (value.getRlocs() == null) {
+                    value.setRlocs(new ArrayList<MappingServiceRLOC>());
+                }
+
                 MappingEntry<MappingServiceValue> entry = new MappingEntry<MappingServiceValue>("value", value);
-                List<MappingServiceRLOC> rlocs = new ArrayList<MappingServiceRLOC>();
                 if (eidRecord.getLocatorRecord() != null) {
+                    Map<LocatorRecord, MappingServiceRLOC> currentRLOCs = new HashMap<LocatorRecord, MappingServiceRLOC>();
+                    for (MappingServiceRLOC msr : value.getRlocs()) {
+                        currentRLOCs.put(msr.getRecord(), msr);
+                    }
+
                     for (LocatorRecord locatorRecord : eidRecord.getLocatorRecord()) {
-                        rlocs.add(new MappingServiceRLOC(locatorRecord, eidRecord.getRecordTtl(), eidRecord.getAction(), eidRecord.isAuthoritative()));
+                        if (currentRLOCs.containsKey(locatorRecord)) {
+                            currentRLOCs.get(locatorRecord).setAction(eidRecord.getAction()).setAuthoritative(eidRecord.isAuthoritative())
+                                    .setRegisterdDate(new Date(System.currentTimeMillis())).setTtl(eidRecord.getRecordTtl());
+                        } else {
+
+                            value.getRlocs().add(
+                                    new MappingServiceRLOC(locatorRecord, eidRecord.getRecordTtl(), eidRecord.getAction(), eidRecord
+                                            .isAuthoritative()));
+                        }
                     }
                 }
-                value.setRlocs(rlocs);
-                IMappingServiceKey key = MappingServiceKeyUtil.generateMappingServiceKey(eidRecord.getLispAddressContainer(),
-                        eidRecord.getMaskLength());
                 dao.put(key, entry);
 
             }
index bae12b128e65ab017ad9ef98347480f66796b028..67709089efb2d05385b54971cb7a89e23da4a189 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index a973664abdcf4531c33bb7f3c06ee1c093ab69d7..80719a9ea4c17eba614a226af829cde289028303 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index f88ce60846855d51510f9677d12c4765d64f6177..2d7206afdb7874e84196f10dbcd3592e7debb289 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 068cf2ece73594ed2368ce280aa9497208e08662..7fb55ca3a7d5669cb20c6c92c3ca3ad7f2dd448a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 8b079cb89fd10003c6adc0c9c77d9cdd5772981b..fc72282876f3a0820045af3e7299c1569790cb7c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 83d9eb63f273cd5300362dee54acfef383c645b1..51bb1e779f070e84e9161270841a12f5146a69ca 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 59b43b310ea6c2fdb58d039f7de9c12634d05d7b..e49b84043185a32f8906ca9245de994bf496cdc5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index cbfa51f2cbcb78539696ec86df8772de7bc809f1..9ebf67a558f6e2610ceded745e7cd9236bbebc6f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 58115f7bdbac35d6c51d53f90b646a234f69fc4b..35a693775562536e6ea9c6e28c23f89c90e823de 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 048d0af0e85541374293966d554f73a7c83a0125..9ecfb335026e577d47c79810649114098279f820 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 612db473947221b9cd4e5716f9f9a2fb043b12fe..fa938866c322ceb387ce264c55b5c770c471650c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 2fccb9e5259df4b19602a75b7535ced537eacea2..1e6aa4f71caa1808702876d86b3ed288d85a26b4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -58,8 +58,8 @@ public class LispApplicationDataLCAFAddressSerializer extends LispLCAFAddressSer
         buffer.get(rawIPTos);
         builder.setIpTos(ByteUtil.getPartialInt(rawIPTos));
         builder.setProtocol((short) ByteUtil.getUnsignedByte(buffer));
-        builder.setLocalPort(new PortNumber(new Integer(buffer.getShort())));
-        builder.setRemotePort(new PortNumber(new Integer(buffer.getShort())));
+        builder.setLocalPort(new PortNumber(ByteUtil.asUnsignedShort(buffer.getShort())));
+        builder.setRemotePort(new PortNumber(ByteUtil.asUnsignedShort(buffer.getShort())));
         LispAFIAddress address = LispAddressSerializer.getInstance().deserialize(buffer);
         builder.setAfi(AddressFamilyNumberEnum.LCAF.getIanaCode()).setLcafType((short) LispCanonicalAddressFormatEnum.APPLICATION_DATA.getLispCode())
                 .setAddress(new AddressBuilder().setPrimitiveAddress((PrimitiveAddress) LispAFIConvertor.toPrimitive(address)).build());
index 1ebb683db5254dbc18653d70279b40c2a2a24b87..07b24bd2929fef5175144d31eee367c3b3a4e343 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index a02afd563f3c2424556cc0976fc27edf4a366263..795116bff4039c3df93828493fea3bde79c4b541 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index c4f2dcb524dcc903d55bcfa61da2d3a46e1ba5d9..6757575055769a7a8b34fc39a5ad22d02734c30a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index ea80fa118815d91cf3cf67e24c6918e6a0bf95ed..838658b73d9233e9c25d73d4a0ae77383da421dd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 7f6e8ab01b72d4b66d90b44555465af50c5a8600..afddeae174b2a08a121a6348ff864694cec5382b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index e9ca4517670aea04bf163689cc09005b0cafdf76..3ff635f46019803420f2c8557de9c9e45ff4b790 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 030d8e44f30f4123aae8271926a18f6a95da207d..e031f1d274ea4e9e0161d6ab0250b625f46ae57c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index da94a0e3ecc515e4ab9743a67f629097c5550b72..4ddec8c5b3dc95531866a8aa4f7ebb4681f9d032 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index a6ebda8e36043051d6161b4decd1c0a86c10af40..e62906e76ee8bd942f4a1a17023e78d6207c2635 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index f63e6d23475e5d097f8e2940468efacafbab7cdf..f7ef2d8054a916731135b0b7006b4a7f9043c6b4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index fb58a0083613333473f38b436a732dcde7242953..3f114107071b9882706259697f77cc26792bc548 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index b3e56cfe28459653f7e6908f730906b2184b54e0..f613f2f7fe0d8614dd1961fc9d2d73289cc604a1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 4d2cf50c4c263998edafadefa0795bebcca1e208..cdc818a04f7cbd5d25857f8a1222156883b99f75 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 83c97f1d3503f15e0a6ff8794f53ba6962729b5e..4f90c893af7da1eb576299b8ebfd0e0706c7d018 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 01fe79d5db4bfb439c173a969697ac28980b471e..58d63a83fc917f5c2d83e26a69b8b26365dbd28a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 46ab9051f0b0c0ddc9d75d86aed200bcfc0b92af..5d46747592125be6da46ff76558a8a756ad02186 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 734dbe1c8387176f9d56dccf06e99b6da4f458fe..b8e6219319b0afbd66539a72dd53116f09d0fc98 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 7a334014b85ad1cbc260767c460d7180712dcf28..6f6fdf3dd438903198195646637a16f9bb264e4b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index a65f976608cf258ab1d572837a458b523a8a652a..d4089f44e984ee88685b0de4cfafbbecf0f8f88b 100644 (file)
@@ -24,7 +24,7 @@ import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.locatorrecords.Loc
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Ipv4Address;
 
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index baf600e8d8ee22858a5af8f2a2fe76bfde23c0f0..696a0fd8ac41ec79b49bf62e9bc1bfa86c14b4c1 100644 (file)
@@ -37,7 +37,7 @@ import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.maprequest.SourceE
 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.maprequestnotification.MapRequestBuilder;
 
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index a7d096ca60da1a1afa31018f810dbefff5422d76..ab1f4874d189db5722bd2fa14faee81c95b3a85c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -11,6 +11,7 @@ package org.opendaylight.lispflowmapping.implementation.lisp;
 import static org.junit.Assert.assertEquals;
 
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -26,6 +27,7 @@ import org.opendaylight.lispflowmapping.implementation.util.LispAFIConvertor;
 import org.opendaylight.lispflowmapping.interfaces.dao.ILispDAO;
 import org.opendaylight.lispflowmapping.interfaces.dao.IMappingServiceKey;
 import org.opendaylight.lispflowmapping.interfaces.dao.MappingEntry;
+import org.opendaylight.lispflowmapping.interfaces.dao.MappingServiceRLOC;
 import org.opendaylight.lispflowmapping.interfaces.dao.MappingServiceValue;
 import org.opendaylight.lispflowmapping.tools.junit.BaseTestCase;
 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.LispAFIAddress;
@@ -94,6 +96,93 @@ public class MapServerTest extends BaseTestCase {
         assertEquals(rloc, ((MappingServiceValue) entries[0].getValue()).getRlocs().get(0).getRecord().getLispAddressContainer().getAddress());
     }
 
+    @Test
+    public void handleMapRegister__TestOtherKeyExists() throws Exception {
+        mapRegisterBuilder.setWantMapNotify(false);
+
+        Map<String, MappingServiceValue> result = new HashMap<String, MappingServiceValue>();
+        MappingServiceValue value = new MappingServiceValue();
+        value.setRlocs(new ArrayList<MappingServiceRLOC>());
+        LocatorRecord rec = new LocatorRecordBuilder().setLispAddressContainer(LispAFIConvertor.toContainer(eid)).build();
+        MappingServiceRLOC msr = new MappingServiceRLOC(rec, 60, Action.NoAction, false);
+        value.getRlocs().add(msr);
+        result.put("value", value);
+        allowing(lispDAO)
+                .get(weq(MappingServiceKeyUtil.generateMappingServiceKey(mapRegisterBuilder.getEidToLocatorRecord().get(0).getLispAddressContainer(),
+                        32)));
+        ret(result);
+        addGetExpectations(eid, 32);
+        msr = new MappingServiceRLOC(new LocatorRecordBuilder().setLispAddressContainer(LispAFIConvertor.toContainer(rloc)).build(), 60,
+                Action.NoAction, false);
+        value.getRlocs().add(msr);
+        MappingEntry<MappingServiceValue> entry = new MappingEntry<MappingServiceValue>("value", value);
+        allowing(lispDAO).put(
+                MappingServiceKeyUtil.generateMappingServiceKey(mapRegisterBuilder.getEidToLocatorRecord().get(0).getLispAddressContainer(), 32),
+                entry);
+
+        testedMapServer.handleMapRegister(mapRegisterBuilder.build());
+
+    }
+
+    @Test
+    public void handleMapRegister__TestKeyExistsAndOther() throws Exception {
+        mapRegisterBuilder.setWantMapNotify(false);
+
+        Map<String, MappingServiceValue> result = new HashMap<String, MappingServiceValue>();
+        MappingServiceValue value = new MappingServiceValue();
+        value.setRlocs(new ArrayList<MappingServiceRLOC>());
+        LocatorRecord rec = new LocatorRecordBuilder().setLispAddressContainer(LispAFIConvertor.toContainer(eid)).build();
+        MappingServiceRLOC msr = new MappingServiceRLOC(rec, 60, Action.NoAction, false);
+        value.getRlocs().add(msr);
+        rec = new LocatorRecordBuilder().setLispAddressContainer(LispAFIConvertor.toContainer(rloc)).build();
+        msr = new MappingServiceRLOC(rec, 60, Action.NoAction, false);
+        value.getRlocs().add(msr);
+        result.put("value", value);
+        allowing(lispDAO)
+                .get(weq(MappingServiceKeyUtil.generateMappingServiceKey(mapRegisterBuilder.getEidToLocatorRecord().get(0).getLispAddressContainer(),
+                        32)));
+        ret(result);
+        addGetExpectations(eid, 32);
+        msr = new MappingServiceRLOC(new LocatorRecordBuilder().setLispAddressContainer(LispAFIConvertor.toContainer(rloc)).build(), 60,
+                Action.NoAction, false);
+        value.getRlocs().add(msr);
+        MappingEntry<MappingServiceValue> entry = new MappingEntry<MappingServiceValue>("value", value);
+        allowing(lispDAO).put(
+                MappingServiceKeyUtil.generateMappingServiceKey(mapRegisterBuilder.getEidToLocatorRecord().get(0).getLispAddressContainer(), 32),
+                entry);
+
+        testedMapServer.handleMapRegister(mapRegisterBuilder.build());
+
+    }
+
+    @Test
+    public void handleMapRegister__TestSameKeyExists() throws Exception {
+        mapRegisterBuilder.setWantMapNotify(false);
+
+        Map<String, MappingServiceValue> result = new HashMap<String, MappingServiceValue>();
+        MappingServiceValue value = new MappingServiceValue();
+        value.setRlocs(new ArrayList<MappingServiceRLOC>());
+        LocatorRecord rec = new LocatorRecordBuilder().setLispAddressContainer(LispAFIConvertor.toContainer(rloc)).build();
+        MappingServiceRLOC msr = new MappingServiceRLOC(rec, 40, Action.Drop, true);
+        value.getRlocs().add(msr);
+        result.put("value", value);
+        allowing(lispDAO)
+                .get(weq(MappingServiceKeyUtil.generateMappingServiceKey(mapRegisterBuilder.getEidToLocatorRecord().get(0).getLispAddressContainer(),
+                        32)));
+        ret(result);
+        addGetExpectations(eid, 32);
+        MappingServiceRLOC expectedMsr = new MappingServiceRLOC(rec, 60, Action.NoAction, false);
+        value = new MappingServiceValue();
+        value.setRlocs(Arrays.asList(expectedMsr));
+        MappingEntry<MappingServiceValue> entry = new MappingEntry<MappingServiceValue>("value", value);
+        allowing(lispDAO).put(
+                MappingServiceKeyUtil.generateMappingServiceKey(mapRegisterBuilder.getEidToLocatorRecord().get(0).getLispAddressContainer(), 32),
+                entry);
+
+        testedMapServer.handleMapRegister(mapRegisterBuilder.build());
+
+    }
+
     @Test
     public void handleMapRegisterIpv4__ValidNotifyEchoesRegister() throws Exception {
         mapRegisterBuilder.getEidToLocatorRecord().add(
index c28eb8a573d6990a46e039f9f36f0219819a7338..8be81b95c86042353023420e3f8bee334a9ef4e4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index c9f25342003f1acfca154b341c8007c03fdde805..2583d98faa6e5410c57fe0112393358056c15bc4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index b6a20c0236d67b0c21cfde0c1f44506393412c1c..5ee4824ad27acead8d78b9201e21978b46022898 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index c9d39501391d95c218b743b3d9d14afa139ae2a3..faa4f6babb28f68a44a1ed0414c938c0115d06c8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 6cbe049a4865ab8c99274131027bc58690d8127d..18f25cb21a1db8f5d072b040016fe52d8ce925b6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index ebf9b60e5e7af88397ad2408fbc631b3eda32d33..ffc29f4cfa114b94169d9311ebca51222c24d7da 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 4f3daf8bd6b520e1c73fe66dda93b7b57716ac2e..4787b9248e3e91e5402a9870f2177f78e0a2379d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 5b8b6ecaa541695ec1d933b0792c68396a11d2d0..f2b1f7a9f5d7646eb5fba919ba8f92b99da8d094 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 4c2f4b54f210cf8c252676eceb2bd62528adcb90..2dce924388dc02c53058acac0bf5dc26aff46d63 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 53e8604d5d5f8cb81ac9688fb3252d91807a4bd9..6710ed24de8b70b01f69e4dd9ac2150468045abb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index bd2fd7b5ec29b32ad16d451345a2deb9cc8b5602..0ac6005339f3901767ba0273b1cb1ee73fefa7be 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 3c582fac3c40990ab4fd9c5a1ce3511536aa988e..6a0cc659870b92afc4707dbd69f0d7e8262b00a0 100644 (file)
@@ -35,7 +35,7 @@
        <build>
                <pluginManagement>
                        <plugins>
-                               
+
                                <plugin>
                                        <groupId>org.eclipse.m2e</groupId>
                                        <artifactId>lifecycle-mapping</artifactId>
                        <artifactId>sal-binding-it</artifactId>
                        <version>1.0-SNAPSHOT</version>
                </dependency>
+               <dependency>
+                       <groupId>org.opendaylight.controller</groupId>
+                       <artifactId>sal-binding-util</artifactId>
+                       <version>1.0-SNAPSHOT</version>
+               </dependency>
                <dependency>
                        <groupId>org.opendaylight.controller</groupId>
                        <artifactId>sal-common-api</artifactId>
                <dependency>
                        <groupId>org.opendaylight.controller</groupId>
                        <artifactId>containermanager</artifactId>
-                       <version>0.5.0-SNAPSHOT</version>
+                       <version>0.5.1-SNAPSHOT</version>
                </dependency>
                <dependency>
                        <groupId>org.opendaylight.controller</groupId>
                        <artifactId>netconf-impl</artifactId>
                        <version>${netconf.version}</version>
                </dependency>
+               <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.core</artifactId>
+            <version>${osgi.core.version}</version>
+            <scope>provided</scope>
+        </dependency>
                <dependency>
                        <groupId>org.opendaylight.controller</groupId>
                        <artifactId>containermanager.it.implementation</artifactId>
-                       <version>0.5.0-SNAPSHOT</version>
+                       <version>0.5.1-SNAPSHOT</version>
                </dependency>
                <dependency>
                        <groupId>org.opendaylight.controller</groupId>
                        <version>0.4.1-SNAPSHOT</version>
                </dependency>
 
+               <dependency>
+                       <groupId>org.opendaylight.controller</groupId>
+                       <artifactId>protocol-framework</artifactId>
+               </dependency>
                <dependency>
                        <groupId>org.opendaylight.controller</groupId>
                        <artifactId>sal</artifactId>
                <dependency>
                        <groupId>org.opendaylight.controller</groupId>
                        <artifactId>clustering.services</artifactId>
-                       <version>0.4.1-SNAPSHOT</version>
+                       <version>0.5.0-SNAPSHOT</version>
                </dependency>
                <dependency>
                        <groupId>org.opendaylight.controller</groupId>
                        <artifactId>clustering.stub</artifactId>
-                       <version>0.4.0-SNAPSHOT</version>
+                       <version>0.4.1-SNAPSHOT</version>
                </dependency>
 
                <dependency>
                <dependency>
                        <groupId>commons-fileupload</groupId>
                        <artifactId>commons-fileupload</artifactId>
-                       <version>1.2.2</version>
                </dependency>
                <dependency>
                        <groupId>commons-codec</groupId>
                <dependency>
                        <groupId>equinoxSDK381</groupId>
                        <artifactId>javax.servlet</artifactId>
-                       <version>3.0.0.v201112011016</version>
                </dependency>
                <dependency>
                        <groupId>equinoxSDK381</groupId>
                        <artifactId>javax.servlet.jsp</artifactId>
-                       <version>2.2.0.v201112011158</version>
                </dependency>
                <dependency>
                        <groupId>equinoxSDK381</groupId>
                        <artifactId>org.eclipse.equinox.ds</artifactId>
-                       <version>1.4.0.v20120522-1841</version>
                </dependency>
                <dependency>
                        <groupId>equinoxSDK381</groupId>
                        <artifactId>org.eclipse.equinox.util</artifactId>
-                       <version>1.0.400.v20120522-2049</version>
                </dependency>
                <dependency>
                        <groupId>equinoxSDK381</groupId>
                        <artifactId>org.eclipse.osgi</artifactId>
-                       <version>3.8.1.v20120830-144521</version>
                </dependency>
                <dependency>
                        <groupId>equinoxSDK381</groupId>
                        <artifactId>org.apache.felix.gogo.command</artifactId>
-                       <version>0.8.0.v201108120515</version>
                </dependency>
                <dependency>
                        <groupId>equinoxSDK381</groupId>
                        <artifactId>org.apache.felix.gogo.runtime</artifactId>
-                       <version>0.8.0.v201108120515</version>
                </dependency>
                <dependency>
                        <groupId>equinoxSDK381</groupId>
                        <artifactId>org.apache.felix.gogo.shell</artifactId>
-                       <version>0.8.0.v201110170705</version>
                </dependency>
                <dependency>
                        <groupId>equinoxSDK381</groupId>
                        <artifactId>org.eclipse.equinox.cm</artifactId>
-                       <version>1.0.400.v20120522-1841</version>
                </dependency>
                <dependency>
                        <groupId>equinoxSDK381</groupId>
                        <artifactId>org.eclipse.equinox.console</artifactId>
-                       <version>1.0.0.v20120522-1841</version>
                </dependency>
                <dependency>
                        <groupId>equinoxSDK381</groupId>
                        <artifactId>org.eclipse.equinox.launcher</artifactId>
-                       <version>1.3.0.v20120522-1813</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.felix</groupId>
                        <artifactId>org.apache.felix.dependencymanager</artifactId>
-                       <version>3.1.0</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.felix</groupId>
                        <artifactId>org.apache.felix.dependencymanager.shell</artifactId>
-                       <version>3.0.1</version>
                </dependency>
                <dependency>
                        <groupId>com.google.code.gson</groupId>
                        <artifactId>gson</artifactId>
-                       <version>2.1</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>org.jboss.spec.javax.transaction</groupId>
                        <artifactId>jboss-transaction-api_1.1_spec</artifactId>
-                       <version>1.0.1.Final</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.felix</groupId>
                        <artifactId>org.apache.felix.fileinstall</artifactId>
-                       <version>3.1.6</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.commons</groupId>
                <dependency>
                        <groupId>virgomirror</groupId>
                        <artifactId>org.eclipse.jdt.core.compiler.batch</artifactId>
-                       <version>3.8.0.I20120518-2145</version>
                </dependency>
                <dependency>
                        <groupId>eclipselink</groupId>
                        <artifactId>javax.persistence</artifactId>
-                       <version>2.0.4.v201112161009</version>
                </dependency>
                <dependency>
                        <groupId>eclipselink</groupId>
                        <artifactId>javax.resource</artifactId>
-                       <version>1.5.0.v200906010428</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>javax.activation</artifactId>
-                       <version>1.1.0.v201211130549</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>javax.annotation</artifactId>
-                       <version>1.1.0.v201209060031</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>javax.ejb</artifactId>
-                       <version>3.1.1.v201204261316</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>javax.el</artifactId>
-                       <version>2.2.0.v201108011116</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>javax.mail.glassfish</artifactId>
-                       <version>1.4.1.v201108011116</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>javax.xml.rpc</artifactId>
-                       <version>1.1.0.v201005080400</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>org.apache.catalina</artifactId>
-                       <version>7.0.32.v201211201336</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>org.apache.catalina.ha</artifactId>
-                       <version>7.0.32.v201211201952</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>org.apache.catalina.tribes</artifactId>
-                       <version>7.0.32.v201211201952</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>org.apache.coyote</artifactId>
-                       <version>7.0.32.v201211201952</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>org.apache.el</artifactId>
-                       <version>7.0.32.v201211081135</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>org.apache.jasper</artifactId>
-                       <version>7.0.32.v201211201952</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>org.apache.juli.extras</artifactId>
-                       <version>7.0.32.v201211081135</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>org.apache.tomcat.api</artifactId>
-                       <version>7.0.32.v201211081135</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>org.apache.tomcat.util</artifactId>
-                       <version>7.0.32.v201211201952</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>javax.servlet.jsp.jstl</artifactId>
-                       <version>1.2.0.v201105211821</version>
                </dependency>
                <dependency>
                        <groupId>orbit</groupId>
                        <artifactId>javax.servlet.jsp.jstl.impl</artifactId>
-                       <version>1.2.0.v201210211230</version>
                </dependency>
                <!-- Add Pax Exam -->
                <dependency>
-            <exclusions>
-                <exclusion>  <!-- declare the exclusion here -->
-                    <groupId>org.ops4j.pax.exam</groupId>
-                    <artifactId>pax-exam-container-native</artifactId>
-                </exclusion>
-            </exclusions>
+                       <exclusions>
+                               <exclusion>  <!-- declare the exclusion here -->
+                                       <groupId>org.ops4j.pax.exam</groupId>
+                                       <artifactId>pax-exam-container-native</artifactId>
+                               </exclusion>
+                       </exclusions>
                        <groupId>org.ops4j.pax.exam</groupId>
                        <artifactId>pax-exam-container-forked</artifactId>
                        <scope>test</scope>
-            <version>${exam.version}</version>
+                       <version>${exam.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.ops4j.pax.exam</groupId>
                <dependency>
                        <groupId>org.ow2.asm</groupId>
                        <artifactId>asm-all</artifactId>
-                       <version>4.1</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                <dependency>
                        <groupId>org.aopalliance</groupId>
                        <artifactId>com.springsource.org.aopalliance</artifactId>
-                       <version>1.0.0</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                <dependency>
                        <groupId>org.ow2.chameleon.management</groupId>
                        <artifactId>chameleon-mbeans</artifactId>
-                       <version>1.0.0</version>
                </dependency>
                <!-- Jersey for JAXRS -->
                <dependency>
                        <artifactId>jersey-core</artifactId>
                        <version>${jersey.version}</version>
                </dependency>
+               <dependency>
+                       <groupId>com.sun.jersey</groupId>
+                       <artifactId>jersey-json</artifactId>
+                       <version>${jersey.version}</version>
+               </dependency>
                <dependency>
                        <groupId>com.sun.jersey</groupId>
                        <artifactId>jersey-server</artifactId>
                        <artifactId>sal-binding-broker-impl</artifactId>
                        <version>1.0-SNAPSHOT</version>
                </dependency>
+               <dependency>
+                       <groupId>org.opendaylight.controller</groupId>
+                       <artifactId>config-netconf-connector</artifactId>
+                       <version>${netconf.version}</version>
+                       <scope>test</scope>
+               </dependency>
                <dependency>
             <groupId>org.opendaylight.controller</groupId>
-            <artifactId>config-netconf-connector</artifactId>
-            <version>${netconf.version}</version>
-            <scope>test</scope>
+            <artifactId>config-persister-file-xml-adapter</artifactId>
+            <version>${config.version}</version>
         </dependency>
                <dependency>
-          <groupId>org.opendaylight.controller.model</groupId>
-          <artifactId>model-inventory</artifactId>
-          <version>${mdsal.version}</version>
-        </dependency>
+                       <groupId>org.opendaylight.controller.model</groupId>
+                       <artifactId>model-inventory</artifactId>
+                       <version>${mdsal.version}</version>
+               </dependency>
                <dependency>
                        <groupId>org.javassist</groupId>
                        <artifactId>javassist</artifactId>
-                       <version>3.17.1-GA</version>
                </dependency>
                <dependency>
-                         <groupId>org.opendaylight.controller.thirdparty</groupId>
-                         <artifactId>exificient</artifactId>
-                         <version>0.9.2-SNAPSHOT</version>
+                       <groupId>org.opendaylight.controller.thirdparty</groupId>
+                       <artifactId>exificient</artifactId>
                </dependency>
 
                <dependency>
                        <groupId>org.opendaylight.controller.thirdparty</groupId>
                        <artifactId>com.sun.jersey.jersey-servlet</artifactId>
                </dependency>
-               
+
+               <dependency>
+                       <groupId>com.fasterxml.jackson.core</groupId>
+                       <artifactId>jackson-annotations</artifactId>
+                       <version>${jackson.version}</version>
+               </dependency>
+
+               <dependency>
+                       <groupId>com.fasterxml.jackson.core</groupId>
+                       <artifactId>jackson-core</artifactId>
+                       <version>${jackson.version}</version>
+               </dependency>
+
                <dependency>
-      <groupId>com.fasterxml.jackson.core</groupId>
-      <artifactId>jackson-annotations</artifactId>
-      <version>${jackson.version}</version>
-    </dependency>
+                       <groupId>com.fasterxml.jackson.core</groupId>
+                       <artifactId>jackson-databind</artifactId>
+                       <version>${jackson.version}</version>
+               </dependency>
 
-    <dependency>
-      <groupId>com.fasterxml.jackson.core</groupId>
-      <artifactId>jackson-core</artifactId>
-      <version>${jackson.version}</version>
-    </dependency>
+               <dependency>
+                       <groupId>com.fasterxml.jackson.jaxrs</groupId>
+                       <artifactId>jackson-jaxrs-json-provider</artifactId>
+                       <version>${jackson.version}</version>
+               </dependency>
 
-    <dependency>
-      <groupId>com.fasterxml.jackson.core</groupId>
-      <artifactId>jackson-databind</artifactId>
-      <version>${jackson.version}</version>
-    </dependency>
-    
-    <dependency>
-       <groupId>com.fasterxml.jackson.jaxrs</groupId>
-       <artifactId>jackson-jaxrs-json-provider</artifactId>
-       <version>${jackson.version}</version>
-    </dependency>
+               <dependency>
+                       <groupId>com.fasterxml.jackson.jaxrs</groupId>
+                       <artifactId>jackson-jaxrs-base</artifactId>
+                       <version>${jackson.version}</version>
+               </dependency>
 
-      <dependency>
-         <groupId>com.fasterxml.jackson.jaxrs</groupId>
-         <artifactId>jackson-jaxrs-base</artifactId>
-         <version>${jackson.version}</version>
-      </dependency>
-    
                <dependency>
                        <groupId>org.codehaus.jackson</groupId>
                        <artifactId>jackson-mapper-asl</artifactId>
                <dependency>
                        <groupId>org.codehaus.jettison</groupId>
                        <artifactId>jettison</artifactId>
-                       <version>1.3.3</version>
                </dependency>
                <dependency>
                        <groupId>org.opendaylight.controller</groupId>
                        <artifactId>switchmanager.implementation</artifactId>
                        <version>0.4.1-SNAPSHOT</version>
                </dependency>
+               <dependency>
+                       <groupId>org.opendaylight.controller</groupId>
+                       <artifactId>forwardingrulesmanager</artifactId>
+                       <version>0.5.0-SNAPSHOT</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.opendaylight.controller</groupId>
+                       <artifactId>hosttracker</artifactId>
+                       <version>${hosttracker.version}</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.opendaylight.controller</groupId>
+                       <artifactId>topologymanager</artifactId>
+                       <version>0.4.1-SNAPSHOT</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.opendaylight.controller</groupId>
+                       <artifactId>forwardingrulesmanager.implementation</artifactId>
+                       <version>0.4.1-SNAPSHOT</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.opendaylight.controller</groupId>
+                       <artifactId>statisticsmanager</artifactId>
+                       <version>0.5.0-SNAPSHOT</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.opendaylight.controller</groupId>
+                       <artifactId>statisticsmanager.implementation</artifactId>
+                       <version>0.4.1-SNAPSHOT</version>
+               </dependency>
                <dependency>
                        <groupId>org.opendaylight.controller</groupId>
                        <artifactId>connectionmanager</artifactId>
                        <version>0.2.3-SNAPSHOT</version>
                </dependency>
 
-        <dependency>
-            <groupId>xml-apis</groupId>
-            <artifactId>xml-apis</artifactId>
-            <version>1.4.01</version>
-        </dependency>
-    </dependencies>
+               <dependency>
+                       <groupId>org.opendaylight.yangtools</groupId>
+                       <artifactId>mockito-configuration</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>xml-apis</groupId>
+                       <artifactId>xml-apis</artifactId>
+                       <version>1.4.01</version>
+               </dependency>
+       </dependencies>
 
        <profiles>
                <profile>
index 4f810a6ebce26d3609b081f6c35a44f2d53c4e2d..19510163c99d9872332669bf20388e02a9a5412c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -7,7 +7,15 @@
  */
 package org.opendaylight.lispflowmapping.integrationtest;
 
-import aQute.lib.osgi.Constants;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+import static org.ops4j.pax.exam.CoreOptions.junitBundles;
+import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
+import static org.ops4j.pax.exam.CoreOptions.options;
+import static org.ops4j.pax.exam.CoreOptions.systemPackages;
+import static org.ops4j.pax.exam.CoreOptions.systemProperty;
 
 import java.io.BufferedReader;
 import java.io.IOException;
@@ -106,9 +114,10 @@ import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Ipv6Address;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.PortNumber;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev100924.MacAddress;
-import org.ops4j.pax.exam.Option;
 import org.ops4j.pax.exam.Configuration;
+import org.ops4j.pax.exam.Option;
 import org.ops4j.pax.exam.junit.PaxExam;
+import org.ops4j.pax.exam.util.Filter;
 import org.ops4j.pax.exam.util.PathUtils;
 import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleContext;
@@ -118,21 +127,7 @@ import org.osgi.framework.ServiceReference;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
-import static org.ops4j.pax.exam.CoreOptions.junitBundles;
-import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
-import static org.ops4j.pax.exam.CoreOptions.options;
-import static org.ops4j.pax.exam.CoreOptions.systemPackages;
-import static org.ops4j.pax.exam.CoreOptions.systemProperty;
-
-//import org.opendaylight.lispflowmapping.interfaces.lisp.IFlowMapping;
-//import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.MapNotify;
-//import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.MapRegister;
-//import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.MapReply;
-//import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.MapRequest;
+import aQute.lib.osgi.Constants;
 
 @RunWith(PaxExam.class)
 public class MappingServiceIntegrationTest {
@@ -153,6 +148,7 @@ public class MappingServiceIntegrationTest {
     public static final String YANG = "org.opendaylight.yangtools";
     public static final String JERSEY = "com.sun.jersey";
     private static final String DEBUG_PORT = "8005";
+    private static final int MAX_SERVICE_LOAD_RETRIES = 45;
 
     @After
     public void after() {
@@ -314,6 +310,7 @@ public class MappingServiceIntegrationTest {
 
                 mavenBundle("org.apache.felix", "org.apache.felix.dependencymanager").versionAsInProject(),
                 mavenBundle("org.apache.felix", "org.apache.felix.dependencymanager.shell").versionAsInProject(),
+                mavenBundle("org.osgi", "org.osgi.core").versionAsInProject(),
 
                 mavenBundle("com.google.code.gson", "gson").versionAsInProject(),
                 mavenBundle("org.jboss.spec.javax.transaction", "jboss-transaction-api_1.1_spec").versionAsInProject(),
@@ -353,40 +350,8 @@ public class MappingServiceIntegrationTest {
                 TestHelper.bindingIndependentSalBundles(),
                 TestHelper.bindingAwareSalBundles(),
                 TestHelper.mdSalCoreBundles(),
+                TestHelper.junitAndMockitoBundles(),
 
-                // Specific bundles
-                mavenBundle(ODL, "config-api").versionAsInProject(),
-                mavenBundle(ODL, "sal-binding-api").versionAsInProject(), //
-                mavenBundle(ODL, "sal-binding-config").versionAsInProject(),
-                mavenBundle(ODL, "sal-binding-broker-impl").versionAsInProject(), //
-                mavenBundle(ODL, "sal-common").versionAsInProject(), //
-                mavenBundle(ODL, "sal-common-api").versionAsInProject(), //
-                mavenBundle(ODL, "sal-common-impl").versionAsInProject(),
-                mavenBundle(ODL, "sal-common-util").versionAsInProject(), //
-
-                mavenBundle(YANG, "concepts").versionAsInProject(),
-                mavenBundle(YANG, "yang-binding").versionAsInProject(), //
-                mavenBundle(YANG, "yang-common").versionAsInProject(), //
-                mavenBundle(YANG + ".model", "ietf-inet-types").versionAsInProject(),//
-                mavenBundle(YANG + ".model", "ietf-yang-types").versionAsInProject(),//
-                mavenBundle(YANG + ".thirdparty", "xtend-lib-osgi").versionAsInProject(),//
-                mavenBundle(YANG, "yang-data-api").versionAsInProject(), //
-                mavenBundle(YANG, "yang-data-impl").versionAsInProject(), //
-                mavenBundle(YANG, "yang-model-api").versionAsInProject(), //
-                mavenBundle(YANG, "yang-model-util").versionAsInProject(), //
-                mavenBundle(YANG, "yang-parser-api").versionAsInProject(),
-                mavenBundle(YANG, "yang-parser-impl").versionAsInProject(),
-                mavenBundle(YANG, "binding-generator-spi").versionAsInProject(), //
-                mavenBundle(YANG, "binding-model-api").versionAsInProject(), //
-                mavenBundle(YANG, "binding-generator-util").versionAsInProject(),
-                mavenBundle(YANG, "yang-parser-impl").versionAsInProject(),
-                mavenBundle(YANG, "binding-type-provider").versionAsInProject(),
-                mavenBundle(YANG, "binding-generator-api").versionAsInProject(),
-                mavenBundle(YANG, "binding-generator-spi").versionAsInProject(),
-                mavenBundle(YANG, "binding-generator-impl").versionAsInProject(),
-                mavenBundle(YANG + ".thirdparty", "antlr4-runtime-osgi-nohead").versionAsInProject(), //
-
-                mavenBundle("com.google.guava", "guava").versionAsInProject(), //
                 mavenBundle("org.javassist", "javassist").versionAsInProject(), //
 
                 // Northbound bundles
@@ -411,7 +376,14 @@ public class MappingServiceIntegrationTest {
                 mavenBundle("org.ow2.asm", "asm-all").versionAsInProject(), //
                 mavenBundle("org.opendaylight.controller", "bundlescanner").versionAsInProject(),//
                 mavenBundle("org.opendaylight.controller", "bundlescanner.implementation").versionAsInProject(),//
+                mavenBundle("org.opendaylight.controller", "topologymanager").versionAsInProject(),
+                mavenBundle("org.opendaylight.controller", "hosttracker").versionAsInProject(),
+                mavenBundle("org.opendaylight.controller", "forwardingrulesmanager").versionAsInProject(),
+                mavenBundle("org.opendaylight.controller", "forwardingrulesmanager.implementation").versionAsInProject(),
+                mavenBundle("org.opendaylight.controller", "statisticsmanager").versionAsInProject(),
+                mavenBundle("org.opendaylight.controller", "statisticsmanager.implementation").versionAsInProject(),
                 mavenBundle("org.opendaylight.controller", "switchmanager").versionAsInProject(),//
+                mavenBundle("org.opendaylight.controller", "switchmanager.implementation").versionAsInProject(),//
                 mavenBundle("org.opendaylight.controller", "connectionmanager").versionAsInProject(),//
                 mavenBundle("org.opendaylight.controller", "connectionmanager.implementation").versionAsInProject(),//
                 mavenBundle("org.opendaylight.controller", "configuration").versionAsInProject(),//
@@ -462,15 +434,6 @@ public class MappingServiceIntegrationTest {
                 mavenBundle("org.opendaylight.lispflowmapping", "mappingservice.southbound").versionAsInProject(), //
                 mavenBundle("org.opendaylight.lispflowmapping", "mappingservice.northbound").versionAsInProject(), //
 
-                // Additions
-                mavenBundle(ODL, "sal-core-api").versionAsInProject().update(), //
-                mavenBundle(ODL, "sal-core-spi").versionAsInProject().update(), //
-                mavenBundle(ODL, "sal-broker-impl").versionAsInProject(), //
-                mavenBundle(ODL, "sal-connector-api").versionAsInProject(), //
-
-                mavenBundle(ODL, "config-api").versionAsInProject(), //
-                mavenBundle(ODL, "config-manager").versionAsInProject(), //
-
                 junitBundles());
     }
 
@@ -581,8 +544,8 @@ public class MappingServiceIntegrationTest {
 
         String jsonAuthData = createAuthKeyJSON(pass, address, mask);
 
-        logger.info("Sending this JSON to LISP server: \n" + jsonAuthData);
-        logger.info("Address: " + address);
+        logger.trace("Sending this JSON to LISP server: \n" + jsonAuthData);
+        logger.trace("Address: " + address);
 
         byte[] expectedSha = new byte[] { (byte) 146, (byte) 234, (byte) 52, (byte) 247, (byte) 186, (byte) 232, (byte) 31, (byte) 249, (byte) 87,
                 (byte) 73, (byte) 234, (byte) 54, (byte) 225, (byte) 160, (byte) 129, (byte) 251, (byte) 73, (byte) 53, (byte) 196, (byte) 62 };
@@ -876,8 +839,8 @@ public class MappingServiceIntegrationTest {
         Integer httpResponseCode = connection.getResponseCode();
 
         if (httpResponseCode > 299) {
-            logger.info("HTTP Address: " + url);
-            logger.info("HTTP Response Code: " + httpResponseCode);
+            logger.trace("HTTP Address: " + url);
+            logger.trace("HTTP Response Code: " + httpResponseCode);
             fail();
         }
 
@@ -1268,6 +1231,32 @@ public class MappingServiceIntegrationTest {
 
     }
 
+    @Test
+    public void mapRegisterMapRegisterAndMapRequest() throws SocketTimeoutException {
+
+        LispIpv4Address eid = asIPAfiAddress("1.2.3.4");
+        MapRegister mb = createMapRegister(eid, asIPAfiAddress("4.3.2.1"));
+        sendMapRegister(mb);
+        MapNotify mapNotify = receiveMapNotify();
+        MapRequest mr = createMapRequest(eid);
+        sendMapRequest(mr);
+        MapReply mapReply = receiveMapReply();
+        assertEquals(mb.getEidToLocatorRecord().get(0).getLocatorRecord().get(0).getLispAddressContainer(), mapReply.getEidToLocatorRecord().get(0)
+                .getLocatorRecord().get(0).getLispAddressContainer());
+        MapRegister mb2 = createMapRegister(eid, asIPAfiAddress("4.3.2.2"));
+        sendMapRegister(mb2);
+        mapNotify = receiveMapNotify();
+        assertEquals(8, mapNotify.getNonce().longValue());
+        mr = createMapRequest(eid);
+        sendMapRequest(mr);
+        mapReply = receiveMapReply();
+        assertEquals(2, mapReply.getEidToLocatorRecord().get(0).getLocatorRecord().size());
+        assertEquals(mb.getEidToLocatorRecord().get(0).getLocatorRecord().get(0).getLispAddressContainer(), mapReply.getEidToLocatorRecord().get(0)
+                .getLocatorRecord().get(0).getLispAddressContainer());
+        assertEquals(mb2.getEidToLocatorRecord().get(0).getLocatorRecord().get(0).getLispAddressContainer(), mapReply.getEidToLocatorRecord().get(0)
+                .getLocatorRecord().get(1).getLispAddressContainer());
+    }
+
     @Test
     public void mapRequestMapRegisterAndMapRequestTestTimeout() throws SocketTimeoutException {
 
@@ -1387,7 +1376,7 @@ public class MappingServiceIntegrationTest {
         assertEquals(expectedAction, mapReply.getEidToLocatorRecord().get(0).getAction());
     }
 
-    private MapRegister createMapRegister(LispIpv4Address eid) {
+    private MapRegister createMapRegister(LispIpv4Address eid, LispIpv4Address rloc) {
         MapRegisterBuilder mapRegisterbuilder = new MapRegisterBuilder();
         mapRegisterbuilder.setWantMapNotify(true);
         mapRegisterbuilder.setNonce((long) 8);
@@ -1396,7 +1385,7 @@ public class MappingServiceIntegrationTest {
         etlrBuilder.setMaskLength((short) 24);
         etlrBuilder.setRecordTtl(254);
         LocatorRecordBuilder recordBuilder = new LocatorRecordBuilder();
-        recordBuilder.setLispAddressContainer(LispAFIConvertor.toContainer(asIPAfiAddress("4.3.2.1")));
+        recordBuilder.setLispAddressContainer(LispAFIConvertor.toContainer(rloc));
         etlrBuilder.setLocatorRecord(new ArrayList<LocatorRecord>());
         etlrBuilder.getLocatorRecord().add(recordBuilder.build());
         mapRegisterbuilder.setEidToLocatorRecord(new ArrayList<EidToLocatorRecord>());
@@ -1405,6 +1394,10 @@ public class MappingServiceIntegrationTest {
         return mapRegister;
     }
 
+    private MapRegister createMapRegister(LispIpv4Address eid) {
+        return createMapRegister(eid, asIPAfiAddress("4.3.2.1"));
+    }
+
     private MapRequest createMapRequest(LispIpv4Address eid) {
         MapRequestBuilder mapRequestBuilder = new MapRequestBuilder();
         mapRequestBuilder.setNonce((long) 4);
@@ -1490,10 +1483,9 @@ public class MappingServiceIntegrationTest {
         try {
             DatagramPacket packet = new DatagramPacket(bytesToSend, bytesToSend.length);
             initPacketAddress(packet);
-            logger.info("Sending MapRegister to LispPlugin on socket");
+            logger.trace("Sending MapRegister to LispPlugin on socket");
             socket.send(packet);
         } catch (Throwable t) {
-            t.printStackTrace();
             fail();
         }
     }
@@ -1506,15 +1498,14 @@ public class MappingServiceIntegrationTest {
         try {
             byte[] buffer = new byte[4096];
             DatagramPacket receivePacket = new DatagramPacket(buffer, buffer.length);
-            logger.info("Waiting for packet from socket...");
+            logger.trace("Waiting for packet from socket...");
             socket.setSoTimeout(timeout);
             socket.receive(receivePacket);
-            logger.info("Recieved packet from socket!");
+            logger.trace("Recieved packet from socket!");
             return receivePacket;
         } catch (SocketTimeoutException ste) {
             throw ste;
         } catch (Throwable t) {
-            t.printStackTrace();
             fail();
             return null;
         }
@@ -1529,7 +1520,6 @@ public class MappingServiceIntegrationTest {
         try {
             socket = new DatagramSocket(new InetSocketAddress(ourAddress, LispMessage.PORT_NUM));
         } catch (SocketException e) {
-            e.printStackTrace();
             fail();
         }
         return socket;
@@ -1574,13 +1564,10 @@ public class MappingServiceIntegrationTest {
         Bundle b[] = bc.getBundles();
         for (Bundle element : b) {
             int state = element.getState();
-            logger.debug("Bundle:" + element.getSymbolicName() + ",v" + element.getVersion() + ", state:" + stateToString(state));
-            logger.debug("services: " + Arrays.toString(element.getRegisteredServices()));
+            logger.trace("Bundle[" + element.getBundleId() + "]:" + element.getSymbolicName() + ",v" + element.getVersion() + ", state:"
+                    + stateToString(state));
             if (state != Bundle.ACTIVE && state != Bundle.RESOLVED) {
-                // System.out.println("Bundle:" + element.getSymbolicName() +
-                // " state:" + stateToString(state));
-
-                // UNCOMMENT to see why bundles didn't resolve!
+                logger.trace("Bundle:" + element.getSymbolicName() + " state:" + stateToString(state));
 
                 try {
                     String host = element.getHeaders().get(Constants.FRAGMENT_HOST);
@@ -1602,9 +1589,23 @@ public class MappingServiceIntegrationTest {
         if (debugit) {
             logger.warn(("Do some debugging because some bundle is unresolved"));
         }
-        ServiceReference r = bc.getServiceReference(IFlowMapping.class.getName());
-        if (r != null) {
-            this.lms = (IFlowMapping) bc.getService(r);
+        // assertNotNull(broker);
+
+        int retry = 0;
+        ServiceReference r = null;
+        while (this.lms == null && retry < MAX_SERVICE_LOAD_RETRIES) {
+
+            r = bc.getServiceReference(IFlowMapping.class.getName());
+            // r.getPropertyKeys();
+            if (r != null) {
+                this.lms = (IFlowMapping) bc.getService(r);
+            } else {
+                try {
+                    Thread.sleep(1000);
+                } catch (InterruptedException e) {
+                }
+            }
+            retry += 1;
         }
 
         assertNotNull(IFlowMapping.class.getName() + " service wasn't found in bundle context ", this.lms);
@@ -1619,7 +1620,6 @@ public class MappingServiceIntegrationTest {
         try {
             Thread.sleep(1000);
         } catch (InterruptedException e) {
-            e.printStackTrace();
         }
 
         // If LispMappingServer is null, cannot work
@@ -1629,8 +1629,8 @@ public class MappingServiceIntegrationTest {
         // BundleContext
         /*
          * for (ServiceReference sr : bc.getAllServiceReferences(null, null)) {
-         * logger.info(sr.getBundle().getSymbolicName());
-         * logger.info(sr.toString()); }
+         * logger.trace(sr.getBundle().getSymbolicName());
+         * logger.trace(sr.toString()); }
          */
     }
 
diff --git a/mappingservice/integrationtest/src/test/resources/controller.config b/mappingservice/integrationtest/src/test/resources/controller.config
deleted file mode 100644 (file)
index 28c3bec..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-//START OF CONFIG-LAST
-<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:controller:md:sal:dom:impl">prefix:schema-service-singleton</type>
-               <name>yang-schema-service</name>
-       </module>
-       <module>
-               <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">prefix:hash-map-data-store</type>
-               <name>hash-map-data-store</name>
-       </module>
-       <module>
-               <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">prefix:dom-broker-impl</type>
-               <name>dom-broker</name>
-               <data-store xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">
-                       <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-data-store</type>
-                       <name>ref_hash-map-data-store</name>
-               </data-store>
-       </module>
-       <module>
-               <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-broker-impl</type>
-               <name>binding-broker-impl</name>
-               <notification-service xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
-                       <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-notification-service</type>
-                       <name>ref_binding-notification-broker</name>
-               </notification-service>
-               <data-broker xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
-                       <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-data-broker</type>
-                       <name>ref_binding-data-broker</name>
-               </data-broker>
-       </module>
-       <module>
-               <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:runtime-generated-mapping</type>
-               <name>runtime-mapping-singleton</name>
-       </module>
-       <module>
-               <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-notification-broker</type>
-               <name>binding-notification-broker</name>
-       </module>
-       <module>
-               <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-data-broker</type>
-               <name>binding-data-broker</name>
-               <dom-broker xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
-                       <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-broker-osgi-registry</type>
-                       <name>ref_dom-broker</name>
-               </dom-broker>
-               <mapping-service xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
-               <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">binding:binding-dom-mapping-service</type>
-               <name>ref_runtime-mapping-singleton</name>
-               </mapping-service>
-       </module>
-</modules>
-<services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
-       <service>
-       <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:schema-service</type>
-               <instance>
-               <name>ref_yang-schema-service</name>
-               <provider>/config/modules/module[name='schema-service-singleton']/instance[name='yang-schema-service']</provider>
-               </instance>
-       </service>
-       <service>
-               <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-notification-service</type>
-               <instance>
-                       <name>ref_binding-notification-broker</name>
-                       <provider>/config/modules/module[name='binding-notification-broker']/instance[name='binding-notification-broker']</provider>
-               </instance>
-       </service>
-       <service>
-               <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-data-store</type>
-               <instance>
-                       <name>ref_hash-map-data-store</name>
-                       <provider>/config/modules/module[name='hash-map-data-store']/instance[name='hash-map-data-store']</provider>
-               </instance>
-       </service>
-       <service>
-               <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-broker-osgi-registry</type>
-               <instance>
-                       <name>ref_binding-broker-impl</name>
-                       <provider>/config/modules/module[name='binding-broker-impl']/instance[name='binding-broker-impl']</provider>
-               </instance>
-       </service>
-       <service>
-               <type xmlns:binding-impl="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">binding-impl:binding-dom-mapping-service</type>
-               <instance>
-                       <name>ref_runtime-mapping-singleton</name>
-                       <provider>/config/modules/module[name='runtime-generated-mapping']/instance[name='runtime-mapping-singleton']</provider>
-               </instance>
-       </service>
-       <service>
-       <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-broker-osgi-registry</type>
-               <instance>
-                       <name>ref_dom-broker</name>
-                       <provider>/config/modules/module[name='dom-broker-impl']/instance[name='dom-broker']</provider>
-               </instance>
-       </service>
-       <service>
-               <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-data-broker</type>
-               <instance>
-               <name>ref_binding-data-broker</name>
-               <provider>/config/modules/module[name='binding-data-broker']/instance[name='binding-data-broker']</provider>
-       </instance>
-       </service>
-</services>
-</data>
-
-
-//END OF SNAPSHOT
-urn:opendaylight:l2:types?module=opendaylight-l2-types&revision=2013-08-27
-urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&revision=2013-10-28
-urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom?module=opendaylight-md-sal-dom&revision=2013-10-28
-urn:opendaylight:params:xml:ns:yang:controller:config?module=config&revision=2013-04-05
-urn:ietf:params:netconf:capability:candidate:1.0
-urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?module=ietf-netconf-monitoring&revision=2010-10-04
-urn:ietf:params:xml:ns:yang:rpc-context?module=rpc-context&revision=2013-06-17
-urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl?module=opendaylight-sal-binding-broker-impl&revision=2013-10-28
-urn:ietf:params:xml:ns:yang:ietf-inet-types?module=ietf-inet-types&revision=2010-09-24
-urn:ietf:params:netconf:capability:rollback-on-error:1.0
-urn:ietf:params:xml:ns:yang:ietf-yang-types?module=ietf-yang-types&revision=2010-09-24
-urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl?module=opendaylight-sal-dom-broker-impl&revision=2013-10-28
-urn:opendaylight:params:xml:ns:yang:controller:logback:config?module=config-logging&revision=2013-07-16
-urn:opendaylight:yang:extension:yang-ext?module=yang-ext&revision=2013-07-09
-urn:opendaylight:params:xml:ns:yang:controller:md:sal:common?module=opendaylight-md-sal-common&revision=2013-10-28
-//END OF CONFIG
diff --git a/mappingservice/integrationtest/src/test/resources/controller.xml b/mappingservice/integrationtest/src/test/resources/controller.xml
new file mode 100644 (file)
index 0000000..eff2ea1
--- /dev/null
@@ -0,0 +1,181 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persisted-snapshots>
+    <snapshots>
+        <snapshot>
+            <required-capabilities>
+                <capability>urn:opendaylight:params:xml:ns:yang:controller:config?module=config&amp;revision=2013-04-05
+                </capability>
+                <capability>
+                    urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl?module=opendaylight-sal-binding-broker-impl&amp;revision=2013-10-28
+                </capability>
+                <capability>
+                    urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&amp;revision=2013-10-28
+                </capability>
+                <capability>
+                    urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl?module=opendaylight-sal-dom-broker-impl&amp;revision=2013-10-28
+                </capability>
+                <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom?module=opendaylight-md-sal-dom&amp;revision=2013-10-28</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:controller:md:sal:dom:impl">
+                                prefix:schema-service-singleton
+                            </type>
+                            <name>yang-schema-service</name>
+                        </module>
+                        <module>
+                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">
+                                prefix:hash-map-data-store
+                            </type>
+                            <name>hash-map-data-store</name>
+                        </module>
+                        <module>
+                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">
+                                prefix:dom-broker-impl
+                            </type>
+                            <name>dom-broker</name>
+                            <data-store xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">
+                                <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">
+                                    dom:dom-data-store
+                                </type>
+                                <name>ref_hash-map-data-store</name>
+                            </data-store>
+                        </module>
+                        <module>
+                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
+                                prefix:binding-broker-impl
+                            </type>
+                            <name>binding-broker-impl</name>
+                            <notification-service
+                                    xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
+                                <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">
+                                    binding:binding-notification-service
+                                </type>
+                                <name>ref_binding-notification-broker</name>
+                            </notification-service>
+                            <data-broker xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
+                                <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">
+                                    binding:binding-data-broker
+                                </type>
+                                <name>ref_binding-data-broker</name>
+                            </data-broker>
+                        </module>
+                        <module>
+                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
+                                prefix:runtime-generated-mapping
+                            </type>
+                            <name>runtime-mapping-singleton</name>
+                        </module>
+                        <module>
+                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
+                                prefix:binding-notification-broker
+                            </type>
+                            <name>binding-notification-broker</name>
+                        </module>
+                        <module>
+                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
+                                prefix:binding-data-broker
+                            </type>
+                            <name>binding-data-broker</name>
+                            <dom-broker xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
+                                <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">
+                                    dom:dom-broker-osgi-registry
+                                </type>
+                                <name>ref_dom-broker</name>
+                            </dom-broker>
+                            <mapping-service xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
+                                <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
+                                    binding:binding-dom-mapping-service
+                                </type>
+                                <name>ref_runtime-mapping-singleton</name>
+                            </mapping-service>
+                        </module>
+                    </modules>
+
+                    <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
+                        <service>
+                            <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">
+                                dom:schema-service
+                            </type>
+                            <instance>
+                                <name>ref_yang-schema-service</name>
+                                <provider>
+                                    /config/modules/module[name='schema-service-singleton']/instance[name='yang-schema-service']
+                                </provider>
+                            </instance>
+                        </service>
+                        <service>
+                            <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">
+                                binding:binding-notification-service
+                            </type>
+                            <instance>
+                                <name>ref_binding-notification-broker</name>
+                                <provider>
+                                    /config/modules/module[name='binding-notification-broker']/instance[name='binding-notification-broker']
+                                </provider>
+                            </instance>
+                        </service>
+                        <service>
+                            <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">
+                                dom:dom-data-store
+                            </type>
+                            <instance>
+                                <name>ref_hash-map-data-store</name>
+                                <provider>
+                                    /config/modules/module[name='hash-map-data-store']/instance[name='hash-map-data-store']
+                                </provider>
+                            </instance>
+                        </service>
+                        <service>
+                            <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">
+                                binding:binding-broker-osgi-registry
+                            </type>
+                            <instance>
+                                <name>ref_binding-broker-impl</name>
+                                <provider>
+                                    /config/modules/module[name='binding-broker-impl']/instance[name='binding-broker-impl']
+                                </provider>
+                            </instance>
+                        </service>
+                        <service>
+                            <type xmlns:binding-impl="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
+                                binding-impl:binding-dom-mapping-service
+                            </type>
+                            <instance>
+                                <name>ref_runtime-mapping-singleton</name>
+                                <provider>
+                                    /config/modules/module[name='runtime-generated-mapping']/instance[name='runtime-mapping-singleton']
+                                </provider>
+                            </instance>
+                        </service>
+                        <service>
+                            <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">
+                                dom:dom-broker-osgi-registry
+                            </type>
+                            <instance>
+                                <name>ref_dom-broker</name>
+                                <provider>/config/modules/module[name='dom-broker-impl']/instance[name='dom-broker']
+                                </provider>
+                            </instance>
+                        </service>
+                        <service>
+                            <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">
+                                binding:binding-data-broker
+                            </type>
+                            <instance>
+                                <name>ref_binding-data-broker</name>
+                                <provider>
+                                    /config/modules/module[name='binding-data-broker']/instance[name='binding-data-broker']
+                                </provider>
+                            </instance>
+                        </service>
+                    </services>
+                </data>
+
+            </configuration>
+        </snapshot>
+    </snapshots>
+</persisted-snapshots>
index 4d1e5ecb7a07279dbb7a6f4c6827d29f4c16de17..1cabb0aee3b8857c905de97f19735098a21b2b47 100644 (file)
@@ -8,7 +8,7 @@
   </appender>
   <logger name="org.opendaylight.lispflowmapping" level="debug"/>
 
-  <root level="info">
+  <root level="warn">
     <appender-ref ref="STDOUT" />
   </root>
 </configuration>
index 464e3a6af563c53bc9a2aa3deef5a19d2013dc99..3ddf233bef907e21e51a28976f9784d82e8ccf16 100644 (file)
                <url>https://wiki.opendaylight.org/view/OpenDaylight_Lisp_Flow_Mapping:Main</url>
                <tag>HEAD</tag>
        </scm>
-       <properties>
-               <!-- Sonar properties using jacoco to retrieve integration test results -->
-               <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
-               <sonar.jacoco.Reportpath>target/jacoco.exec</sonar.jacoco.Reportpath>
-               <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
-       </properties>
        <build>
                <plugins>
                        <plugin>
@@ -88,7 +82,6 @@
                                                        javax.xml.bind.annotation,
                                                        org.slf4j,
                                                        org.apache.catalina.filters,
-                                                       org.codehaus.jackson.jaxrs,
                                                        !org.codehaus.enunciate.jaxrs,
                                                        org.apache.felix.dm,
                                                        org.apache.commons.lang3.builder,
                                        <manifestLocation>${project.basedir}/src/main/resources/META-INF</manifestLocation>
                                </configuration>
                        </plugin>
-                       <plugin>
-                               <groupId>org.jacoco</groupId>
-                               <artifactId>jacoco-maven-plugin</artifactId>
-                               <version>${jacoco.version}</version>
-                               <configuration>
-                                       <includes>org.opendaylight.controller.*</includes>
-                               </configuration>
-                               <executions>
-                                       <execution>
-                                               <id>pre-test</id>
-                                               <goals>
-                                                       <goal>prepare-agent</goal>
-                                               </goals>
-                                       </execution>
-                                       <execution>
-                                               <id>post-test</id>
-                                               <phase>test</phase>
-                                               <goals>
-                                                       <goal>report</goal>
-                                               </goals>
-                                       </execution>
-                               </executions>
-                       </plugin>
                </plugins>
        </build>
        <dependencies>
                <dependency>
                        <groupId>org.opendaylight.controller</groupId>
                        <artifactId>sal</artifactId>
-                       <version>0.5.0-SNAPSHOT</version>
                </dependency>
                <dependency>
                        <groupId>org.opendaylight.controller</groupId>
                        <artifactId>containermanager</artifactId>
-                       <version>0.5.0-SNAPSHOT</version>
+                       <version>0.5.1-SNAPSHOT</version>
                </dependency>
                <dependency>
                        <groupId>org.opendaylight.controller</groupId>
                        <artifactId>commons.northbound</artifactId>
-                       <version>0.4.0-SNAPSHOT</version>
+                       <version>0.4.1-SNAPSHOT</version>
                </dependency>
 
                <dependency>
                        <groupId>org.opendaylight.controller.thirdparty</groupId>
                        <artifactId>com.sun.jersey.jersey-servlet</artifactId>
-                       <version>1.17-SNAPSHOT</version>
+                       <version>1.18-SNAPSHOT</version>
                </dependency>
 
                <dependency>
index b9b744c8b24cbaa78c1d9b613334ad4bb2612890..3daa29680ffa0863edae9f6bde3bf6705e5b03bc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -14,8 +14,6 @@ import java.util.Hashtable;
 import org.apache.felix.dm.Component;
 import org.opendaylight.controller.sal.core.ComponentActivatorAbstractBase;
 import org.opendaylight.lispflowmapping.interfaces.lisp.IFlowMapping;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  * Main application activator class for registering the dependencies and
@@ -25,11 +23,6 @@ import org.slf4j.LoggerFactory;
 
 public class Activator extends ComponentActivatorAbstractBase {
 
-    /*
-     * Logger instance
-     */
-    protected static final Logger logger = LoggerFactory.getLogger(Activator.class);
-
     /**
      * Function called when the activator starts just after some initializations
      * are done by the ComponentActivatorAbstractBase.
index bfffce8adbe6913d62c9c4a4be9a9233cebb40da..07ffc05d02fbc215b9716b921a3b2c9ce7929333 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * 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,
index 6e1716419e7f3ed82363c3bff6501d7f697f7ef1..bfc96b216dbde92becbecb52b07b8b8fa9591b61 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * 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,
index c70c7e417120d964cdf7b2611cb03cb2162df0df..1139ba96d38385264a353bef3e2cc19877a808ec 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * 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,
index 876d5f95cc8b6b70c3a96de674efa5e6ed8e3320..c781e89c405c3ce636d07cd35c6f29122ec1e83e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * 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,
@@ -48,8 +48,6 @@ import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.MapNotify;
 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.MapReply;
 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.eidtolocatorrecords.EidToLocatorRecord;
 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.lispaddress.LispAddressContainer;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.FrameworkUtil;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -77,22 +75,21 @@ public class LispMappingNorthbound implements ILispmappingNorthbound {
     }
 
     void setFlowMappingService(IFlowMapping mappingService) {
-        logger.debug("FlowMapping set in LispNorthbound");
+        logger.trace("FlowMapping set in LispNorthbound");
         this.mappingService = mappingService;
     }
 
     void unsetFlowMappingService(IFlowMapping mappingService) {
-        logger.debug("LispDAO was unset in LISP Northbound");
+        logger.trace("LispDAO was unset in LISP Northbound");
         this.mappingService = null;
     }
 
     public void init() {
-        logger.debug("LISP Northbound Service is initialized!");
+        logger.trace("LISP Northbound Service is initialized!");
     }
 
     public void start() {
         logger.info("LISP Northbound Service is up!");
-
     }
 
     public void stop() {
@@ -100,7 +97,7 @@ public class LispMappingNorthbound implements ILispmappingNorthbound {
     }
 
     public void destroy() {
-        logger.debug("LISP Northbound Service is destroyed!");
+        logger.trace("LISP Northbound Service is destroyed!");
         mappingService = null;
     }
 
index 23d92dcadbb052605853d67147d327027b194ff2..ca717d86c79277869065619cd93d1fd555bd88f5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * 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,
index 244bb73aa71894ae2f9d199bca754cba04fa678f..7412e42b04a902c291e9fac871d6c8d3aae8f35c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * 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,
index 61fc6c3f7881c7f5c859e1e8d424f05831256e75..3a84f98d95cacac2404a6f127b302dca6bb764ad 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * 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,
index 78a5981e62da984c4e802dcd94019231cc3f51b9..e9a551ff2c2c7b11490778e92aad89e0d0e87d2b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * 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,
index c54c57db0279ffb78d7e60ba1542555271074c9d..88b56919b3781e9f316e23578ff7d69ea70093e9 100644 (file)
                <url>https://wiki.opendaylight.org/view/OpenDaylight_Lisp_Flow_Mapping:Main</url>
                <tag>HEAD</tag>
        </scm>
-       <properties>
-               <!-- Sonar properties using jacoco to retrieve integration test results -->
-               <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
-               <sonar.jacoco.Reportpath>target/jacoco.exec</sonar.jacoco.Reportpath>
-               <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
-       </properties>
        <build>
                <plugins>
                        <plugin>
                                        </instructions>
                                </configuration>
                        </plugin>
-                       <plugin>
-        <groupId>org.jacoco</groupId>
-        <artifactId>jacoco-maven-plugin</artifactId>
-        <version>${jacoco.version}</version>
-        <configuration>
-          <includes>org.opendaylight.controller.*</includes>
-        </configuration>
-        <executions>
-          <execution>
-            <id>pre-test</id>
-            <goals>
-              <goal>prepare-agent</goal>
-            </goals>
-          </execution>
-          <execution>
-            <id>post-test</id>
-            <phase>test</phase>
-            <goals>
-              <goal>report</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
                </plugins>
        </build>
        <dependencies>
index f4c8760170ff0dc4b53585b24f20f2df3f2b5360..df364457482e62112ad2c778f41151cba1e5bc02 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -99,7 +99,7 @@ public class LispSouthboundPlugin extends AbstractBindingAwareProvider implement
                 socket = new DatagramSocket(new InetSocketAddress(bindingAddress, lispPortNumber));
                 socket.setSoTimeout(lispReceiveTimeout);
             } catch (SocketException e) {
-                logger.warn("Cannot open socket on UDP port " + lispPortNumber, e);
+                logger.error("Cannot open socket on UDP port " + lispPortNumber, e);
                 return;
             }
 
@@ -108,23 +108,24 @@ public class LispSouthboundPlugin extends AbstractBindingAwareProvider implement
                 DatagramPacket packet = new DatagramPacket(buffer, buffer.length);
                 try {
                     socket.receive(packet);
-                    logger.debug("Received a packet!");
+                    logger.trace("Received a packet!");
                 } catch (SocketTimeoutException ste) {
                     continue;
                 } catch (IOException e) {
-                    logger.error("IO Exception while trying to recieve packet", e);
+                    logger.warn("IO Exception while trying to recieve packet", e);
                 }
-                logger.debug("Handling packet from {}:{} (len={})", packet.getAddress().getHostAddress(), packet.getPort(), packet.getLength());
+                logger.trace(String.format("Handling packet from {%s}:{%d} (len={%d})", packet.getAddress().getHostAddress(), packet.getPort(),
+                        packet.getLength()));
 
                 try {
                     lispSouthboundService.handlePacket(packet);
                 } catch (Throwable t) {
-                    logger.error("Error while handling packet", t);
+                    logger.warn("Error while handling packet", t);
                 }
             }
 
             socket.close();
-            logger.info("Socket closed");
+            logger.trace("Socket closed");
             stillRunning = false;
         }
 
@@ -160,7 +161,7 @@ public class LispSouthboundPlugin extends AbstractBindingAwareProvider implement
                 lispSouthboundService = new LispSouthboundService();
                 registerWithOSGIConsole();
                 registerRPCs(session);
-                logger.debug("Provider Session initialized");
+                logger.trace("Provider Session initialized");
                 if (bindingAddress == null) {
                     setLispAddress("0.0.0.0");
                 }
@@ -184,7 +185,7 @@ public class LispSouthboundPlugin extends AbstractBindingAwareProvider implement
             ByteBuffer outBuffer = MapNotifySerializer.getInstance().serialize(mapNotify);
             handleSerializedLispBuffer(address, outBuffer, MAP_NOTIFY);
         } else {
-            logger.debug("MapNotify was null");
+            logger.warn("MapNotify was null");
         }
         return null;
     }
@@ -195,11 +196,11 @@ public class LispSouthboundPlugin extends AbstractBindingAwareProvider implement
         packet.setAddress(address);
         try {
             if (logger.isDebugEnabled()) {
-                logger.debug("Sending " + packetType + " on port " + LispMessage.PORT_NUM + " to address: " + address);
+                logger.trace("Sending " + packetType + " on port " + LispMessage.PORT_NUM + " to address: " + address);
             }
             socket.send(packet);
         } catch (IOException e) {
-            logger.error("Failed to send " + packetType, e);
+            logger.warn("Failed to send " + packetType, e);
         }
     }
 
@@ -209,7 +210,7 @@ public class LispSouthboundPlugin extends AbstractBindingAwareProvider implement
             ByteBuffer outBuffer = MapReplySerializer.getInstance().serialize(mapReply);
             handleSerializedLispBuffer(address, outBuffer, MAP_REPlY);
         } else {
-            logger.debug("MapReply was null");
+            logger.warn("MapReply was null");
         }
         return null;
     }
@@ -228,10 +229,10 @@ public class LispSouthboundPlugin extends AbstractBindingAwareProvider implement
     public void setLispAddress(String address) {
         synchronized (startLock) {
             if (bindingAddress != null && bindingAddress.equals(address)) {
-                logger.debug("configured lisp binding address didn't change.");
+                logger.trace("configured lisp binding address didn't change.");
             } else {
                 String action = (bindingAddress == null ? "Setting" : "Resetting");
-                logger.info(action + " lisp binding address to: " + address);
+                logger.trace(action + " lisp binding address to: " + address);
                 bindingAddress = address;
                 if (thread != null) {
                     thread.stopRunning();
@@ -239,7 +240,6 @@ public class LispSouthboundPlugin extends AbstractBindingAwareProvider implement
                         try {
                             Thread.sleep(500);
                         } catch (InterruptedException e) {
-                            e.printStackTrace();
                         }
                     }
                 }
index 774b433774f9fd10e231261cb9e7ff25725ceb04..7cc0c864833ffb22a4be371e60414252bcdb4b3e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index c287c29c53bd72a968c219c29601dbcfbfd13030..c27281a84ab6a37eceeb75b7dbed6ab307207404 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -53,16 +53,16 @@ public class LispSouthboundService implements ILispSouthboundService {
         ByteBuffer inBuffer = ByteBuffer.wrap(packet.getData(), 0, packet.getLength());
         Object lispType = LispMessageEnum.valueOf((byte) (ByteUtil.getUnsignedByte(inBuffer, LispMessage.Pos.TYPE) >> 4));
         if (lispType == LispMessageEnum.EncapsulatedControlMessage) {
-            logger.debug("Recieved packet of type EncapsulatedControlMessage");
+            logger.trace("Recieved packet of type EncapsulatedControlMessage");
             handleEncapsulatedControlMessage(inBuffer, packet.getAddress());
         } else if (lispType == LispMessageEnum.MapRequest) {
-            logger.debug("Recieved packet of type MapRequest");
+            logger.trace("Recieved packet of type MapRequest");
             handleMapRequest(inBuffer);
         } else if (lispType == LispMessageEnum.MapRegister) {
-            logger.debug("Recieved packet of type MapRegister");
+            logger.trace("Recieved packet of type MapRegister");
             handleMapRegister(inBuffer, packet.getAddress());
         }
-        logger.debug("Recieved unknown packet type");
+        logger.warn("Recieved unknown packet type");
     }
 
     private void handleEncapsulatedControlMessage(ByteBuffer inBuffer, InetAddress sourceAddress) {
@@ -106,9 +106,9 @@ public class LispSouthboundService implements ILispSouthboundService {
             requestMappingBuilder.setTransportAddress(transportAddressBuilder.build());
             if (notificationProvider != null) {
                 notificationProvider.publish(requestMappingBuilder.build());
-                logger.debug("MapRequest was published!");
+                logger.trace("MapRequest was published!");
             } else {
-                logger.error("Notification Provider is null!");
+                logger.warn("Notification Provider is null!");
             }
         } catch (RuntimeException re) {
             throw new LispMalformedPacketException("Couldn't deserialize Map-Request (len=" + inBuffer.capacity() + ")", re);
@@ -143,9 +143,9 @@ public class LispSouthboundService implements ILispSouthboundService {
             addMappingBuilder.setTransportAddress(transportAddressBuilder.build());
             if (notificationProvider != null) {
                 notificationProvider.publish(addMappingBuilder.build());
-                logger.debug("MapRegister was published!");
+                logger.trace("MapRegister was published!");
             } else {
-                logger.error("Notification Provider is null!");
+                logger.warn("Notification Provider is null!");
             }
         } catch (RuntimeException re) {
             throw new LispMalformedPacketException("Couldn't deserialize Map-Register (len=" + inBuffer.capacity() + ")", re);
index 1d173e623fd72b192913d25c0ee48c28ce4f1065..5198b155df469b8714b55558bf829f8db64cee06 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index a0fbacfdd88d0c6c635df5136181864e171fe448..d67d655c30dbb8d76ed4f742934d15f753af360e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
index 3689df5013bf90a0c4ffc45dde045f94992386ba..eb686b19d607b037d4378f1891215458baa9c1cf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Contextream, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Contextream, 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,
@@ -294,7 +294,6 @@ public class LispSouthboundServiceTest extends BaseTestCase {
         handleMapRegisterPacket(mapRegisterPacket);
 
         EidToLocatorRecord eidToLocator = lastMapRegister().getEidToLocatorRecord().get(0);
-        System.out.println(((Ipv4) LispAFIConvertor.toAFI(eidToLocator.getLispAddressContainer())).getIpv4Address().getValue());
         assertEquals(getIP("153.16.254.1"), LispAFIConvertor.toAFI(eidToLocator.getLispAddressContainer()));
 
         assertEquals(1, eidToLocator.getLocatorRecord().size());
@@ -472,8 +471,6 @@ public class LispSouthboundServiceTest extends BaseTestCase {
 
         handleMapRequestAsByteArray(mapRequestPacket);
         assertEquals(getIPV6("2610:d0:ffff:192:0:0:0:1"), LispAFIConvertor.toAFI(lastMapRequest().getSourceEid().getLispAddressContainer()));
-        System.out.println(((Ipv6) LispAFIConvertor.toAFI(lastMapRequest().getEidRecord().get(0).getLispAddressContainer())).getIpv6Address()
-                .getValue());
         assertEquals(getIPV6("2610:d0:ffff:192:0:0:0:2"), LispAFIConvertor.toAFI(lastMapRequest().getEidRecord().get(0).getLispAddressContainer()));
     }
 
diff --git a/pom.xml b/pom.xml
new file mode 100644 (file)
index 0000000..b78fd28
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,62 @@
+<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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.opendaylight.lispflowmapping</groupId>
+    <artifactId>lispflowmapping-commons</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <relativePath>commons/parent</relativePath>
+  </parent>
+
+  <artifactId>lispflowmapping-all</artifactId>
+  <packaging>pom</packaging>
+  <name>LISP Flow Mapping All modules</name>
+
+  <scm>
+    <connection>scm:git:https://git.opendaylight.org/gerrit/p/lispflowmapping.git</connection>
+    <developerConnection>scm:git:ssh://git.opendaylight.org:29418/lispflowmapping.git</developerConnection>
+    <url>https://wiki.opendaylight.org/view/OpenDaylight_Lisp_Flow_Mapping:Main</url>
+    <tag>HEAD</tag>
+  </scm>
+
+  <modules>
+    <module>commons/parent</module>
+    <module>commons/build_tools</module>
+    <module>commons/code-parent</module>
+    <module>commons/unittest_tools</module>
+    <module>mappingservice</module>
+  </modules>
+
+  <build>
+    <resources>
+      <resource>
+        <directory>${basedir}/src/main/resources</directory>
+      </resource>
+      <resource>
+        <directory>${project.build.directory}/generated-resources</directory>
+        <filtering>true</filtering>
+      </resource>
+    </resources>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>unpack-shared-resources</id>
+            <goals>
+              <goal>unpack-dependencies</goal>
+            </goals>
+            <phase>generate-resources</phase>
+            <configuration>
+             <outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
+             <excludeTransitive>true</excludeTransitive>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>