summaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2016-09-02 09:11:10 +0200
committerJan Srnicek <jsrnicek@cisco.com>2016-09-02 09:11:18 +0200
commit7024d8e59e0e939107024f1dc58feb7eada7e154 (patch)
treef5737ba8b0368aa64e1ea730af5df89411c68fe9 /lisp
parentd41b116f0a177683a326a9d18c4f6aa1ece651de (diff)
HONEYCOMB-149 - Interface-ref contains locator-set name
Change-Id: I5d704f9aa4036328b29562cc289d7da5ddafdcf0 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'lisp')
-rwxr-xr-xlisp/lisp2vpp/src/main/java/io/fd/honeycomb/lisp/translate/read/InterfaceCustomizer.java6
1 files 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));
}
}