From db99c43fcbb03f6a2d0736a0b3518da27bc7f9e3 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Fri, 20 May 2016 09:51:30 +0200 Subject: HONEYCOMB-61: Extend VPP initializers to initialize everything readers provide Change-Id: Ic7c82f4abfb3bd1bb5065fdfc9c080ed3ba6c94c Signed-off-by: Maros Marsalek --- .../v3po/translate/v3po/interfacesstate/InterfaceUtils.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'v3po/v3po2vpp/src/main/java/io/fd/honeycomb/v3po/translate/v3po/interfacesstate/InterfaceUtils.java') diff --git a/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/v3po/translate/v3po/interfacesstate/InterfaceUtils.java b/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/v3po/translate/v3po/interfacesstate/InterfaceUtils.java index ee66aef1f..bbcb4fdb9 100644 --- a/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/v3po/translate/v3po/interfacesstate/InterfaceUtils.java +++ b/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/v3po/translate/v3po/interfacesstate/InterfaceUtils.java @@ -230,6 +230,11 @@ public final class InterfaceUtils { final SwInterfaceDetails cachedDetails = checkNotNull(getCachedInterfaceDump(ctx).get(index), "Interface {} cannot be found in context", index); + return isInterfaceOfType(ifcType, cachedDetails); + } + + static boolean isInterfaceOfType(final Class ifcType, + final SwInterfaceDetails cachedDetails) { return ifcType.equals(getInterfaceType(V3poUtils.toString(cachedDetails.interfaceName))); } } -- cgit 1.2.3-korg