diff --git a/src/bin/dhcp4/config_parser.cc b/src/bin/dhcp4/config_parser.cc index 795b61e8e3..5d353baad4 100644 --- a/src/bin/dhcp4/config_parser.cc +++ b/src/bin/dhcp4/config_parser.cc @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -1320,6 +1321,7 @@ DhcpConfigParser* createGlobalDhcp4ConfigParser(const std::string& config_id) { factories["subnet4"] = Subnets4ListConfigParser::factory; factories["option-data"] = OptionDataListParser::factory; factories["version"] = StringParser::factory; + factories["lease-database"] = DbAccessParser::factory; FactoryMap::iterator f = factories.find(config_id); if (f == factories.end()) { diff --git a/src/bin/dhcp4/dhcp4.spec b/src/bin/dhcp4/dhcp4.spec index 13acf832e6..4c5f261790 100644 --- a/src/bin/dhcp4/dhcp4.spec +++ b/src/bin/dhcp4/dhcp4.spec @@ -70,6 +70,44 @@ } }, + { "item_name": "lease-database", + "item_type": "map", + "item_optional": false, + "item_default": {"type": "memfile"}, + "map_item_spec": [ + { + "item_name": "type", + "item_type": "string", + "item_optional": false, + "item_default": "" + }, + { + "item_name": "name", + "item_type": "string", + "item_optional": true, + "item_default": "" + }, + { + "item_name": "user", + "item_type": "string", + "item_optional": true, + "item_default": "" + }, + { + "item_name": "host", + "item_type": "string", + "item_optional": true, + "item_default": "" + }, + { + "item_name": "password", + "item_type": "string", + "item_optional": true, + "item_default": "" + } + ] + }, + { "item_name": "subnet4", "item_type": "list", "item_optional": false,