@@ -897,11 +897,11 @@ Subnet4ConfigParser::initSubnet(data::ConstElementPtr params,
897
897
898
898
// Setup client class list.
899
899
getClientClassesElem (params, std::bind (&Network::allowClientClass,
900
- subnet4, ph::_1));
900
+ boost::dynamic_pointer_cast<Network>( subnet4) , ph::_1));
901
901
902
902
// Setup additional class list.
903
903
getAdditionalClassesElem (params, std::bind (&Network::addAdditionalClass,
904
- subnet4, ph::_1));
904
+ boost::dynamic_pointer_cast<Network>( subnet4) , ph::_1));
905
905
906
906
// 4o6 specific parameter: 4o6-interface.
907
907
if (params->contains (" 4o6-interface" )) {
@@ -1179,12 +1179,12 @@ PdPoolParser::parse(PoolStoragePtr pools, ConstElementPtr pd_pool,
1179
1179
// Setup client class list.
1180
1180
BaseNetworkParser::getClientClassesElem (pd_pool,
1181
1181
std::bind (&Pool::allowClientClass,
1182
- pool_, ph::_1));
1182
+ boost::dynamic_pointer_cast<Pool>( pool_) , ph::_1));
1183
1183
1184
1184
// Setup additional class list.
1185
1185
BaseNetworkParser::getAdditionalClassesElem (pd_pool,
1186
1186
std::bind (&Pool::addAdditionalClass,
1187
- pool_, ph::_1));
1187
+ boost::dynamic_pointer_cast<Pool>( pool_) , ph::_1));
1188
1188
1189
1189
// Add the local pool to the external storage ptr.
1190
1190
pools->push_back (pool_);
@@ -1415,11 +1415,11 @@ Subnet6ConfigParser::initSubnet(data::ConstElementPtr params,
1415
1415
1416
1416
// Setup client class list.
1417
1417
getClientClassesElem (params, std::bind (&Network::allowClientClass,
1418
- subnet6, ph::_1));
1418
+ boost::dynamic_pointer_cast<Network>( subnet6) , ph::_1));
1419
1419
1420
1420
// Setup additional class list.
1421
1421
getAdditionalClassesElem (params, std::bind (&Network::addAdditionalClass,
1422
- subnet6, ph::_1));
1422
+ boost::dynamic_pointer_cast<Network>( subnet6) , ph::_1));
1423
1423
1424
1424
// / client-class processing is now generic and handled in the common
1425
1425
// / code (see isc::data::SubnetConfigParser::createSubnet)
0 commit comments