Change-Id: Ie30450d4bf5e36aacf88fabc840eadb9a404faae
Signed-off-by: Florin Coras <fcoras@cisco.com>
} else if (address instanceof ServicePath) {
// Build new Service Path eid with service index set to 0
long spi = ((ServicePath) address).getServicePath().getServicePathId().getValue();
- return LispAddressUtil.asServicePathEid(0, spi, (short)0);
+ return LispAddressUtil.asServicePathEid(eid.getVirtualNetworkId().getValue(), spi, (short)0);
}
} catch (UnknownHostException e) {
LOG.trace("Failed to normalize eid {}: {}", eid, ExceptionUtils.getStackTrace(e));