MTU support in controller.

This commit is contained in:
Adam Ierymenko 2017-05-04 17:22:24 -07:00
parent 107e3e4106
commit 909a14fb48
3 changed files with 8 additions and 0 deletions

View file

@ -162,6 +162,7 @@ private:
if (!network.count("tags")) network["tags"] = nlohmann::json::array();
if (!network.count("routes")) network["routes"] = nlohmann::json::array();
if (!network.count("ipAssignmentPools")) network["ipAssignmentPools"] = nlohmann::json::array();
if (!network.count("mtu")) network["mtu"] = ZT_DEFAULT_MTU;
if (!network.count("rules")) {
// If unspecified, rules are set to allow anything and behave like a flat L2 segment
network["rules"] = {{