Support for Table Features
[openflowplugin.git] / applications / forwardingrules-manager / src / main / java / org / opendaylight / openflowplugin / applications / frm / impl / FlowNodeReconciliationImpl.java
index 0564131b4850838d959fd5df4438ef0c395c85a5..b47af791c6078c69572269aa24699d1a38401136 100644 (file)
@@ -148,6 +148,16 @@ public class FlowNodeReconciliationImpl implements FlowNodeReconciliation {
         }
 
         if (flowNode.isPresent()) {
+               /* Tables - have to be pushed before groups */
+               // CHECK if while pusing the update, updateTableInput can be null to emulate a table add
+               List<Table> tableList = flowNode.get().getTable() != null 
+                               ? flowNode.get().getTable() : Collections.<Table> emptyList() ;
+               for (Table table : tableList) {
+                       final KeyedInstanceIdentifier<Table, TableKey> tableIdent = 
+                                       nodeIdent.child(Table.class, table.getKey());
+                       this.provider.getTableCommiter().update(tableIdent, table, null ,nodeIdent) ;
+               }
+               
             /* Groups - have to be first */
             List<Group> groups = flowNode.get().getGroup() != null
                     ? flowNode.get().getGroup() : Collections.<Group> emptyList();