47#include <boost/algorithm/string.hpp>
48#include <boost/foreach.hpp>
49#include <boost/lexical_cast.hpp>
55#include <netinet/in.h>
99 bool echo_client_id =
getBoolean(global,
"echo-client-id");
100 cfg->setEchoClientId(echo_client_id);
103 uint32_t probation_period =
104 getUint32(global,
"decline-probation-period");
105 cfg->setDeclinePeriod(probation_period);
108 uint16_t dhcp4o6_port =
getUint16(global,
"dhcp4o6-port");
109 cfg->setDhcp4o6Port(dhcp4o6_port);
114 cfg->setContext(user_context);
118 std::string server_tag =
getString(global,
"server-tag");
119 cfg->setServerTag(server_tag);
135 bool ip_reservations_unique =
getBoolean(global,
"ip-reservations-unique");
136 cfg->setIPReservationsUnique(ip_reservations_unique);
148 if (!dest || !from) {
160 for (
auto net = networks->begin(); net != networks->end(); ++net) {
171 for (
auto subnet = subnets->begin(); subnet != subnets->end(); ++subnet) {
189 cfg->sanityChecksLifetime(
"valid-lifetime");
194 sharedNetworksSanityChecks(*networks, global->get(
"shared-networks"));
216 std::set<string> names;
219 for (
auto net = networks.begin(); net != networks.end(); ++net) {
224 bool authoritative = (*net)->getAuthoritative();
225 string iface = (*net)->getIface();
230 for (
auto subnet = subnets->begin(); subnet != subnets->end(); ++subnet) {
231 if ((*subnet)->getAuthoritative() != authoritative) {
233 << (*subnet)->toText()
234 <<
" has different authoritative setting "
235 << (*subnet)->getAuthoritative()
236 <<
" than the shared-network itself: "
241 iface = (*subnet)->getIface();
245 if ((*subnet)->getIface().empty()) {
249 if ((*subnet)->getIface() != iface) {
251 <<
" has specified interface " << (*subnet)->getIface()
252 <<
", but earlier subnet in the same shared-network"
253 <<
" or the shared-network itself used " << iface);
258 txt += (*subnet)->toText() +
" ";
263 if ((*net)->getName().empty()) {
265 << txt <<
" is missing mandatory 'name' parameter");
269 if (names.find((*net)->getName()) != names.end()) {
271 "name " << (*net)->getName() <<
" defined twice.");
273 names.insert((*net)->getName());
303 bool sock_changed = (sock_cfg && current_sock_cfg &&
304 !sock_cfg->equals(*current_sock_cfg));
311 if (!sock_cfg || !current_sock_cfg || sock_changed) {
348 string parameter_name;
358 mutable_cfg = boost::const_pointer_cast<Element>(config_set);
364 srv_config->moveDdnsParams(mutable_cfg);
383 Dhcp4ConfigParser global_parser;
386 global_parser.parseEarly(srv_config, mutable_cfg);
391 parameter_name =
"option-def";
394 parser.
parse(cfg_option_def, option_defs);
399 parameter_name =
"option-data";
402 parser.
parse(cfg_option, option_datas);
406 if (control_socket) {
407 parameter_name =
"control-socket";
409 parser.
parse(*srv_config, control_socket);
413 if (multi_threading) {
414 parameter_name =
"multi-threading";
416 parser.
parse(*srv_config, multi_threading);
419 bool multi_threading_enabled =
true;
420 uint32_t thread_count = 0;
421 uint32_t queue_size = 0;
423 multi_threading_enabled, thread_count, queue_size);
426 ConstElementPtr queue_control = mutable_cfg->get(
"dhcp-queue-control");
428 parameter_name =
"dhcp-queue-control";
430 srv_config->setDHCPQueueControl(parser.
parse(queue_control, multi_threading_enabled));
434 ConstElementPtr reservations_lookup_first = mutable_cfg->get(
"reservations-lookup-first");
435 if (reservations_lookup_first) {
436 parameter_name =
"reservations-lookup-first";
437 if (multi_threading_enabled) {
440 srv_config->setReservationsLookupFirst(reservations_lookup_first->boolValue());
444 mutable_cfg->get(
"host-reservation-identifiers");
445 if (hr_identifiers) {
446 parameter_name =
"host-reservation-identifiers";
448 parser.
parse(hr_identifiers);
453 parameter_name =
"sanity-checks";
455 parser.
parse(*srv_config, sanity_checks);
459 mutable_cfg->get(
"expired-leases-processing");
460 if (expiration_cfg) {
461 parameter_name =
"expired-leases-processing";
463 parser.
parse(expiration_cfg);
470 if (hooks_libraries) {
471 parameter_name =
"hooks-libraries";
473 HooksConfig& libraries = srv_config->getHooksConfig();
474 hooks_parser.
parse(libraries, hooks_libraries);
476 multi_threading_enabled);
485 parameter_name =
"dhcp-ddns";
489 d2_client_cfg = parser.
parse(dhcp_ddns);
493 if (client_classes) {
494 parameter_name =
"client-classes";
497 parser.
parse(client_classes, AF_INET);
498 srv_config->setClientClassDictionary(dictionary);
503 if (lease_database) {
504 parameter_name =
"lease-database";
506 std::string access_string;
507 parser.
parse(access_string, lease_database);
509 cfg_db_access->setLeaseDbAccessString(access_string);
513 if (hosts_database) {
514 parameter_name =
"hosts-database";
516 std::string access_string;
517 parser.
parse(access_string, hosts_database);
519 cfg_db_access->setHostDbAccessString(access_string);
523 if (hosts_databases) {
524 parameter_name =
"hosts-databases";
526 for (
auto it : hosts_databases->listValue()) {
528 std::string access_string;
529 parser.
parse(access_string, it);
530 cfg_db_access->setHostDbAccessString(access_string);
536 if (shared_networks) {
537 parameter_name =
"shared-networks";
545 parser.
parse(cfg, shared_networks);
549 global_parser.copySubnets4(srv_config->getCfgSubnets4(), cfg);
554 parameter_name =
"subnet4";
557 subnets_parser.
parse(srv_config, subnet4);
562 parameter_name =
"reservations";
565 parser.
parse(SUBNET_ID_GLOBAL, reservations, hosts);
566 for (
auto h = hosts.begin(); h != hosts.end(); ++h) {
567 srv_config->getCfgHosts()->add(*h);
572 if (config_control) {
573 parameter_name =
"config-control";
581 for (
auto kv : compatibility->mapValue()) {
584 "compatibility parameter values must be "
585 <<
"boolean (" << kv.first <<
" at "
586 << kv.second->getPosition() <<
")");
588 if (kv.first ==
"lenient-option-parsing") {
590 kv.second->boolValue());
591 }
else if (kv.first ==
"ignore-dhcp-server-identifier") {
593 kv.second->boolValue());
594 }
else if (kv.first ==
"ignore-rai-link-selection") {
596 kv.second->boolValue());
597 }
else if (kv.first ==
"exclude-first-last-24") {
599 kv.second->boolValue());
602 "unsupported compatibility parameter: "
603 << kv.first <<
" (" << kv.second->getPosition()
611 const std::map<std::string, ConstElementPtr>& values_map =
612 mutable_cfg->mapValue();
614 BOOST_FOREACH(config_pair, values_map) {
616 parameter_name = config_pair.first;
619 if ((config_pair.first ==
"option-def") ||
620 (config_pair.first ==
"option-data") ||
621 (config_pair.first ==
"control-socket") ||
622 (config_pair.first ==
"multi-threading") ||
623 (config_pair.first ==
"dhcp-queue-control") ||
624 (config_pair.first ==
"host-reservation-identifiers") ||
625 (config_pair.first ==
"interfaces-config") ||
626 (config_pair.first ==
"sanity-checks") ||
627 (config_pair.first ==
"expired-leases-processing") ||
628 (config_pair.first ==
"hooks-libraries") ||
629 (config_pair.first ==
"dhcp-ddns") ||
630 (config_pair.first ==
"client-classes") ||
631 (config_pair.first ==
"lease-database") ||
632 (config_pair.first ==
"hosts-database") ||
633 (config_pair.first ==
"hosts-databases") ||
634 (config_pair.first ==
"subnet4") ||
635 (config_pair.first ==
"shared-networks") ||
636 (config_pair.first ==
"reservations") ||
637 (config_pair.first ==
"config-control") ||
638 (config_pair.first ==
"loggers") ||
639 (config_pair.first ==
"compatibility")) {
653 if ( (config_pair.first ==
"renew-timer") ||
654 (config_pair.first ==
"rebind-timer") ||
655 (config_pair.first ==
"valid-lifetime") ||
656 (config_pair.first ==
"min-valid-lifetime") ||
657 (config_pair.first ==
"max-valid-lifetime") ||
658 (config_pair.first ==
"decline-probation-period") ||
659 (config_pair.first ==
"dhcp4o6-port") ||
660 (config_pair.first ==
"echo-client-id") ||
661 (config_pair.first ==
"match-client-id") ||
662 (config_pair.first ==
"authoritative") ||
663 (config_pair.first ==
"next-server") ||
664 (config_pair.first ==
"server-hostname") ||
665 (config_pair.first ==
"boot-file-name") ||
666 (config_pair.first ==
"server-tag") ||
667 (config_pair.first ==
"reservation-mode") ||
668 (config_pair.first ==
"reservations-global") ||
669 (config_pair.first ==
"reservations-in-subnet") ||
670 (config_pair.first ==
"reservations-out-of-pool") ||
671 (config_pair.first ==
"calculate-tee-times") ||
672 (config_pair.first ==
"t1-percent") ||
673 (config_pair.first ==
"t2-percent") ||
674 (config_pair.first ==
"cache-threshold") ||
675 (config_pair.first ==
"cache-max-age") ||
676 (config_pair.first ==
"hostname-char-set") ||
677 (config_pair.first ==
"hostname-char-replacement") ||
678 (config_pair.first ==
"ddns-send-updates") ||
679 (config_pair.first ==
"ddns-override-no-update") ||
680 (config_pair.first ==
"ddns-override-client-update") ||
681 (config_pair.first ==
"ddns-replace-client-name") ||
682 (config_pair.first ==
"ddns-generated-prefix") ||
683 (config_pair.first ==
"ddns-qualifying-suffix") ||
684 (config_pair.first ==
"ddns-update-on-renew") ||
685 (config_pair.first ==
"ddns-use-conflict-resolution") ||
686 (config_pair.first ==
"ddns-conflict-resolution-mode") ||
687 (config_pair.first ==
"ddns-ttl-percent") ||
688 (config_pair.first ==
"store-extended-info") ||
689 (config_pair.first ==
"statistic-default-sample-count") ||
690 (config_pair.first ==
"statistic-default-sample-age") ||
691 (config_pair.first ==
"early-global-reservations-lookup") ||
692 (config_pair.first ==
"ip-reservations-unique") ||
693 (config_pair.first ==
"reservations-lookup-first") ||
694 (config_pair.first ==
"parked-packet-limit") ||
695 (config_pair.first ==
"allocator") ||
696 (config_pair.first ==
"offer-lifetime") ) {
703 if (config_pair.first ==
"user-context") {
709 "unsupported global configuration parameter: " << config_pair.first
710 <<
" (" << config_pair.second->getPosition() <<
")");
714 parameter_name =
"<post parsing>";
717 global_parser.parse(srv_config, mutable_cfg);
722 global_parser.sanityChecks(srv_config, mutable_cfg);
725 if (!d2_client_cfg) {
728 d2_client_cfg->validateContents();
729 srv_config->setD2ClientConfig(d2_client_cfg);
732 .arg(parameter_name).arg(ex.
what());
743 "Control-socket, hook-libraries, and D2 configuration "
744 "were sanity checked, but not applied.");
752 bool check_only,
bool extra_checks) {
755 "Can't parse NULL config");
778 string params =
"universe=4 persist=false";
779 if (cfg_db->getExtendedInfoTablesEnabled()) {
780 params +=
" extended-info-tables=true";
782 cfg_db->setAppendedParameters(params);
783 cfg_db->createManagers();
784 }
catch (
const std::exception& ex) {
790 std::ostringstream err;
800 }
catch (
const std::exception& ex) {
801 err <<
"Error setting packet queue controls after server reconfiguration: "
815 MultiThreadingMgr::instance().apply(
false, 0, 0);
825 string parameter_name;
834 mutable_cfg = boost::const_pointer_cast<Element>(config_set);
838 parameter_name =
"interfaces-config";
842 parser.
parse(cfg_iface, ifaces_config);
846 .arg(parameter_name).arg(ex.
what());
853 " processing error");
908 HooksManager::prepareUnloadLibraries();
909 static_cast<void>(HooksManager::unloadLibraries());
912 bool multi_threading_enabled =
true;
913 uint32_t thread_count = 0;
914 uint32_t queue_size = 0;
916 multi_threading_enabled, thread_count, queue_size);
936 CBControlDHCPv4::FetchMode::FETCH_ALL);
938 std::ostringstream err;
939 err <<
"during update from config backend database: " << ex.
what();
945 std::ostringstream err;
946 err <<
"during update from config backend database: "
947 <<
"undefined configuration parsing error";
962 if (notify_libraries) {
963 return (notify_libraries);
977 string hash = BaseCommandMgr::getHash(config);
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
void closeCommandSocket()
Shuts down any open control sockets.
static CommandMgr & instance()
CommandMgr is a singleton class.
void openCommandSocket(const isc::data::ConstElementPtr &socket_info)
Opens control socket with parameters specified in socket_info.
static ElementPtr create(const Position &pos=ZERO_POSITION())
static ElementPtr createMap(const Position &pos=ZERO_POSITION())
Creates an empty MapElement type ElementPtr.
static std::string getString(isc::data::ConstElementPtr scope, const std::string &name)
Returns a string parameter from a scope.
uint32_t getUint32(isc::data::ConstElementPtr scope, const std::string &name)
Returns a value converted to uint32_t.
static bool getBoolean(isc::data::ConstElementPtr scope, const std::string &name)
Returns a boolean parameter from a scope.
uint16_t getUint16(isc::data::ConstElementPtr scope, const std::string &name)
Returns a value converted to uint16_t.
Parse Database Parameters.
void parse(std::string &access_string, isc::data::ConstElementPtr database_config)
Parse configuration value.
static void moveReservationMode(isc::data::ElementPtr config)
Moves deprecated reservation-mode parameter to new reservations flags.
void setD2ClientConfig(D2ClientConfigPtr &new_config)
Updates the DHCP-DDNS client configuration to the given value.
static CfgMgr & instance()
returns a single instance of Configuration Manager
SrvConfigPtr getStagingCfg()
Returns a pointer to the staging configuration.
SrvConfigPtr getCurrentCfg()
Returns a pointer to the current configuration.
static void extract(data::ConstElementPtr value, bool &enabled, uint32_t &thread_count, uint32_t &queue_size)
Extract multi-threading parameters from a given configuration.
Parser for a list of client class definitions.
ClientClassDictionaryPtr parse(isc::data::ConstElementPtr class_def_list, uint16_t family, bool check_dependencies=true)
Parse configuration entries.
Parser for the control-socket structure.
void parse(SrvConfig &srv_cfg, isc::data::ConstElementPtr value)
"Parses" control-socket structure
static isc::data::ConstElementPtr finishConfigHookLibraries(isc::data::ConstElementPtr config)
Configuration checker for hook libraries.
Parser for D2ClientConfig.
D2ClientConfigPtr parse(isc::data::ConstElementPtr d2_client_cfg)
Parses a given dhcp-ddns element into D2ClientConfig.
static size_t setAllDefaults(isc::data::ConstElementPtr d2_config)
Sets all defaults for D2 client configuration.
Acts as a storage vault for D2 client configuration.
Parser for the configuration of DHCP packet queue controls.
data::ElementPtr parse(const isc::data::ConstElementPtr &control_elem, bool multi_threading_enabled)
Parses content of the "dhcp-queue-control".
To be removed. Please use ConfigError instead.
CBControlDHCPv4Ptr getCBControl() const
Returns an object which controls access to the configuration backends.
void discardPackets()
Discards parked packets Clears the packet parking lots of all packets.
Parser for the configuration parameters pertaining to the processing of expired leases.
void parse(isc::data::ConstElementPtr expiration_config)
Parses parameters in the JSON map, pertaining to the processing of the expired leases.
static void printRegistered()
Prints out all registered backends.
Parser for a list of host identifiers for DHCPv4.
void parse(isc::data::ConstElementPtr ids_list)
Parses a list of host identifiers.
Parser for a list of host reservations for a subnet.
void parse(const SubnetID &subnet_id, isc::data::ConstElementPtr hr_list, HostCollection &hosts_list)
Parses a list of host reservation entries for a subnet.
static IfaceMgr & instance()
IfaceMgr is a singleton class.
void closeSockets()
Closes all open sockets.
Parser for the configuration of interfaces.
void parse(const CfgIfacePtr &config, const isc::data::ConstElementPtr &values)
Parses content of the "interfaces-config".
static void setRuntimeOptionDefs(const OptionDefSpaceContainer &defs)
Copies option definitions created at runtime.
static void revertRuntimeOptionDefs()
Reverts uncommitted changes to runtime option definitions.
Simple parser for multi-threading structure.
void parse(SrvConfig &srv_cfg, const isc::data::ConstElementPtr &value)
parses JSON structure.
Parser for option data values within a subnet.
void parse(const CfgOptionPtr &cfg, isc::data::ConstElementPtr option_data_list, bool encapsulate=true)
Parses a list of options, instantiates them and stores in cfg.
Parser for a list of option definitions.
void parse(CfgOptionDefPtr cfg, isc::data::ConstElementPtr def_list)
Parses a list of option definitions, create them and store in cfg.
Class of option definition space container.
Simple parser for sanity-checks structure.
void parse(SrvConfig &srv_cfg, const isc::data::ConstElementPtr &value)
parses JSON structure
Parser for a list of shared networks.
void parse(CfgSharedNetworksTypePtr &cfg, const data::ConstElementPtr &shared_networks_list_data)
Parses a list of shared networks.
static size_t deriveParameters(isc::data::ElementPtr global)
Derives (inherits) all parameters from global to more specific scopes.
static size_t setAllDefaults(isc::data::ElementPtr global)
Sets all defaults for DHCPv4 configuration.
static const uint32_t CFGSEL_ALL4
IPv4 related config.
static void resetSubnetID()
Resets subnet-id counter to its initial value (1).
this class parses list of DHCP4 subnets
size_t parse(SrvConfigPtr cfg, data::ConstElementPtr subnets_list, bool encapsulate_options=true)
parses contents of the list
static const TimerMgrPtr & instance()
Returns pointer to the sole instance of the TimerMgr.
Wrapper class that holds hooks libraries configuration.
void verifyLibraries(const isc::data::Element::Position &position, bool multi_threading_enabled) const
Verifies that libraries stored in libraries_ are valid.
void loadLibraries(bool multi_threading_enabled) const
Commits hooks libraries configuration.
Parser for hooks library list.
void parse(HooksConfig &libraries, isc::data::ConstElementPtr value)
Parses parameters value.
Implements parser for config control information, "config-control".
ConfigControlInfoPtr parse(const data::ConstElementPtr &config_control)
Parses a configuration control Element.
isc::data::ConstElementPtr redactConfig(isc::data::ConstElementPtr const &config)
Redact a configuration.
Parsers for client class definitions.
This file contains several functions and constants that are used for handling commands and responses ...
Contains declarations for loggers used by the DHCPv4 server component.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
#define LOG_ERROR(LOGGER, MESSAGE)
Macro to conveniently test error output and log it.
#define LOG_INFO(LOGGER, MESSAGE)
Macro to conveniently test info output and log it.
#define LOG_WARN(LOGGER, MESSAGE)
Macro to conveniently test warn output and log it.
#define LOG_DEBUG(LOGGER, LEVEL, MESSAGE)
Macro to conveniently test debug output and log it.
const int CONTROL_RESULT_ERROR
Status code indicating a general failure.
ConstElementPtr createAnswer(const int status_code, const std::string &text, const ConstElementPtr &arg)
ConstElementPtr parseAnswer(int &rcode, const ConstElementPtr &msg)
const int CONTROL_RESULT_SUCCESS
Status code indicating a successful operation.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< Element > ElementPtr
void configureCommandChannel()
Initialize the command channel based on the staging configuration.
std::pair< std::string, isc::data::ConstElementPtr > ConfigPair
Combination of parameter name and configuration contents.
const isc::log::MessageID DHCP4_CONFIG_START
boost::shared_ptr< D2ClientConfig > D2ClientConfigPtr
Defines a pointer for D2ClientConfig instances.
const isc::log::MessageID DHCP4_PARSER_EXCEPTION
boost::shared_ptr< CfgOption > CfgOptionPtr
Non-const pointer.
boost::shared_ptr< CfgOptionDef > CfgOptionDefPtr
Non-const pointer.
boost::shared_ptr< CfgDbAccess > CfgDbAccessPtr
A pointer to the CfgDbAccess.
const isc::log::MessageID DHCP4_RESERVATIONS_LOOKUP_FIRST_ENABLED
isc::data::ConstElementPtr processDhcp4Config(isc::data::ConstElementPtr config_set)
Process a DHCPv4 confguration and return an answer stating if the configuration is valid,...
boost::shared_ptr< CfgIface > CfgIfacePtr
A pointer to the CfgIface .
const isc::log::MessageID DHCP4_CONFIG_PACKET_QUEUE
const isc::log::MessageID DHCP4_PARSER_COMMIT_EXCEPTION
boost::shared_ptr< SrvConfig > SrvConfigPtr
Non-const pointer to the SrvConfig.
const isc::log::MessageID DHCP4_PARSER_FAIL
std::vector< HostPtr > HostCollection
Collection of the Host objects.
boost::multi_index_container< Subnet4Ptr, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::tag< SubnetSubnetIdIndexTag >, boost::multi_index::const_mem_fun< Subnet, SubnetID, &Subnet::getID > >, boost::multi_index::ordered_unique< boost::multi_index::tag< SubnetPrefixIndexTag >, boost::multi_index::const_mem_fun< Subnet, std::string, &Subnet::toText > > > > Subnet4SimpleCollection
A simple collection of Subnet4 objects.
const int DBG_DHCP4_COMMAND
Debug level used to log receiving commands.
const isc::log::MessageID DHCP4_PARSER_COMMIT_FAIL
boost::shared_ptr< ClientClassDictionary > ClientClassDictionaryPtr
Defines a pointer to a ClientClassDictionary.
isc::data::ConstElementPtr configureDhcp4Server(Dhcpv4Srv &server, isc::data::ConstElementPtr config_set, bool check_only, bool extra_checks)
Configure DHCPv4 server (Dhcpv4Srv) with a set of configuration values.
boost::shared_ptr< CfgSubnets4 > CfgSubnets4Ptr
Non-const pointer.
const isc::log::MessageID DHCP4_CONFIG_COMPLETE
boost::multi_index_container< SharedNetwork4Ptr, boost::multi_index::indexed_by< boost::multi_index::random_access< boost::multi_index::tag< SharedNetworkRandomAccessIndexTag > >, boost::multi_index::hashed_non_unique< boost::multi_index::tag< SharedNetworkIdIndexTag >, boost::multi_index::const_mem_fun< data::BaseStampedElement, uint64_t, &data::BaseStampedElement::getId > >, boost::multi_index::ordered_unique< boost::multi_index::tag< SharedNetworkNameIndexTag >, boost::multi_index::const_mem_fun< SharedNetwork4, std::string, &SharedNetwork4::getName > >, boost::multi_index::ordered_non_unique< boost::multi_index::tag< SharedNetworkServerIdIndexTag >, boost::multi_index::const_mem_fun< Network4, asiolink::IOAddress, &Network4::getServerId > >, boost::multi_index::ordered_non_unique< boost::multi_index::tag< SharedNetworkModificationTimeIndexTag >, boost::multi_index::const_mem_fun< data::BaseStampedElement, boost::posix_time::ptime, &data::BaseStampedElement::getModificationTime > > > > SharedNetwork4Collection
Multi index container holding shared networks.
boost::shared_ptr< CfgSharedNetworks4 > CfgSharedNetworks4Ptr
Pointer to the configuration of IPv4 shared networks.
isc::log::Logger dhcp4_logger(DHCP4_APP_LOGGER_NAME)
Base logger for DHCPv4 server.
boost::shared_ptr< ConfigControlInfo > ConfigControlInfoPtr
Defines a pointer to a ConfigControlInfo.
Defines the logger used by the top-level component of kea-lfc.