Fix classifier writer ordering 45/2045/3
authorMaros Marsalek <mmarsale@cisco.com>
Thu, 21 Jul 2016 14:33:17 +0000 (16:33 +0200)
committerMarek Gradzki <mgradzki@cisco.com>
Mon, 25 Jul 2016 09:05:09 +0000 (09:05 +0000)
Change-Id: Iee5dfcad853dc7d7f8a5eb4a4b2afc1d92b6b1c8
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
v3po/v3po2vpp/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/v3po2vpp/rev160406/Readme.adoc
v3po/v3po2vpp/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/v3po2vpp/rev160406/VppClassifierHoneycombWriterModule.java

index 5d15d16..7b78b6b 100644 (file)
@@ -61,15 +61,16 @@ public class VppClassifierHoneycombWriterModule extends
         }
 
         @Override
-        public void init(final ModifiableWriterRegistryBuilder registry) {
-
+        public void init(@Nonnull final ModifiableWriterRegistryBuilder registry) {
+            // Ordering here is: First create table, then create sessions and then assign as ACL
+            // ClassifyTable
             registry.addBefore(
-                new GenericListWriter<>(CLASSIFY_TABLE_ID, new ClassifyTableWriter(jvpp, classifyTableContext)),
-                ACL_ID);
-
+                    new GenericListWriter<>(CLASSIFY_TABLE_ID, new ClassifyTableWriter(jvpp, classifyTableContext)),
+                    CLASSIFY_SESSION_ID);
+            //  ClassifyTableSession
             registry.addBefore(
-                new GenericListWriter<>(CLASSIFY_SESSION_ID, new ClassifySessionWriter(jvpp, classifyTableContext)),
-                CLASSIFY_TABLE_ID);
+                    new GenericListWriter<>(CLASSIFY_SESSION_ID, new ClassifySessionWriter(jvpp, classifyTableContext)),
+                    ACL_ID);
         }
     }
 }