Correction of to string transfarmation of byte array.
Change-Id: I499d3cbabedba117e61f9fbfbc1e65a7d9fbb63c
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
public static Eid toIpPrefixEid(IpAddress addr, int vni) {
// If you touch this, be sure that sfclisp compiles!
int mask = addressTypeFromIpAddress(addr) == Ipv4Afi.class ? 32 : 128;
- IpPrefix prefix = asIpPrefix(addr.getValue().toString(), mask);
+ IpPrefix prefix = asIpPrefix(String.valueOf(addr.getValue()), mask);
// XXX getMapping rcp fails if VNI set to 0
return toEidNoVni(prefix);
}