bool ret = Impl::replace(subnets_, subnet);
if (ret) {
// Associate the subnet with this network.
- setSharedNetwork(subnet);
+ subnet->setSharedNetwork(shared_from_this());
subnet->setSharedNetworkName(name_);
// Deassociate the previous subnet.
- clearSharedNetwork(old);
+ old->setSharedNetwork(NetworkPtr());
old->setSharedNetworkName("");
}
return (ret);
bool ret = Impl::replace(subnets_, subnet);
if (ret) {
// Associate the subnet with this network.
- setSharedNetwork(subnet);
+ subnet->setSharedNetwork(shared_from_this());
subnet->setSharedNetworkName(name_);
// Deassociate the previous subnet.
- clearSharedNetwork(old);
+ old->setSharedNetwork(NetworkPtr());
old->setSharedNetworkName("");
}
return (ret);