mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 05:55:28 +00:00
[#1333] Added match expr check
This commit is contained in:
@@ -221,7 +221,9 @@ Dhcpv4Exchange::Dhcpv4Exchange(const AllocEnginePtr& alloc_engine,
|
||||
CfgMgr::instance().getCurrentCfg()->getClientClassDictionary();
|
||||
const ClientClassDefListPtr& defs_ptr = dict->getClasses();
|
||||
for (auto def : *defs_ptr) {
|
||||
context_->query_->classes_.erase(def->getName());
|
||||
if (def->getMatchExpr()) {
|
||||
context_->query_->classes_.erase(def->getName());
|
||||
}
|
||||
}
|
||||
setReservedClientClasses(context_);
|
||||
evaluateClasses(context_->query_, false);
|
||||
|
@@ -471,7 +471,9 @@ Dhcpv6Srv::initContext(const Pkt6Ptr& pkt,
|
||||
CfgMgr::instance().getCurrentCfg()->getClientClassDictionary();
|
||||
const ClientClassDefListPtr& defs_ptr = dict->getClasses();
|
||||
for (auto def : *defs_ptr) {
|
||||
ctx.query_->classes_.erase(def->getName());
|
||||
if (def->getMatchExpr()) {
|
||||
ctx.query_->classes_.erase(def->getName());
|
||||
}
|
||||
}
|
||||
setReservedClientClasses(pkt, ctx);
|
||||
evaluateClasses(pkt, false);
|
||||
|
Reference in New Issue
Block a user