diff options
author | Jan Srnicek <jsrnicek@cisco.com> | 2016-09-02 09:11:10 +0200 |
---|---|---|
committer | Jan Srnicek <jsrnicek@cisco.com> | 2016-09-02 09:11:18 +0200 |
commit | 41b15123da0b5045b91a623e2ce9e240a8f62775 (patch) | |
tree | cf62130fc558ff3edc8a9d6964c35f832a4cb6b3 /lisp/lisp2vpp/src/main/java | |
parent | 89694901eb6ada1c5cbb40b91bf650631f141270 (diff) |
HONEYCOMB-149 - Interface-ref contains locator-set name
Change-Id: I5d704f9aa4036328b29562cc289d7da5ddafdcf0
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'lisp/lisp2vpp/src/main/java')
-rwxr-xr-x | lisp/lisp2vpp/src/main/java/io/fd/honeycomb/lisp/translate/read/InterfaceCustomizer.java | 6 |
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)); } } |