mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 22:15:23 +00:00
[717-mysql_cb-extend-the-backend-with-the-ability-to-associate-the-subnets-with-the-server-tags] Fixed SubnetFetcher comments
This commit is contained in:
committed by
Marcin Siodelski
parent
0705a49e75
commit
b6927e1a06
@@ -865,13 +865,13 @@ template<typename ReturnPtrType, typename CollectionType>
|
|||||||
class SubnetFetcher {
|
class SubnetFetcher {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/// @brief Fetches shared network by name.
|
/// @brief Fetches subnets by id.
|
||||||
///
|
///
|
||||||
/// @param collection Const reference to the collection from which the shared
|
/// @param collection Const reference to the collection from which the
|
||||||
/// network is to be fetched.
|
/// subnet is to be fetched.
|
||||||
/// @param name Name of the shared network to be fetched.
|
/// @param subnet_id Id of the subnet to be fetched.
|
||||||
/// @return Pointer to the fetched shared network or null if no such shared
|
/// @return Pointer to the fetched subnet or null if no such subnet
|
||||||
/// network could be found.
|
/// could be found.
|
||||||
static ReturnPtrType get(const CollectionType& collection,
|
static ReturnPtrType get(const CollectionType& collection,
|
||||||
const SubnetID& subnet_id) {
|
const SubnetID& subnet_id) {
|
||||||
auto& index = collection.template get<SubnetSubnetIdIndexTag>();
|
auto& index = collection.template get<SubnetSubnetIdIndexTag>();
|
||||||
|
@@ -1688,7 +1688,7 @@ TEST(Subnet6Test, lastAllocated) {
|
|||||||
TEST(SubnetFetcherTest, getSubnet4ById) {
|
TEST(SubnetFetcherTest, getSubnet4ById) {
|
||||||
Subnet4Collection collection;
|
Subnet4Collection collection;
|
||||||
|
|
||||||
// Shared network hasn't been added to the collection. A null pointer should
|
// Subnet hasn't been added to the collection. A null pointer should
|
||||||
// be returned.
|
// be returned.
|
||||||
auto subnet = SubnetFetcher4::get(collection, SubnetID(1024));
|
auto subnet = SubnetFetcher4::get(collection, SubnetID(1024));
|
||||||
EXPECT_FALSE(subnet);
|
EXPECT_FALSE(subnet);
|
||||||
@@ -1714,7 +1714,7 @@ TEST(SubnetFetcherTest, getSubnet4ById) {
|
|||||||
TEST(SubnetFetcherTest, getSubnet6ById) {
|
TEST(SubnetFetcherTest, getSubnet6ById) {
|
||||||
Subnet6Collection collection;
|
Subnet6Collection collection;
|
||||||
|
|
||||||
// Shared network hasn't been added to the collection. A null pointer should
|
// Subnet hasn't been added to the collection. A null pointer should
|
||||||
// be returned.
|
// be returned.
|
||||||
auto subnet = SubnetFetcher6::get(collection, SubnetID(1026));
|
auto subnet = SubnetFetcher6::get(collection, SubnetID(1026));
|
||||||
EXPECT_FALSE(subnet);
|
EXPECT_FALSE(subnet);
|
||||||
|
Reference in New Issue
Block a user