mgmt,main: configure tables with defaults when missing config section/values
refs: #1743
Change-Id: Id0c24bd2b2e86df763892d194f9c04777a369d0c
diff --git a/daemon/mgmt/tables-config-section.hpp b/daemon/mgmt/tables-config-section.hpp
index 482ceca..4571a59 100644
--- a/daemon/mgmt/tables-config-section.hpp
+++ b/daemon/mgmt/tables-config-section.hpp
@@ -39,7 +39,6 @@
class TablesConfigSection
{
public:
-
TablesConfigSection(Cs& cs,
Pit& pit,
Fib& fib,
@@ -50,6 +49,11 @@
setConfigFile(ConfigFile& configFile);
void
+ ensureTablesAreConfigured();
+
+private:
+
+ void
onConfig(const ConfigSection& configSection,
bool isDryRun,
const std::string& filename);
@@ -60,6 +64,12 @@
// Fib& m_fib;
// StrategyChoice& m_strategyChoice;
// Measurements& m_measurements;
+
+ bool m_areTablesConfigured;
+
+private:
+
+ static const size_t DEFAULT_CS_MAX_PACKETS;
};
} // namespace nfd