]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2066] Add default values to ACL rules
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 13 Aug 2012 11:08:02 +0000 (13:08 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 13 Aug 2012 11:12:31 +0000 (13:12 +0200)
It otherwise complained during config add somewhere/acl, that there's no
value. The defaults differ from module to module.

Also, some reindentation and removal of tabs is added.

src/bin/ddns/ddns.spec
src/bin/resolver/resolver.spec.pre.in
src/bin/xfrout/xfrout.spec.pre.in

index 70611e690fb9eeff9bea3201ab43eb6353a0db2a..3061cdc18d68855b8012b0943d4f5963ede81967 100644 (file)
@@ -12,8 +12,8 @@
           "item_type": "map",
           "item_optional": true,
           "item_default": {
-           "origin": "",
-           "class": "IN",
+          "origin": "",
+          "class": "IN",
             "update_acl": []
           },
           "map_item_spec": [
               "item_name": "update_acl",
               "item_type": "list",
               "item_optional": false,
-             "item_default": [],
+              "item_default": [],
               "list_item_spec": {
                 "item_name": "acl_element",
                 "item_type": "any",
-                "item_optional": true
+                "item_optional": true,
+                "item_default": {"action": "REJECT"}
               }
             }
           ]
index d6bb22675b001b9e8aeaa07f10b49bb440bb409d..138f4e38bbd87f3c981badace3cfe71429d60da8 100644 (file)
       },
       {
         "item_name": "query_acl",
-       "item_type": "list",
-       "item_optional": false,
-       "item_default": [
-         {
-           "action": "ACCEPT",
-           "from": "127.0.0.1"
-         },
-         {
-           "action": "ACCEPT",
-           "from": "::1"
-         }
-       ],
-       "list_item_spec": {
-         "item_name": "rule",
-         "item_type": "map",
-         "item_optional": false,
-         "item_default": {},
-         "map_item_spec": [
-           {
-             "item_name": "action",
-             "item_type": "string",
-             "item_optional": false,
-             "item_default": ""
-           },
-           {
-             "item_name": "from",
-             "item_type": "string",
-             "item_optional": false,
-             "item_default": ""
-           }
-         ]
+        "item_type": "list",
+        "item_optional": false,
+        "item_default": [
+          {
+            "action": "ACCEPT",
+            "from": "127.0.0.1"
+          },
+          {
+            "action": "ACCEPT",
+            "from": "::1"
+          }
+        ],
+        "list_item_spec": {
+          "item_name": "rule",
+          "item_type": "any",
+          "item_optional": false,
+          "item_default": {"action": "REJECT"}
         }
       }
     ],
index dfcc6d98f4b6b26bbab7335d7f293db86fa449d8..6b113b0bf28aed86eb6fc9702fe1d8313688dc13 100644 (file)
@@ -17,7 +17,8 @@
          {
              "item_name": "acl_element",
              "item_type": "any",
-             "item_optional": true
+             "item_optional": true,
+             "item_default": {"action": "ACCEPT"}
          }
        },
        {
@@ -80,7 +81,8 @@
                    {
                        "item_name": "acl_element",
                        "item_type": "any",
-                       "item_optional": true
+                       "item_optional": true,
+                       "item_default": {"action": "ACCEPT"}
                    }
                }
              ]