NodeJS migration script for old Sqlite controller.db to new controller data format.

This commit is contained in:
Adam Ierymenko 2017-01-19 10:44:26 -08:00
parent 0fb3d1d582
commit e9007b1f56
6 changed files with 348 additions and 10 deletions

View file

@ -165,6 +165,7 @@ private:
if (!network.count("v6AssignMode")) network["v6AssignMode"] = {{"rfc4193",false},{"zt",false},{"6plane",false}};
if (!network.count("authTokens")) network["authTokens"] = nlohmann::json::array();
if (!network.count("capabilities")) network["capabilities"] = nlohmann::json::array();
if (!network.count("routes")) network["routes"] = nlohmann::json::array();
if (!network.count("ipAssignmentPools")) network["ipAssignmentPools"] = nlohmann::json::array();
if (!network.count("rules")) {
// If unspecified, rules are set to allow anything and behave like a flat L2 segment