Bumping netty dependency versions to 4.1.5.Final.

Including test fixes.

Few more places referencing atomix version

Change-Id: I48fb8fa255624a86ae12117845603f7d53f1c29e
diff --git a/core/store/dist/BUCK b/core/store/dist/BUCK
index b5db3b8..0e4731e 100644
--- a/core/store/dist/BUCK
+++ b/core/store/dist/BUCK
@@ -8,6 +8,7 @@
     '//lib:netty-buffer',
     '//lib:netty-handler',
     '//lib:netty-transport-native-epoll',
+    '//lib:netty-resolver',
     '//lib:commons-math3',
     '//incubator/api:onos-incubator-api',
 ]
diff --git a/core/store/dist/pom.xml b/core/store/dist/pom.xml
index 8cff6ad..64ad934 100644
--- a/core/store/dist/pom.xml
+++ b/core/store/dist/pom.xml
@@ -100,20 +100,28 @@
         <dependency>
             <groupId>io.netty</groupId>
             <artifactId>netty-transport</artifactId>
+            <version>${netty4.version}</version>
         </dependency>
         <dependency>
             <groupId>io.netty</groupId>
             <artifactId>netty-codec</artifactId>
+            <version>${netty4.version}</version>
         </dependency>
         <dependency>
             <groupId>io.netty</groupId>
             <artifactId>netty-handler</artifactId>
+            <version>${netty4.version}</version>
         </dependency>
         <dependency>
             <groupId>io.netty</groupId>
             <artifactId>netty-transport-native-epoll</artifactId>
             <version>${netty4.version}</version>
         </dependency>
+        <dependency>
+            <groupId>io.netty</groupId>
+            <artifactId>netty-resolver</artifactId>
+            <version>${netty4.version}</version>
+        </dependency>
     </dependencies>
 
 </project>
diff --git a/core/store/primitives/BUCK b/core/store/primitives/BUCK
index 6fa9630..0758c3e 100644
--- a/core/store/primitives/BUCK
+++ b/core/store/primitives/BUCK
@@ -14,6 +14,7 @@
     '//lib:netty-handler',
     '//lib:netty-buffer',
     '//lib:netty-codec',
+    '//lib:netty-resolver',
 
 ]
 
diff --git a/core/store/primitives/pom.xml b/core/store/primitives/pom.xml
index 0c60c4c..6ae0cf6 100644
--- a/core/store/primitives/pom.xml
+++ b/core/store/primitives/pom.xml
@@ -70,18 +70,18 @@
         <dependency>
             <groupId>io.atomix</groupId>
             <artifactId>atomix</artifactId>
-            <version>1.0.0-rc9</version>
+            <version>1.0.0</version>
         </dependency>
 
         <dependency>
             <groupId>io.atomix.catalyst</groupId>
             <artifactId>catalyst-netty</artifactId>
-            <version>1.1.1</version>
+            <version>1.1.2</version>
         </dependency>
         <dependency>
             <groupId>io.atomix.catalyst</groupId>
             <artifactId>catalyst-transport</artifactId>
-            <version>1.1.1</version>
+            <version>1.1.2</version>
         </dependency>
         <dependency>
             <groupId>org.onosproject</groupId>
diff --git a/features/BUCK b/features/BUCK
index d249509..48e64de 100644
--- a/features/BUCK
+++ b/features/BUCK
@@ -15,6 +15,7 @@
     '//lib:netty-handler',
     '//lib:netty-codec',
     '//lib:netty-transport-native-epoll',
+    '//lib:netty-resolver',
     '//lib:commons-pool',
     '//lib:commons-math3',
     '//lib:joda-time',
diff --git a/features/features.xml b/features/features.xml
index d570e01..5e32db7 100644
--- a/features/features.xml
+++ b/features/features.xml
@@ -25,12 +25,13 @@
         <bundle>mvn:commons-configuration/commons-configuration/1.10</bundle>
         <bundle>mvn:com.google.guava/guava/19.0</bundle>
         <bundle>mvn:io.netty/netty/3.10.5.Final</bundle>
-        <bundle>mvn:io.netty/netty-common/4.0.40.Final</bundle>
-        <bundle>mvn:io.netty/netty-buffer/4.0.40.Final</bundle>
-        <bundle>mvn:io.netty/netty-transport/4.0.40.Final</bundle>
-        <bundle>mvn:io.netty/netty-handler/4.0.40.Final</bundle>
-        <bundle>mvn:io.netty/netty-codec/4.0.40.Final</bundle>
-        <bundle>mvn:io.netty/netty-transport-native-epoll/4.0.40.Final</bundle>
+        <bundle>mvn:io.netty/netty-common/4.1.5.Final</bundle>
+        <bundle>mvn:io.netty/netty-buffer/4.1.5.Final</bundle>
+        <bundle>mvn:io.netty/netty-transport/4.1.5.Final</bundle>
+        <bundle>mvn:io.netty/netty-handler/4.1.5.Final</bundle>
+        <bundle>mvn:io.netty/netty-codec/4.1.5.Final</bundle>
+        <bundle>mvn:io.netty/netty-transport-native-epoll/4.1.5.Final</bundle>
+        <bundle>mvn:io.netty/netty-resolver/4.1.5.Final</bundle>
         <bundle>mvn:commons-pool/commons-pool/1.6</bundle>
         <bundle>mvn:org.apache.commons/commons-math3/3.6.1</bundle>
 
@@ -56,7 +57,7 @@
         <bundle>mvn:com.typesafe/config/1.2.1</bundle>
         <bundle>mvn:com.googlecode.concurrent-trees/concurrent-trees/2.6.0</bundle>
         <bundle>mvn:commons-io/commons-io/2.4</bundle>
-        <bundle>mvn:io.atomix/atomix-all/1.0.0-rc9</bundle>
+        <bundle>mvn:io.atomix/atomix-all/1.0.0</bundle>
 
         <bundle>mvn:org.glassfish.jersey.core/jersey-client/2.25</bundle>
 
diff --git a/lib/BUCK b/lib/BUCK
index f772284..f54426d 100644
--- a/lib/BUCK
+++ b/lib/BUCK
@@ -1,4 +1,4 @@
-# ***** This file was auto-generated at Wed Jan 18 10:15:14 PST 2017. Do not edit this file manually. *****
+# ***** This file was auto-generated at Fri Jan 20 11:48:05 PST 2017. Do not edit this file manually. *****
 osgi_feature_group(
   name = 'COMPILE',
   visibility = ['PUBLIC'],
@@ -137,10 +137,10 @@
 
 remote_jar (
   name = 'atomix',
-  out = 'atomix-all-1.0.0-rc9.jar',
-  url = 'mvn:io.atomix:atomix-all:jar:1.0.0-rc9',
-  sha1 = '05a5ff76bba888856416b3132e1c45626f0fcaaf',
-  maven_coords = 'io.atomix:atomix-all:1.0.0-rc9',
+  out = 'atomix-all-1.0.0.jar',
+  url = 'mvn:io.atomix:atomix-all:jar:1.0.0',
+  sha1 = '1a1074eeb84b416a8ef032dabfe2f6a201978630',
+  maven_coords = 'io.atomix:atomix-all:1.0.0',
   visibility = [ 'PUBLIC' ],
 )
 
@@ -740,82 +740,91 @@
 
 remote_jar (
   name = 'netty-buffer',
-  out = 'netty-buffer-4.0.40.Final.jar',
-  url = 'mvn:io.netty:netty-buffer:jar:4.0.40.Final',
-  sha1 = '9ccf9a1130dbb4a4142febd5d6f68c735a7a059b',
-  maven_coords = 'io.netty:netty-buffer:4.0.40.Final',
+  out = 'netty-buffer-4.1.5.Final.jar',
+  url = 'mvn:io.netty:netty-buffer:jar:4.1.5.Final',
+  sha1 = 'b5fb6bccda4d63d4a74c9faccdf32f77ab66abc1',
+  maven_coords = 'io.netty:netty-buffer:4.1.5.Final',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'netty-codec',
-  out = 'netty-codec-4.0.40.Final.jar',
-  url = 'mvn:io.netty:netty-codec:jar:4.0.40.Final',
-  sha1 = 'f6ad91e4884b47c3e7e5faa3732b06e317ab82e1',
-  maven_coords = 'io.netty:netty-codec:4.0.40.Final',
+  out = 'netty-codec-4.1.5.Final.jar',
+  url = 'mvn:io.netty:netty-codec:jar:4.1.5.Final',
+  sha1 = '66bbf9324fa36467d041083f89328e2a24ec4f67',
+  maven_coords = 'io.netty:netty-codec:4.1.5.Final',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'netty-common',
-  out = 'netty-common-4.0.40.Final.jar',
-  url = 'mvn:io.netty:netty-common:jar:4.0.40.Final',
-  sha1 = 'ef08d9d6fa46f6a937e7a9934030df16f38978ae',
-  maven_coords = 'io.netty:netty-common:4.0.40.Final',
+  out = 'netty-common-4.1.5.Final.jar',
+  url = 'mvn:io.netty:netty-common:jar:4.1.5.Final',
+  sha1 = '607f8433d8782445e72abe34e43a7e57e86a5e6c',
+  maven_coords = 'io.netty:netty-common:4.1.5.Final',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'netty-handler',
-  out = 'netty-handler-4.0.40.Final.jar',
-  url = 'mvn:io.netty:netty-handler:jar:4.0.40.Final',
-  sha1 = '1d283fea961c27190a520fc841148715f5569a8a',
-  maven_coords = 'io.netty:netty-handler:4.0.40.Final',
+  out = 'netty-handler-4.1.5.Final.jar',
+  url = 'mvn:io.netty:netty-handler:jar:4.1.5.Final',
+  sha1 = '6262900ee9487e62560030a136160df953b1cd6b',
+  maven_coords = 'io.netty:netty-handler:4.1.5.Final',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'netty-transport',
-  out = 'netty-transport-4.0.40.Final.jar',
-  url = 'mvn:io.netty:netty-transport:jar:4.0.40.Final',
-  sha1 = 'ad6890b272eea75185252c85c2927752e221764d',
-  maven_coords = 'io.netty:netty-transport:4.0.40.Final',
+  out = 'netty-transport-4.1.5.Final.jar',
+  url = 'mvn:io.netty:netty-transport:jar:4.1.5.Final',
+  sha1 = '37126b370722ff9631ee13c91139aacec0a71d1d',
+  maven_coords = 'io.netty:netty-transport:4.1.5.Final',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'netty-transport-native-epoll',
-  out = 'netty-transport-native-epoll-4.0.40.Final.jar',
-  url = 'mvn:io.netty:netty-transport-native-epoll:jar:4.0.40.Final',
-  sha1 = 'd9cb62e87b207ac0e9913023f404b42987671d56',
-  maven_coords = 'io.netty:netty-transport-native-epoll:4.0.40.Final',
+  out = 'netty-transport-native-epoll-4.1.5.Final.jar',
+  url = 'mvn:io.netty:netty-transport-native-epoll:jar:4.1.5.Final',
+  sha1 = 'fa367ea8a375f236f4adeef1ac769d2d91dde1d1',
+  maven_coords = 'io.netty:netty-transport-native-epoll:4.1.5.Final',
+  visibility = [ 'PUBLIC' ],
+)
+
+remote_jar (
+  name = 'netty-resolver',
+  out = 'netty-resolver-4.1.5.Final.jar',
+  url = 'mvn:io.netty:netty-resolver:jar:4.1.5.Final',
+  sha1 = '5f367bedcdc185a727fda3296b9a18014cdc22c4',
+  maven_coords = 'io.netty:netty-resolver:4.1.5.Final',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'catalyst-concurrent',
-  out = 'catalyst-concurrent-1.1.1.jar',
-  url = 'mvn:io.atomix.catalyst:catalyst-concurrent:jar:1.1.1',
-  sha1 = 'a7f3499b9815d83f65137abe0146238e447514c7',
-  maven_coords = 'io.atomix.catalyst:catalyst-concurrent:1.1.1',
+  out = 'catalyst-concurrent-1.1.2.jar',
+  url = 'mvn:io.atomix.catalyst:catalyst-concurrent:jar:1.1.2',
+  sha1 = 'f7323bc5a1ebfd4710574cf5485956c949eec20b',
+  maven_coords = 'io.atomix.catalyst:catalyst-concurrent:1.1.2',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'catalyst-netty',
-  out = 'catalyst-netty-1.1.1.jar',
-  url = 'mvn:io.atomix.catalyst:catalyst-netty:jar:1.1.1',
-  sha1 = '8e9e5e6d8fdf01be26aa8a8eb07f762f5f4d4eb4',
-  maven_coords = 'io.atomix.catalyst:catalyst-netty:1.1.1',
+  out = 'catalyst-netty-1.1.2.jar',
+  url = 'mvn:io.atomix.catalyst:catalyst-netty:jar:1.1.2',
+  sha1 = '3072b53b1a6c0686ceccff3d371f8ea8aa28a273',
+  maven_coords = 'io.atomix.catalyst:catalyst-netty:1.1.2',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'catalyst-transport',
-  out = 'catalyst-transport-1.1.1.jar',
-  url = 'mvn:io.atomix.catalyst:catalyst-transport:jar:1.1.1',
-  sha1 = '2b38cb9ee3b5817b017072a886006461824d00c6',
-  maven_coords = 'io.atomix.catalyst:catalyst-transport:1.1.1',
+  out = 'catalyst-transport-1.1.2.jar',
+  url = 'mvn:io.atomix.catalyst:catalyst-transport:jar:1.1.2',
+  sha1 = '4a50b74deb6601d7fdca34e873a016c83db7bebf',
+  maven_coords = 'io.atomix.catalyst:catalyst-transport:1.1.2',
   visibility = [ 'PUBLIC' ],
 )
 
diff --git a/lib/deps.json b/lib/deps.json
index d44f30c..4f162b3 100644
--- a/lib/deps.json
+++ b/lib/deps.json
@@ -90,7 +90,7 @@
     "aopalliance-repackaged": "mvn:org.glassfish.hk2.external:aopalliance-repackaged:2.5.0-b30",
     "amqp-client": "mvn:com.rabbitmq:amqp-client:jar:3.6.1",
     "asm": "mvn:org.ow2.asm:asm:5.0.4",
-    "atomix": "mvn:io.atomix:atomix-all:1.0.0-rc9",
+    "atomix": "mvn:io.atomix:atomix-all:1.0.0",
     "commons-codec": "mvn:commons-codec:commons-codec:1.10",
     "commons-collections": "mvn:commons-collections:commons-collections:3.2.2",
     "commons-configuration": "mvn:commons-configuration:commons-configuration:1.10",
@@ -157,15 +157,16 @@
     "minimal-json": "mvn:com.eclipsesource.minimal-json:minimal-json:0.9.4",
     "minlog": "mvn:com.esotericsoftware:minlog:1.3.0",
     "netty": "mvn:io.netty:netty:3.10.5.Final",
-    "netty-buffer": "mvn:io.netty:netty-buffer:4.0.40.Final",
-    "netty-codec": "mvn:io.netty:netty-codec:4.0.40.Final",
-    "netty-common": "mvn:io.netty:netty-common:4.0.40.Final",
-    "netty-handler": "mvn:io.netty:netty-handler:4.0.40.Final",
-    "netty-transport": "mvn:io.netty:netty-transport:4.0.40.Final",
-    "netty-transport-native-epoll": "mvn:io.netty:netty-transport-native-epoll:4.0.40.Final",
-    "catalyst-concurrent": "mvn:io.atomix.catalyst:catalyst-concurrent:1.1.1",
-    "catalyst-netty": "mvn:io.atomix.catalyst:catalyst-netty:1.1.1",
-    "catalyst-transport": "mvn:io.atomix.catalyst:catalyst-transport:1.1.1",
+    "netty-buffer": "mvn:io.netty:netty-buffer:4.1.5.Final",
+    "netty-codec": "mvn:io.netty:netty-codec:4.1.5.Final",
+    "netty-common": "mvn:io.netty:netty-common:4.1.5.Final",
+    "netty-handler": "mvn:io.netty:netty-handler:4.1.5.Final",
+    "netty-transport": "mvn:io.netty:netty-transport:4.1.5.Final",
+    "netty-transport-native-epoll": "mvn:io.netty:netty-transport-native-epoll:4.1.5.Final",
+    "netty-resolver": "mvn:io.netty:netty-resolver:4.1.5.Final",
+    "catalyst-concurrent": "mvn:io.atomix.catalyst:catalyst-concurrent:1.1.2",
+    "catalyst-netty": "mvn:io.atomix.catalyst:catalyst-netty:1.1.2",
+    "catalyst-transport": "mvn:io.atomix.catalyst:catalyst-transport:1.1.2",
     "objenesis": "mvn:org.objenesis:objenesis:2.2",
     "openflowj": "mvn:org.onosproject:openflowj:0.9.7.onos",
     "org.apache.felix.scr": "mvn:org.apache.felix:org.apache.felix.scr:1.8.2",
diff --git a/lib/pom.xml b/lib/pom.xml
index 49bda35..c2643e3 100644
--- a/lib/pom.xml
+++ b/lib/pom.xml
@@ -41,7 +41,7 @@
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <onos-build-conf.version>1.3</onos-build-conf.version>
-        <netty4.version>4.0.40.Final</netty4.version>
+        <netty4.version>4.1.5.Final</netty4.version>
         <openflowj.version>0.9.7.onos</openflowj.version>
         <onos-maven-plugin.version>1.10</onos-maven-plugin.version>
         <osgi.version>5.0.0</osgi.version>
@@ -328,6 +328,12 @@
             </dependency>
 
             <dependency>
+                <groupId>io.netty</groupId>
+                <artifactId>netty-resolver</artifactId>
+                <version>${netty4.version}</version>
+            </dependency>
+
+            <dependency>
                 <groupId>joda-time</groupId>
                 <artifactId>joda-time</artifactId>
                 <version>2.9.3</version>
diff --git a/protocols/lisp/ctl/BUCK b/protocols/lisp/ctl/BUCK
index 447eeb4..2888a88 100644
--- a/protocols/lisp/ctl/BUCK
+++ b/protocols/lisp/ctl/BUCK
@@ -6,7 +6,8 @@
     '//lib:netty-codec',
     '//lib:netty-transport',
     '//lib:netty-transport-native-epoll',
-    '//lib:netty-handler'
+    '//lib:netty-handler',
+    '//lib:netty-resolver',
 ]
 
 TEST_DEPS = [
diff --git a/protocols/lisp/ctl/src/test/java/org/onosproject/lisp/ctl/impl/ChannelAdapter.java b/protocols/lisp/ctl/src/test/java/org/onosproject/lisp/ctl/impl/ChannelAdapter.java
index ebed442..22e7efe 100644
--- a/protocols/lisp/ctl/src/test/java/org/onosproject/lisp/ctl/impl/ChannelAdapter.java
+++ b/protocols/lisp/ctl/src/test/java/org/onosproject/lisp/ctl/impl/ChannelAdapter.java
@@ -19,6 +19,7 @@
 import io.netty.channel.Channel;
 import io.netty.channel.ChannelConfig;
 import io.netty.channel.ChannelFuture;
+import io.netty.channel.ChannelId;
 import io.netty.channel.ChannelPipeline;
 import io.netty.channel.ChannelPromise;
 import io.netty.channel.ChannelProgressivePromise;
@@ -34,6 +35,11 @@
  */
 public class ChannelAdapter implements Channel {
     @Override
+    public ChannelId id() {
+        return null;
+    }
+
+    @Override
     public EventLoop eventLoop() {
         return null;
     }
@@ -89,6 +95,16 @@
     }
 
     @Override
+    public long bytesBeforeUnwritable() {
+        return 0;
+    }
+
+    @Override
+    public long bytesBeforeWritable() {
+        return 0;
+    }
+
+    @Override
     public Unsafe unsafe() {
         return null;
     }
@@ -224,6 +240,11 @@
     }
 
     @Override
+    public <T> boolean hasAttr(AttributeKey<T> key) {
+        return false;
+    }
+
+    @Override
     public int compareTo(Channel o) {
         return 0;
     }
diff --git a/protocols/lisp/ctl/src/test/java/org/onosproject/lisp/ctl/impl/ChannelHandlerContextAdapter.java b/protocols/lisp/ctl/src/test/java/org/onosproject/lisp/ctl/impl/ChannelHandlerContextAdapter.java
index b76c7e6..f288b1b 100644
--- a/protocols/lisp/ctl/src/test/java/org/onosproject/lisp/ctl/impl/ChannelHandlerContextAdapter.java
+++ b/protocols/lisp/ctl/src/test/java/org/onosproject/lisp/ctl/impl/ChannelHandlerContextAdapter.java
@@ -234,4 +234,9 @@
     public <T> Attribute<T> attr(AttributeKey<T> attributeKey) {
         return null;
     }
+
+    @Override
+    public <T> boolean hasAttr(AttributeKey<T> key) {
+        return false;
+    }
 }
diff --git a/protocols/lisp/ctl/src/test/java/org/onosproject/lisp/ctl/impl/LispMessageAdapter.java b/protocols/lisp/ctl/src/test/java/org/onosproject/lisp/ctl/impl/LispMessageAdapter.java
index 24a4602..a019677 100644
--- a/protocols/lisp/ctl/src/test/java/org/onosproject/lisp/ctl/impl/LispMessageAdapter.java
+++ b/protocols/lisp/ctl/src/test/java/org/onosproject/lisp/ctl/impl/LispMessageAdapter.java
@@ -45,7 +45,7 @@
 
     @Override
     public InetSocketAddress getSender() {
-        return null;
+        return new InetSocketAddress(1);
     }
 
     @Override