From 00178df85a4d3f1088144fea0707f1cf8bfdee22 Mon Sep 17 00:00:00 2001 From: Jan Srnicek Date: Fri, 2 Sep 2016 09:11:10 +0200 Subject: HONEYCOMB-149 - Interface-ref contains locator-set name Cherrypicked from https://gerrit.fd.io/r/#/c/2600/ Change-Id: I5d704f9aa4036328b29562cc289d7da5ddafdcf0 Signed-off-by: Jan Srnicek --- .../io/fd/honeycomb/lisp/translate/read/InterfaceCustomizer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/lisp2vpp/src/main/java/io/fd/honeycomb/lisp/translate/read/InterfaceCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/honeycomb/lisp/translate/read/InterfaceCustomizer.java index 6d5abae8b..d12c730a2 100755 --- a/lisp/lisp2vpp/src/main/java/io/fd/honeycomb/lisp/translate/read/InterfaceCustomizer.java +++ b/lisp/lisp2vpp/src/main/java/io/fd/honeycomb/lisp/translate/read/InterfaceCustomizer.java @@ -111,10 +111,12 @@ public class InterfaceCustomizer .filter(a -> a.swIfIndex == interfaceIndex) .collect(RWUtils.singleItemCollector()); + final String interfaceRef = interfaceContext.getName(details.swIfIndex, ctx.getMappingContext()); + builder.setPriority(Byte.valueOf(details.priority).shortValue()); builder.setWeight(Byte.valueOf(details.weight).shortValue()); - builder.setInterfaceRef(name); - builder.setKey(new InterfaceKey(name)); + builder.setInterfaceRef(interfaceRef); + builder.setKey(new InterfaceKey(interfaceRef)); } } -- cgit 1.2.3-korg