From 41b15123da0b5045b91a623e2ce9e240a8f62775 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 Change-Id: I5d704f9aa4036328b29562cc289d7da5ddafdcf0 Signed-off-by: Jan Srnicek --- .../io/fd/honeycomb/lisp/translate/read/InterfaceCustomizer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lisp') 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