Bump jvpp version to 19.01-SNAPSHOT 76/15376/5
authorMichal Cmarada <[email protected]>
Mon, 12 Nov 2018 12:35:06 +0000 (13:35 +0100)
committerMichal Cmarada <[email protected]>
Mon, 12 Nov 2018 12:35:06 +0000 (13:35 +0100)
Also sets version of VPP package dependencies to 19.01.
 - fixes several changes made in VPP API

Change-Id: Icca406f414bce30745026573c78a69eea09dc566
Signed-off-by: Michal Cmarada <[email protected]>
18 files changed:
acl/acl-impl/pom.xml
ioam/impl/pom.xml
it/api-coverage/pom.xml
it/jvpp-benchmark/pom.xml
jvpp/common.sh
jvpp/version
nat/nat2vpp/pom.xml
nsh/impl/pom.xml
packaging/deb/common/vpp_dependencies
packaging/rpm/vpp_dependencies
release-notes/pom.xml
v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfacesstate/InterfaceDataTranslator.java
v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/l2/ArpTerminationTableEntryCustomizer.java
v3po/v3po2vpp/src/test/java/io/fd/hc2vpp/v3po/l2/ArpTerminationTableEntryCustomizerTest.java
vpp-common/vpp-common-integration/pom.xml
vpp-common/vpp-impl-parent/pom.xml
vpp-integration/api-docs/core/pom.xml
vpp-integration/api-docs/scripts/pom.xml

index 4a742b1..6eaccbb 100644 (file)
@@ -30,7 +30,7 @@
     <version>1.19.01-SNAPSHOT</version>
 
     <properties>
-        <jvpp.acl.version>18.10-SNAPSHOT</jvpp.acl.version>
+        <jvpp.acl.version>19.01-SNAPSHOT</jvpp.acl.version>
     </properties>
 
     <dependencies>
index 5186c14..21e7728 100644 (file)
@@ -30,8 +30,8 @@
   <packaging>bundle</packaging>
 
   <properties>
-    <ioam.version>18.10-SNAPSHOT</ioam.version>
-    <jvpp.version>18.10-SNAPSHOT</jvpp.version>
+    <ioam.version>19.01-SNAPSHOT</ioam.version>
+    <jvpp.version>19.01-SNAPSHOT</jvpp.version>
   </properties>
 
   <dependencies>
index e24e85b..2538d13 100644 (file)
@@ -32,7 +32,7 @@
     <name>${project.artifactId}</name>
 
     <properties>
-        <jvpp.version>18.10-SNAPSHOT</jvpp.version>
+        <jvpp.version>19.01-SNAPSHOT</jvpp.version>
     </properties>
 
     <dependencies>
index 0bee9c1..46cf29c 100644 (file)
@@ -33,7 +33,7 @@
 
     <properties>
         <jmh.version>1.21</jmh.version>
-        <jvpp.version>18.10-SNAPSHOT</jvpp.version>
+        <jvpp.version>19.01-SNAPSHOT</jvpp.version>
     </properties>
 
     <dependencies>
index 1f883b1..e71f867 100755 (executable)
@@ -9,7 +9,7 @@ function install_jvpp_jar {
   jarfile=$1
   version=$2
 
-  # Filename (includes version suffix), e.g. jvpp-core-18.10
+  # Filename (includes version suffix), e.g. jvpp-core-19.01
   basefile=$(basename -s .jar "$jarfile")
 
   # Remove version suffix
index bb00bde..12d5e4b 100755 (executable)
@@ -5,4 +5,4 @@
 #
 # Version should match the one used in pom files.
 #
-echo 18.10-SNAPSHOT
+echo 19.01-SNAPSHOT
index 7e417a0..aeb31d4 100644 (file)
@@ -53,7 +53,7 @@
         <dependency>
             <groupId>io.fd.vpp</groupId>
             <artifactId>jvpp-nat</artifactId>
-            <version>18.10-SNAPSHOT</version>
+            <version>19.01-SNAPSHOT</version>
         </dependency>
 
         <!-- Honeycomb infrastructure-->
index fe0587a..ec0c19f 100644 (file)
     <dependency>
         <groupId>io.fd.vpp</groupId>
         <artifactId>jvpp-registry</artifactId>
-        <version>18.10-SNAPSHOT</version>
+        <version>19.01-SNAPSHOT</version>
     </dependency>
     <dependency>
         <groupId>io.fd.vpp</groupId>
         <artifactId>jvpp-nsh</artifactId>
-        <version>18.10-SNAPSHOT</version>
+        <version>19.01-SNAPSHOT</version>
     </dependency>
     <dependency>
       <groupId>io.fd.hc2vpp.common</groupId>
index bb2e3c7..2f59925 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 # defines vpp and vpp-plugins dependencies for debian packages
 # using range
-echo "vpp (>= 18.10), vpp (<< 18.11), vpp-plugins (>= 18.10), vpp-plugins (<< 18.11)"
+echo "vpp (>= 19.01), vpp (<< 19.02), vpp-plugins (>= 19.01), vpp-plugins (<< 19.02)"
 # or specific vpp version
-#echo "vpp (= 18.10-rc1), vpp-plugins (= 18.10-rc1)"
+#echo "vpp (= 19.01-rc1), vpp-plugins (= 19.01-rc1)"
index 83421ef..dda10e9 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 # defines vpp and vpp-plugins dependencies for rpm packages
 # using range
-echo "vpp >= 18.10, vpp < 18.11, vpp-plugins >= 18.10, vpp-plugins < 18.11"
+echo "vpp >= 19.01, vpp < 19.02, vpp-plugins >= 19.01, vpp-plugins < 19.02"
 # or specific vpp version
-#echo "vpp = 18.10-rc1, vpp-plugins = 18.10-rc1"
+#echo "vpp = 19.01-rc1, vpp-plugins = 19.01-rc1"
index 460356d..467daa0 100644 (file)
                 <project-version-in-jira>11601</project-version-in-jira>
                 <project-branch>master</project-branch>
                 <project-odl-version>oxygen</project-odl-version>
-                <project-vpp-version>18.10</project-vpp-version>
+                <project-vpp-version>19.01</project-vpp-version>
                 <!-- TODO set snapshot version to project-vpp-version after VPP is released-->
-                <!--<project-vpp-snapshot-version>18.10</project-vpp-snapshot-version>-->
-                <project-vpp-snapshot-version>18.10-SNAPSHOT</project-vpp-snapshot-version>
-                <project-nat-version>18.10</project-nat-version>
+                <!--<project-vpp-snapshot-version>19.01</project-vpp-snapshot-version>-->
+                <project-vpp-snapshot-version>19.01-SNAPSHOT</project-vpp-snapshot-version>
+                <project-nat-version>19.01</project-nat-version>
                 <!-- TODO set snapshot version to project-nat-version after VPP is released-->
-                <!--<project-nat-snapshot-version>18.10</project-nat-snapshot-version>-->
-                <project-nat-snapshot-version>18.10-SNAPSHOT</project-nat-snapshot-version>
+                <!--<project-nat-snapshot-version>19.01</project-nat-snapshot-version>-->
+                <project-nat-snapshot-version>19.01-SNAPSHOT</project-nat-snapshot-version>
                 <project-git-web>https://git.fd.io/cgit/hc2vpp/tree</project-git-web>
                 <project-infra-git-web>https://git.fd.io/cgit/honeycomb/tree</project-infra-git-web>
               </attributes>
index 188f83d..666fa31 100644 (file)
@@ -49,42 +49,19 @@ public interface InterfaceDataTranslator extends ByteDataTranslator, JvppReplyCo
     InterfaceDataTranslator INSTANCE = new InterfaceDataTranslator() {
     };
 
-    Gauge64 vppLinkSpeed0 = new Gauge64(BigInteger.ZERO);
-    Gauge64 vppLinkSpeed1 = new Gauge64(BigInteger.valueOf(10L * 1000000));
-    Gauge64 vppLinkSpeed2 = new Gauge64(BigInteger.valueOf(100L * 1000000));
-    Gauge64 vppLinkSpeed4 = new Gauge64(BigInteger.valueOf(1000L * 1000000));
-    Gauge64 vppLinkSpeed8 = new Gauge64(BigInteger.valueOf(10000L * 1000000));
-    Gauge64 vppLinkSpeed16 = new Gauge64(BigInteger.valueOf(40000L * 1000000));
-    Gauge64 vppLinkSpeed32 = new Gauge64(BigInteger.valueOf(100000L * 1000000));
-
     int PHYSICAL_ADDRESS_LENGTH = 6;
 
     Collector<SwInterfaceDetails, ?, SwInterfaceDetails> SINGLE_ITEM_COLLECTOR =
             RWUtils.singleItemCollector();
 
     /**
-     * Convert VPP's link speed bitmask to Yang type. 1 = 10M, 2 = 100M, 4 = 1G, 8 = 10G, 16 = 40G, 32 = 100G
+     * Convert VPP's link speed in kbits per second to Yang type.
      *
-     * @param vppLinkSpeed Link speed in bitmask format from VPP.
+     * @param vppLinkSpeed Link speed in kbits per second from VPP.
      * @return Converted value from VPP link speed
      */
-    default Gauge64 vppInterfaceSpeedToYang(byte vppLinkSpeed) {
-        switch (vppLinkSpeed) {
-            case 1:
-                return vppLinkSpeed1;
-            case 2:
-                return vppLinkSpeed2;
-            case 4:
-                return vppLinkSpeed4;
-            case 8:
-                return vppLinkSpeed8;
-            case 16:
-                return vppLinkSpeed16;
-            case 32:
-                return vppLinkSpeed32;
-            default:
-                return vppLinkSpeed0;
-        }
+    default Gauge64 vppInterfaceSpeedToYang(int vppLinkSpeed) {
+        return new Gauge64(BigInteger.valueOf(Integer.toUnsignedLong(vppLinkSpeed) * 1000));
     }
 
     /**
index fc0aba3..2e13ecc 100644 (file)
@@ -28,6 +28,11 @@ import io.fd.honeycomb.translate.write.WriteFailedException;
 import io.fd.vpp.jvpp.core.dto.BdIpMacAddDel;
 import io.fd.vpp.jvpp.core.dto.BdIpMacAddDelReply;
 import io.fd.vpp.jvpp.core.future.FutureJVppCore;
+import io.fd.vpp.jvpp.core.types.Address;
+import io.fd.vpp.jvpp.core.types.AddressFamily;
+import io.fd.vpp.jvpp.core.types.AddressUnion;
+import io.fd.vpp.jvpp.core.types.Ip4Address;
+import io.fd.vpp.jvpp.core.types.MacAddress;
 import java.util.concurrent.CompletionStage;
 import javax.annotation.Nonnull;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone;
@@ -94,12 +99,16 @@ public class ArpTerminationTableEntryCustomizer extends FutureJVppCustomizer
         final BdIpMacAddDel request = new BdIpMacAddDel();
         request.bdId = bdId;
         request.isAdd = booleanToByte(isAdd);
-        request.macAddress = parseMac(entry.getPhysAddress().getValue());
-
+        MacAddress macAddress = new MacAddress();
+        macAddress.bytes = parseMac(entry.getPhysAddress().getValue());
+        request.mac = macAddress;
         final IpAddressNoZone ipAddress = entry.getIpAddress();
-
-        request.ipAddress = ipAddressToArray(ipAddress);
-        request.isIpv6 = booleanToByte(isIpv6(ipAddress));
+        Ip4Address ip4Address = new Ip4Address();
+        ip4Address.address = ipAddressToArray(ipAddress);
+        Address address = new Address();
+        address.af = AddressFamily.ADDRESS_IP4;
+        address.un = new AddressUnion(ip4Address);
+        request.ip = address;
 
         return request;
     }
index 86604b4..aba48fd 100644 (file)
@@ -32,6 +32,11 @@ import io.fd.vpp.jvpp.VppBaseCallException;
 import io.fd.vpp.jvpp.VppInvocationException;
 import io.fd.vpp.jvpp.core.dto.BdIpMacAddDel;
 import io.fd.vpp.jvpp.core.dto.BdIpMacAddDelReply;
+import io.fd.vpp.jvpp.core.types.Address;
+import io.fd.vpp.jvpp.core.types.AddressFamily;
+import io.fd.vpp.jvpp.core.types.AddressUnion;
+import io.fd.vpp.jvpp.core.types.Ip4Address;
+import io.fd.vpp.jvpp.core.types.MacAddress;
 import org.junit.Test;
 import org.mockito.ArgumentCaptor;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone;
@@ -83,7 +88,8 @@ public class ArpTerminationTableEntryCustomizerTest extends WriterCustomizerTest
         physAddress = new PhysAddress("01:02:03:04:05:06");
 
         ipAddress = new IpAddressNoZone(Ipv4AddressNoZone.getDefaultInstance("1.2.3.4"));
-        ip6Address = new IpAddressNoZone(Ipv6AddressNoZone.getDefaultInstance("2001:0db8:0a0b:12f0:0000:0000:0000:0001"));
+        ip6Address =
+                new IpAddressNoZone(Ipv6AddressNoZone.getDefaultInstance("2001:0db8:0a0b:12f0:0000:0000:0000:0001"));
         entry = generateArpEntry(ipAddress, physAddress);
         ip6entry = generateArpEntry(ip6Address, physAddress);
         id = getArpEntryId(ipAddress, physAddress);
@@ -103,8 +109,15 @@ public class ArpTerminationTableEntryCustomizerTest extends WriterCustomizerTest
     private BdIpMacAddDel generateBdIpMacAddDelRequest(final byte[] ipAddress, final byte[] macAddress,
                                                        final byte isAdd) {
         final BdIpMacAddDel request = new BdIpMacAddDel();
-        request.ipAddress = ipAddress;
-        request.macAddress = macAddress;
+        Address address = new Address();
+        address.af = AddressFamily.ADDRESS_IP4;
+        Ip4Address ip4Address = new Ip4Address();
+        ip4Address.address = ipAddress;
+        address.un = new AddressUnion(ip4Address);
+        request.ip = address;
+        MacAddress macAddr = new MacAddress();
+        macAddr.bytes = macAddress;
+        request.mac = macAddr;
         request.bdId = BD_ID;
         request.isAdd = isAdd;
         return request;
@@ -123,8 +136,8 @@ public class ArpTerminationTableEntryCustomizerTest extends WriterCustomizerTest
         ArgumentCaptor<BdIpMacAddDel> argumentCaptor = ArgumentCaptor.forClass(BdIpMacAddDel.class);
         verify(api).bdIpMacAddDel(argumentCaptor.capture());
         final BdIpMacAddDel actual = argumentCaptor.getValue();
-        assertArrayEquals(expected.macAddress, actual.macAddress);
-        assertArrayEquals(expected.ipAddress, actual.ipAddress);
+        assertArrayEquals(expected.mac.bytes, actual.mac.bytes);
+        assertArrayEquals(expected.ip.un.getIp4().address, actual.ip.un.getIp4().address);
         assertEquals(expected.bdId, actual.bdId);
         assertEquals(expected.isAdd, actual.isAdd);
     }
@@ -189,4 +202,4 @@ public class ArpTerminationTableEntryCustomizerTest extends WriterCustomizerTest
         }
         fail("WriteFailedException.DeleteFailedException was expected");
     }
-}
\ No newline at end of file
+}
index b264f39..54f9f57 100644 (file)
@@ -30,7 +30,7 @@
     <name>${project.artifactId}</name>
 
     <properties>
-        <jvpp.version>18.10-SNAPSHOT</jvpp.version>
+        <jvpp.version>19.01-SNAPSHOT</jvpp.version>
         <hamcrest.version>1.3</hamcrest.version>
     </properties>
 
index da76c9a..06473fe 100644 (file)
@@ -31,7 +31,7 @@
   <packaging>pom</packaging>
 
   <properties>
-    <jvpp.version>18.10-SNAPSHOT</jvpp.version>
+    <jvpp.version>19.01-SNAPSHOT</jvpp.version>
   </properties>
 
   <dependencyManagement>
index 6faad94..2bcbe5b 100644 (file)
@@ -37,7 +37,7 @@
         <asm.version>5.2</asm.version>
         <asciidoctorj.version>1.5.4</asciidoctorj.version>
         <slf4j-simple.version>1.7.25</slf4j-simple.version>
-        <jvpp.version>18.10-SNAPSHOT</jvpp.version>
+        <jvpp.version>19.01-SNAPSHOT</jvpp.version>
         <guava.version>23.6-jre</guava.version>
         <reflections.version>0.9.11</reflections.version>
 
index 202764f..190835e 100644 (file)
@@ -30,7 +30,7 @@
         <groovy.eclipse.compiler.version>2.9.2-01</groovy.eclipse.compiler.version>
         <groovy.eclipse.batch.version>2.4.3-01</groovy.eclipse.batch.version>
 
-        <jvpp.version>18.10-SNAPSHOT</jvpp.version>
+        <jvpp.version>19.01-SNAPSHOT</jvpp.version>
         <junit.version>4.11</junit.version>
         <reflections.version>0.9.11</reflections.version>
         <sonar.skip>true</sonar.skip>