commit | 76ea05796d1151420b689640119e127339175172 | [log] [tgz] |
---|---|---|
author | Jian Li <pyguni@gmail.com> | Mon Aug 29 12:41:16 2016 +0900 |
committer | Thomas Vachuska <tom@onlab.us> | Mon Aug 29 16:52:22 2016 +0000 |
tree | 73187c03481c13a0e65e610e0a9d9bf1bb53707d | |
parent | edc5db13465c9215a411089974bfa30884203493 [diff] [blame] |
Add unit tests for LISP address serializer and deserializer Change-Id: I56538221f3951d18c1feb9343d87cbb46c3ed04d
diff --git a/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/types/LispSegmentLcafAddress.java b/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/types/LispSegmentLcafAddress.java index 8405695..c6a84cc 100644 --- a/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/types/LispSegmentLcafAddress.java +++ b/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/types/LispSegmentLcafAddress.java
@@ -227,7 +227,8 @@ LispLcafAddress.serializeCommon(byteBuf, address); byteBuf.writeInt(address.getInstanceId()); - new LispIpAddress.IpAddressWriter().writeTo(byteBuf, (LispIpAddress) address.getAddress()); + + new LispAfiAddress.AfiAddressWriter().writeTo(byteBuf, address.getAddress()); } } }