2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[4105] Implement 4o6-interface-id parameter.

This commit is contained in:
Tomek Mrugalski
2015-10-31 16:47:51 +09:00
parent 75f18d0a63
commit e648d36192
3 changed files with 64 additions and 3 deletions

View File

@@ -204,6 +204,8 @@ protected:
parser = new StringParser(config_id, string_values_);
} else if (config_id.compare("4o6-interface") == 0) {
parser = new StringParser(config_id, string_values_);
} else if (config_id.compare("4o6-interface-id") == 0) {
parser = new StringParser(config_id, string_values_);
} else {
isc_throw(NotImplemented, "unsupported parameter: " << config_id);
}
@@ -342,6 +344,17 @@ protected:
// Don't care. 4o6-subnet is optional.
}
// Try 4o6 specific paramter: 4o6-interface-id
try {
std::string ifaceid = string_values_->getParam("4o6-interface-id");
OptionBuffer tmp(ifaceid.begin(), ifaceid.end());
OptionPtr opt(new Option(Option::V6, D6O_INTERFACE_ID, tmp));
subnet4->get4o6().interface_id_ = opt;
subnet4->get4o6().enabled_ = true;
} catch (const DhcpConfigError&) {
}
// Try setting up client class (if specified)
try {
string client_class = string_values_->getParam("client-class");