Table Features Max Entries Fix 87/4287/1
authorHemaTG <hema.gopalkrishnan@ericsson.com>
Thu, 16 Jan 2014 04:09:06 +0000 (09:39 +0530)
committerHemaTG <hema.gopalkrishnan@ericsson.com>
Thu, 16 Jan 2014 04:09:06 +0000 (09:39 +0530)
Signed-off-by: HemaTG <hema.gopalkrishnan@ericsson.com>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/TableFeaturesConvertor.java

index 8a95399febd67a5e0229db9eeca5ff02ad369578..871efb28f55dcb46eac6c99ff940bb0bcb8bf758 100644 (file)
@@ -135,7 +135,7 @@ public class TableFeaturesConvertor {
             ofTableFeatures.setName(salTableFeatures.getName());
             ofTableFeatures.setMetadataMatch(salTableFeatures.getMetadataMatch());
             ofTableFeatures.setMetadataWrite(salTableFeatures.getMetadataWrite());
-            ofTableFeatures.setMaxEntries(new Long(0)); 
+            ofTableFeatures.setMaxEntries(salTableFeatures.getMaxEntries()); 
             if (salTableFeatures.getConfig() != null) {
                 ofTableFeatures.setConfig(new TableConfig(salTableFeatures.getConfig().isDEPRECATEDMASK()));
             }
@@ -152,6 +152,7 @@ public class TableFeaturesConvertor {
         }
         List<TableFeatureProperties> ofTablePropertiesList = new ArrayList<>();
         
+
         for (org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.features.table.features.table.properties.TableFeatureProperties property : tableProperties
                 .getTableFeatureProperties()) {
                TableFeaturePropertiesBuilder propBuilder = new TableFeaturePropertiesBuilder();