From 27eba3a20b98378a07178722606752960978ea5a Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Tue, 20 Sep 2016 15:53:57 +0200 Subject: HONEYCOMB-222 Fix Interface L2 writer order The writer was placed between Interface and Subitnerface, so it was invoked before subinterfaces were processed. Meaning that if the L2/xconnect targetted subitnerface, it would be submitted prematurely. Moving the Interface L2 writer after Subinterface writer. Change-Id: I192ebde5eaf4b05a104d76bce39de74569cdb608 Signed-off-by: Maros Marsalek --- .../java/io/fd/honeycomb/translate/v3po/InterfacesWriterFactory.java | 4 ++-- .../v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/Readme.adoc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/InterfacesWriterFactory.java b/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/InterfacesWriterFactory.java index 97f21fbb2..39e328a9e 100644 --- a/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/InterfacesWriterFactory.java +++ b/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/InterfacesWriterFactory.java @@ -171,9 +171,9 @@ public final class InterfacesWriterFactory implements WriterFactory { registry.addAfter( new GenericWriter<>(VPP_IFC_AUG_ID.child(Routing.class), new RoutingCustomizer(jvpp, ifcNamingContext)), specificIfcTypes); - // Routing(Execute only after specific interface customizers) = + // L2(Execute only after subinterface (and all other ifc types) = registry.addAfter(new GenericWriter<>(L2_ID, new L2Customizer(jvpp, ifcNamingContext, bdNamingContext)), - specificIfcTypes); + SubinterfaceAugmentationWriterFactory.SUB_IFC_ID); // Proxy Arp (execute after specific interface customizers) registry.addAfter( new GenericWriter<>(VPP_IFC_AUG_ID.child(ProxyArp.class), new ProxyArpCustomizer(jvpp, ifcNamingContext)), diff --git a/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/Readme.adoc b/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/Readme.adoc index 57800d22c..a95c397ce 100644 --- a/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/Readme.adoc +++ b/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/Readme.adoc @@ -10,9 +10,9 @@ Current order of v3po-api writers is: . Tap . Vxlan . Interface -. L2 . SubInterface . L2 +. SubInterface-L2 . Ethernet . Routing . ClassifyTable -- cgit 1.2.3-korg