summaryrefslogtreecommitdiffstats
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 07:24:40 +0000
commit00178df85a4d3f1088144fea0707f1cf8bfdee22 (patch)
tree077532955a4d6e50d8b311fe0b6586ebb9917981
parent2cdd56d31c4514d7d7000ce7c7b6417ce53e2be2 (diff)
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 <jsrnicek@cisco.com>
-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 6d5abae..d12c730 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));
}
}