summaryrefslogtreecommitdiff
path: root/controller/EmbeddedNetworkController.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-05-04 17:22:24 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-05-04 17:22:24 -0700
commit909a14fb484178ba29bcc0bc4a3cb22baff1d040 (patch)
treec62f40eb336f5fa49aae962929022d1e3150b2ab /controller/EmbeddedNetworkController.hpp
parent107e3e41065a816354c3f383736c5abbb156b0d3 (diff)
downloadinfinitytier-909a14fb484178ba29bcc0bc4a3cb22baff1d040.tar.gz
infinitytier-909a14fb484178ba29bcc0bc4a3cb22baff1d040.zip
MTU support in controller.
Diffstat (limited to 'controller/EmbeddedNetworkController.hpp')
-rw-r--r--controller/EmbeddedNetworkController.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/controller/EmbeddedNetworkController.hpp b/controller/EmbeddedNetworkController.hpp
index ade7eb20..4f4660f8 100644
--- a/controller/EmbeddedNetworkController.hpp
+++ b/controller/EmbeddedNetworkController.hpp
@@ -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"] = {{