summaryrefslogtreecommitdiffstats
path: root/src/bin/xfrout/xfrout.spec.pre.in
blob: dfcc6d98f4b6b26bbab7335d7f293db86fa449d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
  "module_spec": {
     "module_name": "Xfrout",
     "config_data": [
       {
         "item_name": "transfers_out",
         "item_type": "integer",
         "item_optional": false,
         "item_default": 10
       },
       {
         "item_name": "transfer_acl",
         "item_type": "list",
         "item_optional": false,
         "item_default": [{"action": "ACCEPT"}],
         "list_item_spec":
         {
             "item_name": "acl_element",
             "item_type": "any",
             "item_optional": true
         }
       },
       {
         "item_name": "also_notify",
         "item_type": "list",
         "item_optional": true,
         "item_default": [],
         "list_item_spec":
         {
             "item_name": "also_notify_element",
             "item_type": "map",
             "item_optional": true,
             "item_default": {},
             "map_item_spec": [
               {
                   "item_name": "address",
                   "item_type": "string",
                   "item_optional": false,
                   "item_default": ""
               },
               {
                   "item_name": "port",
                   "item_type": "integer",
                   "item_optional": false,
                   "item_default": 0
               }
             ]
         }
       },
       {
         "item_name": "zone_config",
         "item_type": "list",
         "item_optional": true,
         "item_default": [],
         "list_item_spec":
         {
             "item_name": "zone_config_element",
             "item_type": "map",
             "item_optional": true,
             "item_default": { "origin": "" },
             "map_item_spec": [
               {
                   "item_name": "origin",
                   "item_type": "string",
                   "item_optional": false,
                   "item_default": ""
               },
               {
                   "item_name": "class",
                   "item_type": "string",
                   "item_optional": false,
                   "item_default": "IN"
               },
               {
                   "item_name": "transfer_acl",
                   "item_type": "list",
                   "item_optional": true,
                   "item_default": [{"action": "ACCEPT"}],
                   "list_item_spec":
                   {
                       "item_name": "acl_element",
                       "item_type": "any",
                       "item_optional": true
                   }
               }
             ]
         }
       }
      ],
      "commands": [
        {
          "command_name": "shutdown",
          "command_description": "Shut down Xfrout",
          "command_args": [
          {
            "item_name": "pid",
            "item_type": "integer",
            "item_optional": true
          }
        ]
        },
        { "command_name": "notify",
          "command_description": "Send notifies for zone",
          "command_args": [
          { "item_name": "zone_name",
            "item_type": "string",
            "item_optional": false,
            "item_default": "" },
          { "item_name": "zone_class",
            "item_type": "string",
            "item_optional": true,
            "item_default": "IN"
          } ]
        }
      ]
  }
}