Bug 3651: Fix creation of External EPG. 31/22231/1
authorThomas Bachman <tbachman@yahoo.com>
Tue, 9 Jun 2015 19:23:52 +0000 (15:23 -0400)
committerThomas Bachman <tbachman@yahoo.com>
Tue, 9 Jun 2015 19:34:24 +0000 (19:34 +0000)
The External EPG isn't created because the tenant
for it doesn't yet exist. This fixes that by adding
the true flag to the put, which causes the parent
node to be created.

Change-Id: I3eae011e0337dc191f070ef40433b24bdbbeff8e
Signed-off-by: Thomas Bachman <tbachman@yahoo.com>
neutron-mapper/src/main/java/org/opendaylight/groupbasedpolicy/neutron/mapper/mapping/NeutronNetworkAware.java

index edcd33e92f4104550b71d18dd1de8186eaf2c107..82d9e6e937a503e4262488616e728b58f6ae54f3 100644 (file)
@@ -123,7 +123,7 @@ public class NeutronNetworkAware implements INeutronNetworkAware {
                 .setIntraGroupPolicy(IntraGroupPolicy.RequireContract)
                 .build();
             rwTx.put(LogicalDatastoreType.CONFIGURATION,
-                    IidFactory.endpointGroupIid(tenantId, MappingUtils.EPG_EXTERNAL_ID), epgExternal);
+                    IidFactory.endpointGroupIid(tenantId, MappingUtils.EPG_EXTERNAL_ID), epgExternal, true);
         }
     }