From e2509af163208f299735eefdb145289a3e90956e Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 12 Oct 2016 12:30:32 -0700 Subject: Fix bug in default rules init in new networks. --- controller/EmbeddedNetworkController.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/EmbeddedNetworkController.hpp b/controller/EmbeddedNetworkController.hpp index bce8890c..1e0fa576 100644 --- a/controller/EmbeddedNetworkController.hpp +++ b/controller/EmbeddedNetworkController.hpp @@ -168,10 +168,10 @@ private: 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 - network["rules"] = { + network["rules"] = {{ { "not",false }, { "type","ACTION_ACCEPT" } - }; + }}; } network["objtype"] = "network"; } -- cgit v1.2.3