summaryrefslogtreecommitdiff
path: root/keama/tests/samples/test-a6.json
blob: b992e31b76d95d66fecf01f076472e59a49a6a58 (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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
{
  /// This configuration declares some subnets but has no interfaces-config
  /// Reference Kea #5256
  "Dhcp6": {
    "option-def": [
      #
      # Define the DHCPv6 option space.
      #
      # Option numbers are assigned by IANA:
      # http://www.iana.org/assignments/dhcpv6-parameters
      #
      {
        "space": "dhcp6",
        "name": "time-servers",
        "code": 1040,
        "array": true,
        "type": "ipv6-address"
      },
      {
        "space": "dhcp6",
        "name": "time-offset",
        "code": 1041,
        "type": "int32"
      },
      #
      # Define the DOCSIS option space.
      # TODO: DOCSIS oro definition
      #
      {
        "space": "vendor-44910",
        "name": "tftp-servers",
        "code": 32,
        "array": true,
        "type": "ipv6-address"
      },
      {
        "space": "vendor-44910",
        "name": "cablelabs-configuration-file",
        "code": 33,
        "type": "string"
      },
      {
        "space": "vendor-44910",
        "name": "cablelabs-syslog-servers",
        "code": 34,
        "array": true,
        "type": "ipv6-address"
      },
      {
        "space": "vendor-44910",
        "name": "device-id",
        "code": 36,
        "type": "string"
      }
    ],
    "option-data": [
      # 
      # Declare some options.
      #
      {
        "space": "dhcp6",
        "name": "time-servers",
        "code": 1040,
        "data": "3ffe:bbbb:aaaa:aaaa::1, 3ffe:bbbb:aaaa:aaaa::2"
      },
      {
        "space": "vendor-44910",
        "name": "vendor-opts",
        "code": 17,
        "data": "44910"
      },
      {
        "space": "vendor-44910",
        "name": "tftp-servers",
        "code": 32,
        "data": "3ffe:cccc:aaaa:aaaa::1, 3ffe:cccc:aaaa:aaaa::2"
      }
    ],
//  /// Unsupported ddns-update-style interim
//  "ddns-update-style": "interim",
    "dhcp-ddns": {
      "enable-updates": true,
      "qualifying-suffix": "foo.com"
    },
    "host-reservation-identifiers": [
      "flex-id"
    ],
    /// The flexible host identifier is a premium feature
    "hooks-libraries": [
      {
        /// Please update the path here
        "library": "/path/libdhcp_flex_id.so",
        "parameters": {
          "identifier-expression": "option[1].hex"
        }
      }
    ],
    "subnet6": [
      #host cablemodem-2 {
      #	host-identifier option docsis.device-id 00:06:5B:50:99:F6;
      #	option dhcp6.time-servers 3ffe:dddd:aaaa:aaaa::1, 
      #				   3ffe:dddd:aaaa:aaaa::2;
      #	option docsis.tftp-servers 3ffe:dddd:aaaa:aaaa::1,
      #				   3ffe:dddd:aaaa:aaaa::2;
      #	option dhcp6.time-offset -14400;	# -4 hours
      #	option docsis.cablelabs-configuration-file "bootfile.cfg";
      #	option docsis.cablelabs-syslog-servers 3ffe:aaaa:aaaa:aaaa::1,
      #					       3ffe:aaaa:aaaa:aaaa::2;
      #}
      # XXX: for testing
      {
        "subnet": "3ffe:aaaa:aaaa:aaaa::/64",
        "reservations": [
          #
          # Per-host settings.
          #
          {
            "hostname": "cablemodem-1",
            "flex-id": "000100010c00a14100065b5099f6",
            "ip-addresses": [
              "3ffe:aaaa:aaaa:aaaa::ffff"
            ],
//          /// Only global qualifying-suffix is supported
//          "qualifying-suffix": "bar.com",
            "option-data": [
              {
                "space": "dhcp6",
                "name": "time-servers",
                "code": 1040,
//              "original-data": "3ffe:aaaa:aaaa:aaaa::1, \n\t\t\t\t   3ffe:aaaa:aaaa:aaaa::2",
                "data": "3ffe:aaaa:aaaa:aaaa::1, 3ffe:aaaa:aaaa:aaaa::2"
              },
              {
                "space": "vendor-44910",
                "name": "vendor-opts",
                "code": 17,
                "data": "44910"
              },
              {
                "space": "vendor-44910",
                "name": "tftp-servers",
                "code": 32,
//              "original-data": "3ffe:aaaa:aaaa:aaaa::1,\n\t\t\t\t   3ffe:aaaa:aaaa:aaaa::2",
                "data": "3ffe:aaaa:aaaa:aaaa::1, 3ffe:aaaa:aaaa:aaaa::2"
              },
              {
                "space": "dhcp6",
                "name": "time-offset",
                "code": 1041,
                "data": "-14400"
              },
              # -4 hours
              {
                "space": "vendor-44910",
                "name": "cablelabs-configuration-file",
                "code": 33,
                "data": "bootfile.cfg"
              },
              {
                "space": "vendor-44910",
                "name": "cablelabs-syslog-servers",
                "code": 34,
//              "original-data": "3ffe:aaaa:aaaa:aaaa::1,\n\t\t\t\t\t       3ffe:aaaa:aaaa:aaaa::2",
                "data": "3ffe:aaaa:aaaa:aaaa::1, 3ffe:aaaa:aaaa:aaaa::2"
              }
            ]
          }
        ]
      }
    ]
  }
}