return (Impl::getSubnet<Subnet4Ptr>(subnets_, subnet_id));
}
+Subnet4Ptr
+SharedNetwork4::getSubnet(const std::string& subnet_prefix) const {
+ return (Impl::getSubnet<Subnet4Ptr>(subnets_, subnet_prefix));
+}
+
Subnet4Ptr
SharedNetwork4::getNextSubnet(const Subnet4Ptr& first_subnet,
const SubnetID& current_subnet) const {
}
subnets_.clear();
}
+
Subnet6Ptr
SharedNetwork6::getSubnet(const SubnetID& subnet_id) const {
return (Impl::getSubnet<Subnet6Ptr>(subnets_, subnet_id));
}
+Subnet6Ptr
+SharedNetwork6::getSubnet(const std::string& subnet_prefix) const {
+ return (Impl::getSubnet<Subnet6Ptr>(subnets_, subnet_prefix));
+}
+
Subnet6Ptr
SharedNetwork6::getNextSubnet(const Subnet6Ptr& first_subnet,
const SubnetID& current_subnet) const {
/// if such subnet doesn't exist within shared network.
Subnet6Ptr getSubnet(const SubnetID& subnet_id) const;
+ /// @brief Returns a subnet for a specified subnet prefix.
+ ///
+ /// @param subnet_prefix Subnet prefix.
+ ///
+ /// @return Shared pointer to a subnet using this prefix or null pointer
+ /// if such subnet doesn't exist within shared network.
+ Subnet6Ptr getSubnet(const std::string& subnet_prefix) const;
+
/// @brief Retrieves next available IPv6 subnet within shared network.
///
/// See documentation for @ref SharedNetwork6::getNextSubnet.