network-domain (neturon subnet) had forwarding-context (neutron subnet) as parent
but it should have forwarding-context (neutron network) as parent.
Change-Id: Ic3975a6a3386381bf25e60295fbb101b5b9ecff8
Signed-off-by: Martin Sunal <msunal@cisco.com>
}
ndb.setNetworkDomainId(new NetworkDomainId(subnet.getUuid().getValue()));
ndb.setNetworkDomainType(MappingUtils.SUBNET);
- ndb.setParent(MappingUtils.createParent(new NetworkDomainId(subnet.getUuid().getValue()), L2FloodDomain.class));
+ ndb.setParent(MappingUtils.createParent(new NetworkDomainId(subnet.getNetworkId().getValue()), L2FloodDomain.class));
ndb.addAugmentation(SubnetAugmentForwarding.class, new SubnetAugmentForwardingBuilder().setSubnet(sb.build())
.build());
return ndb.build();