Support for metadata in HA
[groupbasedpolicy.git] / neutron-mapper / src / main / java / org / opendaylight / groupbasedpolicy / neutron / mapper / mapping / NeutronRouterAware.java
index f3bb545fb4a1bdec7b0b05afd7d426b59587b734..160d6dffca0d7f40586528f9c828006d56fc0671 100644 (file)
@@ -232,8 +232,9 @@ public class NeutronRouterAware implements NeutronAware<Router> {
         addrEpBuilder.setContextId(routerl3ContextId);
         addrEpBuilder.setContextType(MappingUtils.L3_CONTEXT);
         addrEpBuilder.setTenant(tenantId);
-        addrEpBuilder.setNetworkContainment(new NetworkContainmentBuilder().setContainment(
-                new NetworkDomainContainmentBuilder().setNetworkDomainId(networkDomainId).build()).build());
+        addrEpBuilder
+            .setNetworkContainment(new NetworkContainmentBuilder().setContainment(new NetworkDomainContainmentBuilder()
+                .setNetworkDomainId(networkDomainId).setNetworkDomainType(MappingUtils.SUBNET).build()).build());
         addrEpBuilder.setEndpointGroup(ImmutableList.of(MappingUtils.EPG_EXTERNAL_ID));
         addrEpBuilder.setTimestamp(System.currentTimeMillis());
         return epRegistrator.registerEndpoint(addrEpBuilder.build());