BUG-4692: Migrate TCP-MD5 support in concepts package to netty's native-epoll 97/36097/24
authorOm Prakash <op317q@att.com>
Mon, 23 May 2016 17:13:57 +0000 (13:13 -0400)
committerMilos Fabian <milfabia@cisco.com>
Wed, 25 May 2016 21:42:22 +0000 (21:42 +0000)
The reason for migration is that TCP-MD5 are part of the netty library so There is no need to inject any md5 config modules.
This will require upgrade Netty 4.0.33.Final -> 4.0.36.Final and Added new rfc2385.yang and KeyMapping for md5 key as base changes.
this base changes will be extended to other module like pcep,bgp and pcc-mock for the migration.

Change-Id: I13ce392759cadb569ffed37fcee8e7095bbcc2e7
Signed-off-by: Om Prakash <op317q@att.com>
concepts/src/main/java/org/opendaylight/protocol/concepts/KeyMapping.java [new file with mode: 0644]
concepts/src/main/yang/rfc2385.yang [new file with mode: 0644]
parent/pom.xml

diff --git a/concepts/src/main/java/org/opendaylight/protocol/concepts/KeyMapping.java b/concepts/src/main/java/org/opendaylight/protocol/concepts/KeyMapping.java
new file mode 100644 (file)
index 0000000..dc28dbd
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2016 AT&T Services, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.protocol.concepts;
+
+import java.net.InetAddress;
+import java.util.HashMap;
+import java.util.Map;
+
+public final class KeyMapping extends HashMap<InetAddress, byte[]> {
+    private static final long serialVersionUID = 1L;
+
+    public KeyMapping() {
+        super();
+    }
+
+    public KeyMapping(final int initialCapacity, final float loadFactor) {
+        super(initialCapacity, loadFactor);
+    }
+
+    public KeyMapping(final int initialCapacity) {
+        super(initialCapacity);
+    }
+
+    public KeyMapping(final Map<? extends InetAddress, ? extends byte[]> m) {
+        super(m);
+    }
+}
diff --git a/concepts/src/main/yang/rfc2385.yang b/concepts/src/main/yang/rfc2385.yang
new file mode 100644 (file)
index 0000000..9912144
--- /dev/null
@@ -0,0 +1,35 @@
+// Contents of "rfc2385"
+module rfc2385 {
+    yang-version 1;
+    namespace "urn:opendaylight:params:xml:ns:yang:controller:rfc2385:cfg";
+    prefix "rfc2385";
+
+    organization "AT&T Services, Inc.";
+
+    contact "Om Prakash <op317q@att.com>";
+
+    description
+        "This module contains the base YANG definitions for
+         Netty Epoll Signature option.
+
+        Copyright (c)2016 AT&T Services, Inc. All rights reserved.;
+
+        This program and the accompanying materials are made available
+        under the terms of the Eclipse Public License v1.0 which
+        accompanies this distribution, and is available at
+        http://www.eclipse.org/legal/epl-v10.html";
+
+    revision "2016-03-24" {
+        description
+            "Initial revision";
+    }
+
+
+    typedef rfc2385-key {
+        reference "https://tools.ietf.org/html/rfc2385#section-4.5";
+        type string {
+            length 1..80;
+        }
+    }
+
+}
index 8ce26df777e8a0b07d0378c5e7b1e7a2b2c28685..f0d50efad9bbeba2c21a4c537e72e3198fb00c0f 100644 (file)
@@ -60,6 +60,9 @@
         <!-- TCP-MD5 artifacts -->
         <tcpmd5.version>1.3.0-SNAPSHOT</tcpmd5.version>
 
+        <!-- EPOLL artifacts -->
+        <os.detected.classifier>linux-x86_64</os.detected.classifier>
+
         <bgpcep.version>0.6.0-SNAPSHOT</bgpcep.version>
     </properties>