summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Cmarada <mcmarada@cisco.com>2018-12-12 13:04:35 +0100
committerMichal Cmarada <mcmarada@cisco.com>2018-12-12 13:05:23 +0100
commita63a72192bdd8148b6147b58db1eea054efb09a1 (patch)
treef3e8173ef194cdf331a7bcb5298e77522df18754
parentcdc4d09c152e985c93016ff61789bc699b97883d (diff)
fix after VPP api changes for address type aliases
Change-Id: I228340d362adcbec9e46c8e406337392caffaf37 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
-rw-r--r--v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/l2/ArpTerminationTableEntryCustomizer.java2
-rw-r--r--v3po/v3po2vpp/src/test/java/io/fd/hc2vpp/v3po/l2/ArpTerminationTableEntryCustomizerTest.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/l2/ArpTerminationTableEntryCustomizer.java b/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/l2/ArpTerminationTableEntryCustomizer.java
index 4a684ccf8..2039aaac6 100644
--- a/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/l2/ArpTerminationTableEntryCustomizer.java
+++ b/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/l2/ArpTerminationTableEntryCustomizer.java
@@ -104,7 +104,7 @@ public class ArpTerminationTableEntryCustomizer extends FutureJVppCustomizer
request.mac = macAddress;
final IpAddressNoZone ipAddress = entry.getIpAddress();
Ip4Address ip4Address = new Ip4Address();
- ip4Address.address = ipAddressToArray(ipAddress);
+ ip4Address.ip4Address = ipAddressToArray(ipAddress);
Address address = new Address();
address.af = AddressFamily.ADDRESS_IP4;
address.un = new AddressUnion(ip4Address);
diff --git a/v3po/v3po2vpp/src/test/java/io/fd/hc2vpp/v3po/l2/ArpTerminationTableEntryCustomizerTest.java b/v3po/v3po2vpp/src/test/java/io/fd/hc2vpp/v3po/l2/ArpTerminationTableEntryCustomizerTest.java
index 807a99328..f83852c0a 100644
--- a/v3po/v3po2vpp/src/test/java/io/fd/hc2vpp/v3po/l2/ArpTerminationTableEntryCustomizerTest.java
+++ b/v3po/v3po2vpp/src/test/java/io/fd/hc2vpp/v3po/l2/ArpTerminationTableEntryCustomizerTest.java
@@ -112,7 +112,7 @@ public class ArpTerminationTableEntryCustomizerTest extends WriterCustomizerTest
Address address = new Address();
address.af = AddressFamily.ADDRESS_IP4;
Ip4Address ip4Address = new Ip4Address();
- ip4Address.address = ipAddress;
+ ip4Address.ip4Address = ipAddress;
address.un = new AddressUnion(ip4Address);
request.ip = address;
MacAddress macAddr = new MacAddress();
@@ -137,7 +137,7 @@ public class ArpTerminationTableEntryCustomizerTest extends WriterCustomizerTest
verify(api).bdIpMacAddDel(argumentCaptor.capture());
final BdIpMacAddDel actual = argumentCaptor.getValue();
assertArrayEquals(expected.mac.bytes, actual.mac.bytes);
- assertArrayEquals(expected.ip.un.getIp4().address, actual.ip.un.getIp4().address);
+ assertArrayEquals(expected.ip.un.getIp4().ip4Address, actual.ip.un.getIp4().ip4Address);
assertEquals(expected.bdId, actual.bdId);
assertEquals(expected.isAdd, actual.isAdd);
}