File: comments.json

package info (click to toggle)
isc-kea 3.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 62,036 kB
  • sloc: cpp: 594,791; sh: 26,896; lex: 8,540; yacc: 8,424; python: 1,065; xml: 149; makefile: 39
file content (142 lines) | stat: -rw-r--r-- 3,386 bytes parent folder | download
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// This is an example configuration file for the DHCPv6 server in Kea.
// It uses embedded (i.e., which will be included in configuration objects
// and not stripped by at lexical analysis) comments.

{ "Dhcp6":

{
   // Global scope
   "comment": "A DHCPv6 server",

   // In interface config
   "interfaces-config": {
       "comment": "Use wildcard",
       "interfaces": [ "*" ] },

   // In option definitions
   "option-def": [ {
       "comment": "An option definition",
       "name": "foo",
       "code": 100,
       "type": "ipv6-address",
       "space": "isc"
    } ],

   // In option data
   "option-data": [ {
       "comment": "Set option value",
       "name": "subscriber-id",
       "data": "ABCDEF0105",
       "csv-format": false
    } ],

   // In client classes
   "client-classes": [
       {
          "comment": "match all",
          "name": "all",
          "test": "'' == ''"
       },
       // Of course comments are optional
       {
          "name": "none"
       },
       // A comment and a user-context can be specified
       {
          "comment": "a comment",
          "name": "both",
          "user-context": {
              "version": 1
          }
       }
   ],

   // In control sockets (more for the agent)
   "control-sockets": [
       {
           "socket-type": "unix",
           "socket-name": "kea6-ctrl-socket",
           "user-context": { "comment": "Indirect comment" }
       },
       {
           "comment": "HTTP control socket",
           "socket-type": "http",
           "socket-address": "127.0.0.1",
           "socket-port": 8006,

           // In authentication
           "authentication": {
               "comment": "basic HTTP authentication",
               "type": "basic",
               // In basic HTTP authentication clients
               "clients": [ {
                   "user": "admin",
                   "password": "1234"
               } ]
           }
       }
   ],

   // In shared networks
   "shared-networks": [ {
       "comment": "A shared network",
       "name": "foo",

       // In subnets
       "subnet6": [
         {
           "comment": "A subnet",
           "subnet": "2001:db1::/64",
           "id": 100,

           // In pools
           "pools": [
             {
                "comment": "A pool",
                "pool": "2001:db1::/64"
             }
           ],

           // In prefix pools
           "pd-pools": [
             {
                "comment": "A prefix pool",
                "prefix": "2001:db2::",
                "prefix-len": 48,
                "delegated-len": 64
             }
           ],

           // In host reservations
           "reservations": [
             {
                "comment": "A host reservation",
                "hw-address": "AA:BB:CC:DD:EE:FF",
                "hostname": "foo.example.com",

                // Again in an option data
                "option-data": [ {
                    "comment": "An option in a reservation",
                    "name": "domain-search",
                    "data": "example.com"
                } ]
             }
           ]
         }
       ]
    } ],

   // In dhcp ddns
   "dhcp-ddns": {
       "comment": "No dynamic DNS",
       "enable-updates": false
   },

   // In loggers
   "loggers": [ {
       "comment": "A logger",
       "name": "kea-dhcp6"
   } ]
}

}