xref: /netbsd-src/external/mpl/dhcp/dist/keama/tests/samples/test-a6.json (revision 3f351f34c6d827cf017cdcff3543f6ec0c88b420)
1{
2  #
3  # Define the DHCPv6 option space.
4  #
5  # Option numbers are assigned by IANA:
6  # http://www.iana.org/assignments/dhcpv6-parameters
7  #
8  /// This configuration declares some subnets but has no interfaces-config
9  /// Reference Kea #245
10  "Dhcp6": {
11    "option-def": [
12      {
13        "space": "dhcp6",
14        "name": "time-servers",
15        "code": 1040,
16        "array": true,
17        "type": "ipv6-address"
18      },
19      {
20        "space": "dhcp6",
21        "name": "time-offset",
22        "code": 1041,
23        "type": "int32"
24      }
25    ],
26    "option-data": [
27      #option docsis.device-id code 36 = string;
28      #
29      # Declare some options.
30      #
31      {
32        "space": "dhcp6",
33        "name": "time-servers",
34        "code": 1040,
35        "data": "3ffe:bbbb:aaaa:aaaa::1, 3ffe:bbbb:aaaa:aaaa::2"
36      },
37      {
38        "space": "dhcp6",
39        "name": "vendor-opts",
40        "code": 17,
41        "data": "4491"
42      },
43      {
44        "space": "vendor-4491",
45        "name": "tftp-servers",
46        "code": 32,
47        "data": "3ffe:cccc:aaaa:aaaa::1, 3ffe:cccc:aaaa:aaaa::2"
48      }
49    ],
50//  /// Unsupported ddns-update-style interim
51//  "ddns-update-style": "interim",
52    "dhcp-ddns": {
53      "enable-updates": true,
54      "qualifying-suffix": "foo.com"
55    },
56    "host-reservation-identifiers": [
57      "flex-id"
58    ],
59    /// The flexible host identifier is a premium feature
60    "hooks-libraries": [
61      {
62        /// Please update the path here
63        "library": "/path/libdhcp_flex_id.so",
64        "parameters": {
65          "identifier-expression": "option[1].hex"
66        }
67      }
68    ],
69    "subnet6": [
70      #host cablemodem-2 {
71      #	host-identifier option docsis.device-id 00:06:5B:50:99:F6;
72      #	option dhcp6.time-servers 3ffe:dddd:aaaa:aaaa::1,
73      #				   3ffe:dddd:aaaa:aaaa::2;
74      #	option docsis.tftp-servers 3ffe:dddd:aaaa:aaaa::1,
75      #				   3ffe:dddd:aaaa:aaaa::2;
76      #	option dhcp6.time-offset -14400;	# -4 hours
77      #	option docsis.cablelabs-configuration-file "bootfile.cfg";
78      #	option docsis.cablelabs-syslog-servers 3ffe:aaaa:aaaa:aaaa::1,
79      #					       3ffe:aaaa:aaaa:aaaa::2;
80      #}
81      # XXX: for testing
82      {
83        "id": 1,
84        "subnet": "3ffe:aaaa:aaaa:aaaa::/64",
85        "reservations": [
86          #
87          # Per-host settings.
88          #
89          {
90            "hostname": "cablemodem-1",
91            "flex-id": "000100010c00a14100065b5099f6",
92            "ip-addresses": [
93              "3ffe:aaaa:aaaa:aaaa::ffff"
94            ],
95//          /// Only global qualifying-suffix is supported
96//          "qualifying-suffix": "bar.com",
97            "option-data": [
98              {
99                "space": "dhcp6",
100                "name": "time-servers",
101                "code": 1040,
102//              "original-data": "3ffe:aaaa:aaaa:aaaa::1, \n\t\t\t\t   3ffe:aaaa:aaaa:aaaa::2",
103                "data": "3ffe:aaaa:aaaa:aaaa::1, 3ffe:aaaa:aaaa:aaaa::2"
104              },
105              {
106                "space": "dhcp6",
107                "name": "vendor-opts",
108                "code": 17,
109                "data": "4491"
110              },
111              {
112                "space": "vendor-4491",
113                "name": "tftp-servers",
114                "code": 32,
115//              "original-data": "3ffe:aaaa:aaaa:aaaa::1,\n\t\t\t\t   3ffe:aaaa:aaaa:aaaa::2",
116                "data": "3ffe:aaaa:aaaa:aaaa::1, 3ffe:aaaa:aaaa:aaaa::2"
117              },
118              {
119                "space": "dhcp6",
120                "name": "time-offset",
121                "code": 1041,
122                "data": "-14400"
123              },
124              # -4 hours
125              {
126                "space": "vendor-4491",
127                "name": "config-file",
128                "code": 33,
129                "data": "bootfile.cfg"
130              },
131              {
132                "space": "vendor-4491",
133                "name": "syslog-servers",
134                "code": 34,
135//              "original-data": "3ffe:aaaa:aaaa:aaaa::1,\n\t\t\t\t\t       3ffe:aaaa:aaaa:aaaa::2",
136                "data": "3ffe:aaaa:aaaa:aaaa::1, 3ffe:aaaa:aaaa:aaaa::2"
137              }
138            ]
139          }
140        ]
141      }
142    ]
143  }
144}
145