Kea Configuration File Syntax (BNF)
Kea consists of several daemons, each with its own configuration syntax. The following sections provide a complete syntax of all possible parameters, written in Backus-Naur Form (BNF). See this Wikipedia article on BNF for more information.
BNF Grammar for DHCPv4
This grammar is generated from dhcp4_parser.yy
. See The DHCPv4 Server for more details.
1 Grammar
2
3 $accept ::= start EOF
4
5 start ::= TOPLEVEL_JSON sub_json
6
7 start ::= TOPLEVEL_DHCP4 syntax_map
8
9 start ::= SUB_DHCP4 sub_dhcp4
10
11 start ::= SUB_INTERFACES4 sub_interfaces4
12
13 start ::= SUB_SUBNET4 sub_subnet4
14
15 start ::= SUB_POOL4 sub_pool4
16
17 start ::= SUB_RESERVATION sub_reservation
18
19 start ::= SUB_OPTION_DEFS sub_option_def_list
20
21 start ::= SUB_OPTION_DEF sub_option_def
22
23 start ::= SUB_OPTION_DATA sub_option_data
24
25 start ::= SUB_HOOKS_LIBRARY sub_hooks_library
26
27 start ::= SUB_DHCP_DDNS sub_dhcp_ddns
28
29 start ::= SUB_CONFIG_CONTROL sub_config_control
30
31 value ::= INTEGER
32 | FLOAT
33 | BOOLEAN
34 | STRING
35 | NULL
36 | map2
37 | list_generic
38
39 sub_json ::= value
40
41 map2 ::= "{" map_content "}"
42
43 map_value ::= map2
44
45 map_content ::=
46 | not_empty_map
47
48 not_empty_map ::= STRING ":" value
49 | not_empty_map "," STRING ":" value
50 | not_empty_map ","
51
52 list_generic ::= "[" list_content "]"
53
54 list_content ::=
55 | not_empty_list
56
57 not_empty_list ::= value
58 | not_empty_list "," value
59 | not_empty_list ","
60
61 list_strings ::= "[" list_strings_content "]"
62
63 list_strings_content ::=
64 | not_empty_list_strings
65
66 not_empty_list_strings ::= STRING
67 | not_empty_list_strings "," STRING
68 | not_empty_list_strings ","
69
70 unknown_map_entry ::= STRING ":"
71
72 syntax_map ::= "{" global_object "}"
73
74 global_object ::= "Dhcp4" ":" "{" global_params "}"
75 | global_object_comma
76
77 global_object_comma ::= global_object ","
78
79 sub_dhcp4 ::= "{" global_params "}"
80
81 global_params ::= global_param
82 | global_params "," global_param
83 | global_params ","
84
85 global_param ::= valid_lifetime
86 | min_valid_lifetime
87 | max_valid_lifetime
88 | renew_timer
89 | rebind_timer
90 | decline_probation_period
91 | subnet4_list
92 | shared_networks
93 | interfaces_config
94 | lease_database
95 | hosts_database
96 | hosts_databases
97 | host_reservation_identifiers
98 | client_classes
99 | option_def_list
100 | option_data_list
101 | hooks_libraries
102 | expired_leases_processing
103 | dhcp4o6_port
104 | control_socket
105 | control_sockets
106 | dhcp_queue_control
107 | dhcp_ddns
108 | echo_client_id
109 | match_client_id
110 | authoritative
111 | next_server
112 | server_hostname
113 | boot_file_name
114 | user_context
115 | comment
116 | sanity_checks
117 | reservations
118 | config_control
119 | server_tag
120 | reservations_global
121 | reservations_in_subnet
122 | reservations_out_of_pool
123 | calculate_tee_times
124 | t1_percent
125 | t2_percent
126 | cache_threshold
127 | cache_max_age
128 | loggers
129 | hostname_char_set
130 | hostname_char_replacement
131 | ddns_send_updates
132 | ddns_override_no_update
133 | ddns_override_client_update
134 | ddns_replace_client_name
135 | ddns_generated_prefix
136 | ddns_qualifying_suffix
137 | ddns_update_on_renew
138 | ddns_use_conflict_resolution
139 | ddns_conflict_resolution_mode
140 | ddns_ttl_percent
141 | store_extended_info
142 | statistic_default_sample_count
143 | statistic_default_sample_age
144 | dhcp_multi_threading
145 | early_global_reservations_lookup
146 | ip_reservations_unique
147 | reservations_lookup_first
148 | compatibility
149 | parked_packet_limit
150 | allocator
151 | offer_lifetime
152 | stash_agent_options
153 | unknown_map_entry
154
155 valid_lifetime ::= "valid-lifetime" ":" INTEGER
156
157 min_valid_lifetime ::= "min-valid-lifetime" ":" INTEGER
158
159 max_valid_lifetime ::= "max-valid-lifetime" ":" INTEGER
160
161 renew_timer ::= "renew-timer" ":" INTEGER
162
163 rebind_timer ::= "rebind-timer" ":" INTEGER
164
165 calculate_tee_times ::= "calculate-tee-times" ":" BOOLEAN
166
167 t1_percent ::= "t1-percent" ":" FLOAT
168
169 t2_percent ::= "t2-percent" ":" FLOAT
170
171 cache_threshold ::= "cache-threshold" ":" FLOAT
172
173 cache_max_age ::= "cache-max-age" ":" INTEGER
174
175 decline_probation_period ::= "decline-probation-period" ":" INTEGER
176
177 server_tag ::= "server-tag" ":" STRING
178
179 parked_packet_limit ::= "parked-packet-limit" ":" INTEGER
180
181 allocator ::= "allocator" ":" STRING
182
183 echo_client_id ::= "echo-client-id" ":" BOOLEAN
184
185 match_client_id ::= "match-client-id" ":" BOOLEAN
186
187 authoritative ::= "authoritative" ":" BOOLEAN
188
189 ddns_send_updates ::= "ddns-send-updates" ":" BOOLEAN
190
191 ddns_override_no_update ::= "ddns-override-no-update" ":" BOOLEAN
192
193 ddns_override_client_update ::= "ddns-override-client-update" ":" BOOLEAN
194
195 ddns_replace_client_name ::= "ddns-replace-client-name" ":" ddns_replace_client_name_value
196
197 ddns_replace_client_name_value ::= "when-present"
198 | "never"
199 | "always"
200 | "when-not-present"
201 | BOOLEAN
202
203 ddns_generated_prefix ::= "ddns-generated-prefix" ":" STRING
204
205 ddns_qualifying_suffix ::= "ddns-qualifying-suffix" ":" STRING
206
207 ddns_update_on_renew ::= "ddns-update-on-renew" ":" BOOLEAN
208
209 ddns_use_conflict_resolution ::= "ddns-use-conflict-resolution" ":" BOOLEAN
210
211 ddns_conflict_resolution_mode ::= "ddns-conflict-resolution-mode" ":" ddns_conflict_resolution_mode_value
212
213 ddns_conflict_resolution_mode_value ::= "check-with-dhcid"
214 | "no-check-with-dhcid"
215 | "check-exists-with-dhcid"
216 | "no-check-without-dhcid"
217
218 ddns_ttl_percent ::= "ddns-ttl-percent" ":" FLOAT
219
220 hostname_char_set ::= "hostname-char-set" ":" STRING
221
222 hostname_char_replacement ::= "hostname-char-replacement" ":" STRING
223
224 store_extended_info ::= "store-extended-info" ":" BOOLEAN
225
226 statistic_default_sample_count ::= "statistic-default-sample-count" ":" INTEGER
227
228 statistic_default_sample_age ::= "statistic-default-sample-age" ":" INTEGER
229
230 early_global_reservations_lookup ::= "early-global-reservations-lookup" ":" BOOLEAN
231
232 ip_reservations_unique ::= "ip-reservations-unique" ":" BOOLEAN
233
234 reservations_lookup_first ::= "reservations-lookup-first" ":" BOOLEAN
235
236 offer_lifetime ::= "offer-lifetime" ":" INTEGER
237
238 stash_agent_options ::= "stash-agent-options" ":" BOOLEAN
239
240 interfaces_config ::= "interfaces-config" ":" "{" interfaces_config_params "}"
241
242 interfaces_config_params ::= interfaces_config_param
243 | interfaces_config_params "," interfaces_config_param
244 | interfaces_config_params ","
245
246 interfaces_config_param ::= interfaces_list
247 | dhcp_socket_type
248 | outbound_interface
249 | re_detect
250 | service_sockets_require_all
251 | service_sockets_retry_wait_time
252 | service_sockets_max_retries
253 | user_context
254 | comment
255 | unknown_map_entry
256
257 sub_interfaces4 ::= "{" interfaces_config_params "}"
258
259 interfaces_list ::= "interfaces" ":" list_strings
260
261 dhcp_socket_type ::= "dhcp-socket-type" ":" socket_type
262
263 socket_type ::= "raw"
264 | "udp"
265
266 outbound_interface ::= "outbound-interface" ":" outbound_interface_value
267
268 outbound_interface_value ::= "same-as-inbound"
269 | "use-routing"
270
271 re_detect ::= "re-detect" ":" BOOLEAN
272
273 service_sockets_require_all ::= "service-sockets-require-all" ":" BOOLEAN
274
275 service_sockets_retry_wait_time ::= "service-sockets-retry-wait-time" ":" INTEGER
276
277 service_sockets_max_retries ::= "service-sockets-max-retries" ":" INTEGER
278
279 lease_database ::= "lease-database" ":" "{" database_map_params "}"
280
281 sanity_checks ::= "sanity-checks" ":" "{" sanity_checks_params "}"
282
283 sanity_checks_params ::= sanity_checks_param
284 | sanity_checks_params "," sanity_checks_param
285 | sanity_checks_params ","
286
287 sanity_checks_param ::= lease_checks
288 | extended_info_checks
289
290 lease_checks ::= "lease-checks" ":" STRING
291
292 extended_info_checks ::= "extended-info-checks" ":" STRING
293
294 hosts_database ::= "hosts-database" ":" "{" database_map_params "}"
295
296 hosts_databases ::= "hosts-databases" ":" "[" database_list "]"
297
298 database_list ::=
299 | not_empty_database_list
300
301 not_empty_database_list ::= database
302 | not_empty_database_list "," database
303 | not_empty_database_list ","
304
305 database ::= "{" database_map_params "}"
306
307 database_map_params ::= database_map_param
308 | database_map_params "," database_map_param
309 | database_map_params ","
310
311 database_map_param ::= database_type
312 | user
313 | password
314 | host
315 | port
316 | name
317 | persist
318 | lfc_interval
319 | readonly
320 | connect_timeout
321 | read_timeout
322 | write_timeout
323 | tcp_user_timeout
324 | max_reconnect_tries
325 | reconnect_wait_time
326 | on_fail
327 | retry_on_startup
328 | max_row_errors
329 | trust_anchor
330 | cert_file
331 | key_file
332 | cipher_list
333 | unknown_map_entry
334
335 database_type ::= "type" ":" db_type
336
337 db_type ::= "memfile"
338 | "mysql"
339 | "postgresql"
340
341 user ::= "user" ":" STRING
342
343 password ::= "password" ":" STRING
344
345 host ::= "host" ":" STRING
346
347 port ::= "port" ":" INTEGER
348
349 name ::= "name" ":" STRING
350
351 persist ::= "persist" ":" BOOLEAN
352
353 lfc_interval ::= "lfc-interval" ":" INTEGER
354
355 readonly ::= "readonly" ":" BOOLEAN
356
357 connect_timeout ::= "connect-timeout" ":" INTEGER
358
359 read_timeout ::= "read-timeout" ":" INTEGER
360
361 write_timeout ::= "write-timeout" ":" INTEGER
362
363 tcp_user_timeout ::= "tcp-user-timeout" ":" INTEGER
364
365 max_reconnect_tries ::= "max-reconnect-tries" ":" INTEGER
366
367 reconnect_wait_time ::= "reconnect-wait-time" ":" INTEGER
368
369 on_fail ::= "on-fail" ":" on_fail_mode
370
371 on_fail_mode ::= "stop-retry-exit"
372 | "serve-retry-exit"
373 | "serve-retry-continue"
374
375 retry_on_startup ::= "retry-on-startup" ":" BOOLEAN
376
377 max_row_errors ::= "max-row-errors" ":" INTEGER
378
379 trust_anchor ::= "trust-anchor" ":" STRING
380
381 cert_file ::= "cert-file" ":" STRING
382
383 key_file ::= "key-file" ":" STRING
384
385 cipher_list ::= "cipher-list" ":" STRING
386
387 host_reservation_identifiers ::= "host-reservation-identifiers" ":" "[" host_reservation_identifiers_list "]"
388
389 host_reservation_identifiers_list ::= host_reservation_identifier
390 | host_reservation_identifiers_list "," host_reservation_identifier
391 | host_reservation_identifiers_list ","
392
393 host_reservation_identifier ::= duid_id
394 | hw_address_id
395 | circuit_id
396 | client_id
397 | flex_id
398
399 duid_id ::= "duid"
400
401 hw_address_id ::= "hw-address"
402
403 circuit_id ::= "circuit-id"
404
405 client_id ::= "client-id"
406
407 flex_id ::= "flex-id"
408
409 dhcp_multi_threading ::= "multi-threading" ":" "{" multi_threading_params "}"
410
411 multi_threading_params ::= multi_threading_param
412 | multi_threading_params "," multi_threading_param
413 | multi_threading_params ","
414
415 multi_threading_param ::= enable_multi_threading
416 | thread_pool_size
417 | packet_queue_size
418 | user_context
419 | comment
420 | unknown_map_entry
421
422 enable_multi_threading ::= "enable-multi-threading" ":" BOOLEAN
423
424 thread_pool_size ::= "thread-pool-size" ":" INTEGER
425
426 packet_queue_size ::= "packet-queue-size" ":" INTEGER
427
428 hooks_libraries ::= "hooks-libraries" ":" "[" hooks_libraries_list "]"
429
430 hooks_libraries_list ::=
431 | not_empty_hooks_libraries_list
432
433 not_empty_hooks_libraries_list ::= hooks_library
434 | not_empty_hooks_libraries_list "," hooks_library
435 | not_empty_hooks_libraries_list ","
436
437 hooks_library ::= "{" hooks_params "}"
438
439 sub_hooks_library ::= "{" hooks_params "}"
440
441 hooks_params ::= hooks_param
442 | hooks_params "," hooks_param
443 | hooks_params ","
444 | unknown_map_entry
445
446 hooks_param ::= library
447 | parameters
448
449 library ::= "library" ":" STRING
450
451 parameters ::= "parameters" ":" map_value
452
453 expired_leases_processing ::= "expired-leases-processing" ":" "{" expired_leases_params "}"
454
455 expired_leases_params ::= expired_leases_param
456 | expired_leases_params "," expired_leases_param
457 | expired_leases_params ","
458
459 expired_leases_param ::= reclaim_timer_wait_time
460 | flush_reclaimed_timer_wait_time
461 | hold_reclaimed_time
462 | max_reclaim_leases
463 | max_reclaim_time
464 | unwarned_reclaim_cycles
465
466 reclaim_timer_wait_time ::= "reclaim-timer-wait-time" ":" INTEGER
467
468 flush_reclaimed_timer_wait_time ::= "flush-reclaimed-timer-wait-time" ":" INTEGER
469
470 hold_reclaimed_time ::= "hold-reclaimed-time" ":" INTEGER
471
472 max_reclaim_leases ::= "max-reclaim-leases" ":" INTEGER
473
474 max_reclaim_time ::= "max-reclaim-time" ":" INTEGER
475
476 unwarned_reclaim_cycles ::= "unwarned-reclaim-cycles" ":" INTEGER
477
478 subnet4_list ::= "subnet4" ":" "[" subnet4_list_content "]"
479
480 subnet4_list_content ::=
481 | not_empty_subnet4_list
482
483 not_empty_subnet4_list ::= subnet4
484 | not_empty_subnet4_list "," subnet4
485 | not_empty_subnet4_list ","
486
487 subnet4 ::= "{" subnet4_params "}"
488
489 sub_subnet4 ::= "{" subnet4_params "}"
490
491 subnet4_params ::= subnet4_param
492 | subnet4_params "," subnet4_param
493 | subnet4_params ","
494
495 subnet4_param ::= valid_lifetime
496 | min_valid_lifetime
497 | max_valid_lifetime
498 | renew_timer
499 | rebind_timer
500 | option_data_list
501 | pools_list
502 | subnet
503 | interface
504 | id
505 | client_class
506 | require_client_classes
507 | reservations
508 | reservations_global
509 | reservations_in_subnet
510 | reservations_out_of_pool
511 | relay
512 | match_client_id
513 | authoritative
514 | next_server
515 | server_hostname
516 | boot_file_name
517 | subnet_4o6_interface
518 | subnet_4o6_interface_id
519 | subnet_4o6_subnet
520 | user_context
521 | comment
522 | calculate_tee_times
523 | t1_percent
524 | t2_percent
525 | cache_threshold
526 | cache_max_age
527 | ddns_send_updates
528 | ddns_override_no_update
529 | ddns_override_client_update
530 | ddns_replace_client_name
531 | ddns_generated_prefix
532 | ddns_qualifying_suffix
533 | ddns_update_on_renew
534 | ddns_use_conflict_resolution
535 | ddns_conflict_resolution_mode
536 | ddns_ttl_percent
537 | hostname_char_set
538 | hostname_char_replacement
539 | store_extended_info
540 | allocator
541 | offer_lifetime
542 | unknown_map_entry
543
544 subnet ::= "subnet" ":" STRING
545
546 subnet_4o6_interface ::= "4o6-interface" ":" STRING
547
548 subnet_4o6_interface_id ::= "4o6-interface-id" ":" STRING
549
550 subnet_4o6_subnet ::= "4o6-subnet" ":" STRING
551
552 interface ::= "interface" ":" STRING
553
554 client_class ::= "client-class" ":" STRING
555
556 require_client_classes ::= "require-client-classes" ":" list_strings
557
558 reservations_global ::= "reservations-global" ":" BOOLEAN
559
560 reservations_in_subnet ::= "reservations-in-subnet" ":" BOOLEAN
561
562 reservations_out_of_pool ::= "reservations-out-of-pool" ":" BOOLEAN
563
564 id ::= "id" ":" INTEGER
565
566 shared_networks ::= "shared-networks" ":" "[" shared_networks_content "]"
567
568 shared_networks_content ::=
569 | shared_networks_list
570
571 shared_networks_list ::= shared_network
572 | shared_networks_list "," shared_network
573 | shared_networks_list ","
574
575 shared_network ::= "{" shared_network_params "}"
576
577 shared_network_params ::= shared_network_param
578 | shared_network_params "," shared_network_param
579 | shared_network_params ","
580
581 shared_network_param ::= name
582 | subnet4_list
583 | interface
584 | renew_timer
585 | rebind_timer
586 | option_data_list
587 | match_client_id
588 | authoritative
589 | next_server
590 | server_hostname
591 | boot_file_name
592 | relay
593 | reservations_global
594 | reservations_in_subnet
595 | reservations_out_of_pool
596 | client_class
597 | require_client_classes
598 | valid_lifetime
599 | min_valid_lifetime
600 | max_valid_lifetime
601 | user_context
602 | comment
603 | calculate_tee_times
604 | t1_percent
605 | t2_percent
606 | cache_threshold
607 | cache_max_age
608 | ddns_send_updates
609 | ddns_override_no_update
610 | ddns_override_client_update
611 | ddns_replace_client_name
612 | ddns_generated_prefix
613 | ddns_qualifying_suffix
614 | ddns_update_on_renew
615 | ddns_use_conflict_resolution
616 | ddns_conflict_resolution_mode
617 | ddns_ttl_percent
618 | hostname_char_set
619 | hostname_char_replacement
620 | store_extended_info
621 | allocator
622 | offer_lifetime
623 | unknown_map_entry
624
625 option_def_list ::= "option-def" ":" "[" option_def_list_content "]"
626
627 sub_option_def_list ::= "{" option_def_list "}"
628
629 option_def_list_content ::=
630 | not_empty_option_def_list
631
632 not_empty_option_def_list ::= option_def_entry
633 | not_empty_option_def_list "," option_def_entry
634 | not_empty_option_def_list ","
635
636 option_def_entry ::= "{" option_def_params "}"
637
638 sub_option_def ::= "{" option_def_params "}"
639
640 option_def_params ::=
641 | not_empty_option_def_params
642
643 not_empty_option_def_params ::= option_def_param
644 | not_empty_option_def_params "," option_def_param
645 | not_empty_option_def_params ","
646
647 option_def_param ::= option_def_name
648 | option_def_code
649 | option_def_type
650 | option_def_record_types
651 | option_def_space
652 | option_def_encapsulate
653 | option_def_array
654 | user_context
655 | comment
656 | unknown_map_entry
657
658 option_def_name ::= name
659
660 code ::= "code" ":" INTEGER
661
662 option_def_code ::= code
663
664 option_def_type ::= "type" ":" STRING
665
666 option_def_record_types ::= "record-types" ":" STRING
667
668 space ::= "space" ":" STRING
669
670 option_def_space ::= space
671
672 option_def_encapsulate ::= "encapsulate" ":" STRING
673
674 option_def_array ::= "array" ":" BOOLEAN
675
676 option_data_list ::= "option-data" ":" "[" option_data_list_content "]"
677
678 option_data_list_content ::=
679 | not_empty_option_data_list
680
681 not_empty_option_data_list ::= option_data_entry
682 | not_empty_option_data_list "," option_data_entry
683 | not_empty_option_data_list ","
684
685 option_data_entry ::= "{" option_data_params "}"
686
687 sub_option_data ::= "{" option_data_params "}"
688
689 option_data_params ::=
690 | not_empty_option_data_params
691
692 not_empty_option_data_params ::= option_data_param
693 | not_empty_option_data_params "," option_data_param
694 | not_empty_option_data_params ","
695
696 option_data_param ::= option_data_name
697 | option_data_data
698 | option_data_code
699 | option_data_space
700 | option_data_csv_format
701 | option_data_always_send
702 | option_data_never_send
703 | user_context
704 | comment
705 | unknown_map_entry
706
707 option_data_name ::= name
708
709 option_data_data ::= "data" ":" STRING
710
711 option_data_code ::= code
712
713 option_data_space ::= space
714
715 option_data_csv_format ::= "csv-format" ":" BOOLEAN
716
717 option_data_always_send ::= "always-send" ":" BOOLEAN
718
719 option_data_never_send ::= "never-send" ":" BOOLEAN
720
721 pools_list ::= "pools" ":" "[" pools_list_content "]"
722
723 pools_list_content ::=
724 | not_empty_pools_list
725
726 not_empty_pools_list ::= pool_list_entry
727 | not_empty_pools_list "," pool_list_entry
728 | not_empty_pools_list ","
729
730 pool_list_entry ::= "{" pool_params "}"
731
732 sub_pool4 ::= "{" pool_params "}"
733
734 pool_params ::= pool_param
735 | pool_params "," pool_param
736 | pool_params ","
737
738 pool_param ::= pool_entry
739 | pool_id
740 | option_data_list
741 | client_class
742 | require_client_classes
743 | user_context
744 | comment
745 | unknown_map_entry
746
747 pool_entry ::= "pool" ":" STRING
748
749 pool_id ::= "pool-id" ":" INTEGER
750
751 user_context ::= "user-context" ":" map_value
752
753 comment ::= "comment" ":" STRING
754
755 reservations ::= "reservations" ":" "[" reservations_list "]"
756
757 reservations_list ::=
758 | not_empty_reservations_list
759
760 not_empty_reservations_list ::= reservation
761 | not_empty_reservations_list "," reservation
762 | not_empty_reservations_list ","
763
764 reservation ::= "{" reservation_params "}"
765
766 sub_reservation ::= "{" reservation_params "}"
767
768 reservation_params ::=
769 | not_empty_reservation_params
770
771 not_empty_reservation_params ::= reservation_param
772 | not_empty_reservation_params "," reservation_param
773 | not_empty_reservation_params ","
774
775 reservation_param ::= duid
776 | reservation_client_classes
777 | client_id_value
778 | circuit_id_value
779 | flex_id_value
780 | ip_address
781 | hw_address
782 | hostname
783 | option_data_list
784 | next_server
785 | server_hostname
786 | boot_file_name
787 | user_context
788 | comment
789 | unknown_map_entry
790
791 next_server ::= "next-server" ":" STRING
792
793 server_hostname ::= "server-hostname" ":" STRING
794
795 boot_file_name ::= "boot-file-name" ":" STRING
796
797 ip_address ::= "ip-address" ":" STRING
798
799 duid ::= "duid" ":" STRING
800
801 hw_address ::= "hw-address" ":" STRING
802
803 client_id_value ::= "client-id" ":" STRING
804
805 circuit_id_value ::= "circuit-id" ":" STRING
806
807 flex_id_value ::= "flex-id" ":" STRING
808
809 hostname ::= "hostname" ":" STRING
810
811 reservation_client_classes ::= "client-classes" ":" list_strings
812
813 relay ::= "relay" ":" "{" relay_map "}"
814
815 relay_map ::= ip_addresses
816
817 ip_addresses ::= "ip-addresses" ":" list_strings
818
819 client_classes ::= "client-classes" ":" "[" client_classes_list "]"
820
821 client_classes_list ::= client_class_entry
822 | client_classes_list "," client_class_entry
823 | client_classes_list ","
824
825 client_class_entry ::= "{" client_class_params "}"
826
827 client_class_params ::=
828 | not_empty_client_class_params
829
830 not_empty_client_class_params ::= client_class_param
831 | not_empty_client_class_params "," client_class_param
832 | not_empty_client_class_params ","
833
834 client_class_param ::= client_class_name
835 | client_class_test
836 | client_class_template_test
837 | only_if_required
838 | option_def_list
839 | option_data_list
840 | next_server
841 | server_hostname
842 | boot_file_name
843 | user_context
844 | comment
845 | unknown_map_entry
846 | valid_lifetime
847 | min_valid_lifetime
848 | max_valid_lifetime
849 | offer_lifetime
850
851 client_class_name ::= name
852
853 client_class_test ::= "test" ":" STRING
854
855 client_class_template_test ::= "template-test" ":" STRING
856
857 only_if_required ::= "only-if-required" ":" BOOLEAN
858
859 dhcp4o6_port ::= "dhcp4o6-port" ":" INTEGER
860
861 control_socket ::= "control-socket" ":" "{" control_socket_params "}"
862
863 control_sockets ::= "control-sockets" ":" "[" control_socket_list "]"
864
865 control_socket_list ::=
866 | not_empty_control_socket_list
867
868 not_empty_control_socket_list ::= control_socket_entry
869 | not_empty_control_socket_list "," control_socket_entry
870 | not_empty_control_socket_list ","
871
872 control_socket_entry ::= "{" control_socket_params "}"
873
874 control_socket_params ::= control_socket_param
875 | control_socket_params "," control_socket_param
876 | control_socket_params ","
877
878 control_socket_param ::= control_socket_type
879 | control_socket_name
880 | control_socket_address
881 | control_socket_port
882 | authentication
883 | trust_anchor
884 | cert_file
885 | key_file
886 | cert_required
887 | user_context
888 | comment
889 | unknown_map_entry
890
891 control_socket_type ::= "socket-type" ":" control_socket_type_value
892
893 control_socket_type_value ::= "unix"
894 | "http"
895 | "https"
896
897 control_socket_name ::= "socket-name" ":" STRING
898
899 control_socket_address ::= "socket-address" ":" STRING
900
901 control_socket_port ::= "socket-port" ":" INTEGER
902
903 cert_required ::= "cert-required" ":" BOOLEAN
904
905 authentication ::= "authentication" ":" "{" auth_params "}"
906
907 auth_params ::= auth_param
908 | auth_params "," auth_param
909 | auth_params ","
910
911 auth_param ::= auth_type
912 | realm
913 | directory
914 | clients
915 | comment
916 | user_context
917 | unknown_map_entry
918
919 auth_type ::= "type" ":" auth_type_value
920
921 auth_type_value ::= "basic"
922
923 realm ::= "realm" ":" STRING
924
925 directory ::= "directory" ":" STRING
926
927 clients ::= "clients" ":" "[" clients_list "]"
928
929 clients_list ::=
930 | not_empty_clients_list
931
932 not_empty_clients_list ::= basic_auth
933 | not_empty_clients_list "," basic_auth
934 | not_empty_clients_list ","
935
936 basic_auth ::= "{" clients_params "}"
937
938 clients_params ::= clients_param
939 | clients_params "," clients_param
940 | clients_params ","
941
942 clients_param ::= user
943 | user_file
944 | password
945 | password_file
946 | user_context
947 | comment
948 | unknown_map_entry
949
950 user_file ::= "user-file" ":" STRING
951
952 password_file ::= "password-file" ":" STRING
953
954 dhcp_queue_control ::= "dhcp-queue-control" ":" "{" queue_control_params "}"
955
956 queue_control_params ::= queue_control_param
957 | queue_control_params "," queue_control_param
958 | queue_control_params ","
959
960 queue_control_param ::= enable_queue
961 | queue_type
962 | capacity
963 | user_context
964 | comment
965 | arbitrary_map_entry
966
967 enable_queue ::= "enable-queue" ":" BOOLEAN
968
969 queue_type ::= "queue-type" ":" STRING
970
971 capacity ::= "capacity" ":" INTEGER
972
973 arbitrary_map_entry ::= STRING ":" value
974
975 dhcp_ddns ::= "dhcp-ddns" ":" "{" dhcp_ddns_params "}"
976
977 sub_dhcp_ddns ::= "{" dhcp_ddns_params "}"
978
979 dhcp_ddns_params ::= dhcp_ddns_param
980 | dhcp_ddns_params "," dhcp_ddns_param
981 | dhcp_ddns_params ","
982
983 dhcp_ddns_param ::= enable_updates
984 | server_ip
985 | server_port
986 | sender_ip
987 | sender_port
988 | max_queue_size
989 | ncr_protocol
990 | ncr_format
991 | user_context
992 | comment
993 | unknown_map_entry
994
995 enable_updates ::= "enable-updates" ":" BOOLEAN
996
997 server_ip ::= "server-ip" ":" STRING
998
999 server_port ::= "server-port" ":" INTEGER
1000
1001 sender_ip ::= "sender-ip" ":" STRING
1002
1003 sender_port ::= "sender-port" ":" INTEGER
1004
1005 max_queue_size ::= "max-queue-size" ":" INTEGER
1006
1007 ncr_protocol ::= "ncr-protocol" ":" ncr_protocol_value
1008
1009 ncr_protocol_value ::= "udp"
1010 | "tcp"
1011
1012 ncr_format ::= "ncr-format" ":" "JSON"
1013
1014 config_control ::= "config-control" ":" "{" config_control_params "}"
1015
1016 sub_config_control ::= "{" config_control_params "}"
1017
1018 config_control_params ::= config_control_param
1019 | config_control_params "," config_control_param
1020 | config_control_params ","
1021
1022 config_control_param ::= config_databases
1023 | config_fetch_wait_time
1024
1025 config_databases ::= "config-databases" ":" "[" database_list "]"
1026
1027 config_fetch_wait_time ::= "config-fetch-wait-time" ":" INTEGER
1028
1029 loggers ::= "loggers" ":" "[" loggers_entries "]"
1030
1031 loggers_entries ::= logger_entry
1032 | loggers_entries "," logger_entry
1033 | loggers_entries ","
1034
1035 logger_entry ::= "{" logger_params "}"
1036
1037 logger_params ::= logger_param
1038 | logger_params "," logger_param
1039 | logger_params ","
1040
1041 logger_param ::= name
1042 | output_options_list
1043 | debuglevel
1044 | severity
1045 | user_context
1046 | comment
1047 | unknown_map_entry
1048
1049 debuglevel ::= "debuglevel" ":" INTEGER
1050
1051 severity ::= "severity" ":" STRING
1052
1053 output_options_list ::= "output-options" ":" "[" output_options_list_content "]"
1054
1055 output_options_list_content ::= output_entry
1056 | output_options_list_content "," output_entry
1057 | output_options_list_content ","
1058
1059 output_entry ::= "{" output_params_list "}"
1060
1061 output_params_list ::= output_params
1062 | output_params_list "," output_params
1063 | output_params_list ","
1064
1065 output_params ::= output
1066 | flush
1067 | maxsize
1068 | maxver
1069 | pattern
1070
1071 output ::= "output" ":" STRING
1072
1073 flush ::= "flush" ":" BOOLEAN
1074
1075 maxsize ::= "maxsize" ":" INTEGER
1076
1077 maxver ::= "maxver" ":" INTEGER
1078
1079 pattern ::= "pattern" ":" STRING
1080
1081 compatibility ::= "compatibility" ":" "{" compatibility_params "}"
1082
1083 compatibility_params ::= compatibility_param
1084 | compatibility_params "," compatibility_param
1085 | compatibility_params ","
1086
1087 compatibility_param ::= lenient_option_parsing
1088 | ignore_dhcp_server_identifier
1089 | ignore_rai_link_selection
1090 | exclude_first_last_24
1091 | unknown_map_entry
1092
1093 lenient_option_parsing ::= "lenient-option-parsing" ":" BOOLEAN
1094
1095 ignore_dhcp_server_identifier ::= "ignore-dhcp-server-identifier" ":" BOOLEAN
1096
1097 ignore_rai_link_selection ::= "ignore-rai-link-selection" ":" BOOLEAN
1098
1099 exclude_first_last_24 ::= "exclude-first-last-24" ":" BOOLEAN
BNF Grammar for DHCPv6
This grammar is generated from dhcp6_parser.yy
. See The DHCPv6 Server for more details.
1 Grammar
2
3 $accept ::= start EOF
4
5 start ::= TOPLEVEL_JSON sub_json
6
7 start ::= TOPLEVEL_DHCP6 syntax_map
8
9 start ::= SUB_DHCP6 sub_dhcp6
10
11 start ::= SUB_INTERFACES6 sub_interfaces6
12
13 start ::= SUB_SUBNET6 sub_subnet6
14
15 start ::= SUB_POOL6 sub_pool6
16
17 start ::= SUB_PD_POOL sub_pd_pool
18
19 start ::= SUB_RESERVATION sub_reservation
20
21 start ::= SUB_OPTION_DEFS sub_option_def_list
22
23 start ::= SUB_OPTION_DEF sub_option_def
24
25 start ::= SUB_OPTION_DATA sub_option_data
26
27 start ::= SUB_HOOKS_LIBRARY sub_hooks_library
28
29 start ::= SUB_DHCP_DDNS sub_dhcp_ddns
30
31 start ::= SUB_CONFIG_CONTROL sub_config_control
32
33 value ::= INTEGER
34 | FLOAT
35 | BOOLEAN
36 | STRING
37 | NULL
38 | map2
39 | list_generic
40
41 sub_json ::= value
42
43 map2 ::= "{" map_content "}"
44
45 map_value ::= map2
46
47 map_content ::=
48 | not_empty_map
49
50 not_empty_map ::= STRING ":" value
51 | not_empty_map "," STRING ":" value
52 | not_empty_map ","
53
54 list_generic ::= "[" list_content "]"
55
56 list_content ::=
57 | not_empty_list
58
59 not_empty_list ::= value
60 | not_empty_list "," value
61 | not_empty_list ","
62
63 list_strings ::= "[" list_strings_content "]"
64
65 list_strings_content ::=
66 | not_empty_list_strings
67
68 not_empty_list_strings ::= STRING
69 | not_empty_list_strings "," STRING
70 | not_empty_list_strings ","
71
72 unknown_map_entry ::= STRING ":"
73
74 syntax_map ::= "{" global_object "}"
75
76 global_object ::= "Dhcp6" ":" "{" global_params "}"
77 | global_object_comma
78
79 global_object_comma ::= global_object ","
80
81 sub_dhcp6 ::= "{" global_params "}"
82
83 global_params ::= global_param
84 | global_params "," global_param
85 | global_params ","
86
87 global_param ::= data_directory
88 | preferred_lifetime
89 | min_preferred_lifetime
90 | max_preferred_lifetime
91 | valid_lifetime
92 | min_valid_lifetime
93 | max_valid_lifetime
94 | renew_timer
95 | rebind_timer
96 | decline_probation_period
97 | subnet6_list
98 | shared_networks
99 | interfaces_config
100 | lease_database
101 | hosts_database
102 | hosts_databases
103 | mac_sources
104 | relay_supplied_options
105 | host_reservation_identifiers
106 | client_classes
107 | option_def_list
108 | option_data_list
109 | hooks_libraries
110 | expired_leases_processing
111 | server_id
112 | dhcp4o6_port
113 | control_socket
114 | control_sockets
115 | dhcp_queue_control
116 | dhcp_ddns
117 | user_context
118 | comment
119 | sanity_checks
120 | reservations
121 | config_control
122 | server_tag
123 | reservations_global
124 | reservations_in_subnet
125 | reservations_out_of_pool
126 | calculate_tee_times
127 | t1_percent
128 | t2_percent
129 | cache_threshold
130 | cache_max_age
131 | loggers
132 | hostname_char_set
133 | hostname_char_replacement
134 | ddns_send_updates
135 | ddns_override_no_update
136 | ddns_override_client_update
137 | ddns_replace_client_name
138 | ddns_generated_prefix
139 | ddns_qualifying_suffix
140 | ddns_update_on_renew
141 | ddns_use_conflict_resolution
142 | ddns_conflict_resolution_mode
143 | ddns_ttl_percent
144 | store_extended_info
145 | statistic_default_sample_count
146 | statistic_default_sample_age
147 | dhcp_multi_threading
148 | early_global_reservations_lookup
149 | ip_reservations_unique
150 | reservations_lookup_first
151 | compatibility
152 | parked_packet_limit
153 | allocator
154 | pd_allocator
155 | unknown_map_entry
156
157 data_directory ::= "data-directory" ":" STRING
158
159 preferred_lifetime ::= "preferred-lifetime" ":" INTEGER
160
161 min_preferred_lifetime ::= "min-preferred-lifetime" ":" INTEGER
162
163 max_preferred_lifetime ::= "max-preferred-lifetime" ":" INTEGER
164
165 valid_lifetime ::= "valid-lifetime" ":" INTEGER
166
167 min_valid_lifetime ::= "min-valid-lifetime" ":" INTEGER
168
169 max_valid_lifetime ::= "max-valid-lifetime" ":" INTEGER
170
171 renew_timer ::= "renew-timer" ":" INTEGER
172
173 rebind_timer ::= "rebind-timer" ":" INTEGER
174
175 calculate_tee_times ::= "calculate-tee-times" ":" BOOLEAN
176
177 t1_percent ::= "t1-percent" ":" FLOAT
178
179 t2_percent ::= "t2-percent" ":" FLOAT
180
181 cache_threshold ::= "cache-threshold" ":" FLOAT
182
183 cache_max_age ::= "cache-max-age" ":" INTEGER
184
185 decline_probation_period ::= "decline-probation-period" ":" INTEGER
186
187 ddns_send_updates ::= "ddns-send-updates" ":" BOOLEAN
188
189 ddns_override_no_update ::= "ddns-override-no-update" ":" BOOLEAN
190
191 ddns_override_client_update ::= "ddns-override-client-update" ":" BOOLEAN
192
193 ddns_replace_client_name ::= "ddns-replace-client-name" ":" ddns_replace_client_name_value
194
195 ddns_replace_client_name_value ::= "when-present"
196 | "never"
197 | "always"
198 | "when-not-present"
199 | BOOLEAN
200
201 ddns_generated_prefix ::= "ddns-generated-prefix" ":" STRING
202
203 ddns_qualifying_suffix ::= "ddns-qualifying-suffix" ":" STRING
204
205 ddns_update_on_renew ::= "ddns-update-on-renew" ":" BOOLEAN
206
207 ddns_use_conflict_resolution ::= "ddns-use-conflict-resolution" ":" BOOLEAN
208
209 ddns_conflict_resolution_mode ::= "ddns-conflict-resolution-mode" ":" ddns_conflict_resolution_mode_value
210
211 ddns_conflict_resolution_mode_value ::= "check-with-dhcid"
212 | "no-check-with-dhcid"
213 | "check-exists-with-dhcid"
214 | "no-check-without-dhcid"
215
216 ddns_ttl_percent ::= "ddns-ttl-percent" ":" FLOAT
217
218 hostname_char_set ::= "hostname-char-set" ":" STRING
219
220 hostname_char_replacement ::= "hostname-char-replacement" ":" STRING
221
222 store_extended_info ::= "store-extended-info" ":" BOOLEAN
223
224 statistic_default_sample_count ::= "statistic-default-sample-count" ":" INTEGER
225
226 statistic_default_sample_age ::= "statistic-default-sample-age" ":" INTEGER
227
228 server_tag ::= "server-tag" ":" STRING
229
230 parked_packet_limit ::= "parked-packet-limit" ":" INTEGER
231
232 allocator ::= "allocator" ":" STRING
233
234 pd_allocator ::= "pd-allocator" ":" STRING
235
236 early_global_reservations_lookup ::= "early-global-reservations-lookup" ":" BOOLEAN
237
238 ip_reservations_unique ::= "ip-reservations-unique" ":" BOOLEAN
239
240 reservations_lookup_first ::= "reservations-lookup-first" ":" BOOLEAN
241
242 interfaces_config ::= "interfaces-config" ":" "{" interfaces_config_params "}"
243
244 sub_interfaces6 ::= "{" interfaces_config_params "}"
245
246 interfaces_config_params ::= interfaces_config_param
247 | interfaces_config_params "," interfaces_config_param
248 | interfaces_config_params ","
249
250 interfaces_config_param ::= interfaces_list
251 | re_detect
252 | service_sockets_require_all
253 | service_sockets_retry_wait_time
254 | service_sockets_max_retries
255 | user_context
256 | comment
257 | unknown_map_entry
258
259 interfaces_list ::= "interfaces" ":" list_strings
260
261 re_detect ::= "re-detect" ":" BOOLEAN
262
263 service_sockets_require_all ::= "service-sockets-require-all" ":" BOOLEAN
264
265 service_sockets_retry_wait_time ::= "service-sockets-retry-wait-time" ":" INTEGER
266
267 service_sockets_max_retries ::= "service-sockets-max-retries" ":" INTEGER
268
269 lease_database ::= "lease-database" ":" "{" database_map_params "}"
270
271 hosts_database ::= "hosts-database" ":" "{" database_map_params "}"
272
273 hosts_databases ::= "hosts-databases" ":" "[" database_list "]"
274
275 database_list ::=
276 | not_empty_database_list
277
278 not_empty_database_list ::= database
279 | not_empty_database_list "," database
280 | not_empty_database_list ","
281
282 database ::= "{" database_map_params "}"
283
284 database_map_params ::= database_map_param
285 | database_map_params "," database_map_param
286 | database_map_params ","
287
288 database_map_param ::= database_type
289 | user
290 | password
291 | host
292 | port
293 | name
294 | persist
295 | lfc_interval
296 | readonly
297 | connect_timeout
298 | read_timeout
299 | write_timeout
300 | tcp_user_timeout
301 | max_reconnect_tries
302 | reconnect_wait_time
303 | on_fail
304 | retry_on_startup
305 | max_row_errors
306 | trust_anchor
307 | cert_file
308 | key_file
309 | cipher_list
310 | unknown_map_entry
311
312 database_type ::= "type" ":" db_type
313
314 db_type ::= "memfile"
315 | "mysql"
316 | "postgresql"
317
318 user ::= "user" ":" STRING
319
320 password ::= "password" ":" STRING
321
322 host ::= "host" ":" STRING
323
324 port ::= "port" ":" INTEGER
325
326 name ::= "name" ":" STRING
327
328 persist ::= "persist" ":" BOOLEAN
329
330 lfc_interval ::= "lfc-interval" ":" INTEGER
331
332 readonly ::= "readonly" ":" BOOLEAN
333
334 connect_timeout ::= "connect-timeout" ":" INTEGER
335
336 read_timeout ::= "read-timeout" ":" INTEGER
337
338 write_timeout ::= "write-timeout" ":" INTEGER
339
340 tcp_user_timeout ::= "tcp-user-timeout" ":" INTEGER
341
342 reconnect_wait_time ::= "reconnect-wait-time" ":" INTEGER
343
344 on_fail ::= "on-fail" ":" on_fail_mode
345
346 on_fail_mode ::= "stop-retry-exit"
347 | "serve-retry-exit"
348 | "serve-retry-continue"
349
350 retry_on_startup ::= "retry-on-startup" ":" BOOLEAN
351
352 max_row_errors ::= "max-row-errors" ":" INTEGER
353
354 max_reconnect_tries ::= "max-reconnect-tries" ":" INTEGER
355
356 trust_anchor ::= "trust-anchor" ":" STRING
357
358 cert_file ::= "cert-file" ":" STRING
359
360 key_file ::= "key-file" ":" STRING
361
362 cipher_list ::= "cipher-list" ":" STRING
363
364 sanity_checks ::= "sanity-checks" ":" "{" sanity_checks_params "}"
365
366 sanity_checks_params ::= sanity_checks_param
367 | sanity_checks_params "," sanity_checks_param
368 | sanity_checks_params ","
369
370 sanity_checks_param ::= lease_checks
371 | extended_info_checks
372
373 lease_checks ::= "lease-checks" ":" STRING
374
375 extended_info_checks ::= "extended-info-checks" ":" STRING
376
377 mac_sources ::= "mac-sources" ":" "[" mac_sources_list "]"
378
379 mac_sources_list ::= mac_sources_value
380 | mac_sources_list "," mac_sources_value
381 | mac_sources_list ","
382
383 mac_sources_value ::= duid_id
384 | string_id
385
386 duid_id ::= "duid"
387
388 string_id ::= STRING
389
390 host_reservation_identifiers ::= "host-reservation-identifiers" ":" "[" host_reservation_identifiers_list "]"
391
392 host_reservation_identifiers_list ::= host_reservation_identifier
393 | host_reservation_identifiers_list "," host_reservation_identifier
394 | host_reservation_identifiers_list ","
395
396 host_reservation_identifier ::= duid_id
397 | hw_address_id
398 | flex_id
399
400 hw_address_id ::= "hw-address"
401
402 flex_id ::= "flex-id"
403
404 relay_supplied_options ::= "relay-supplied-options" ":" "[" list_content "]"
405
406 dhcp_multi_threading ::= "multi-threading" ":" "{" multi_threading_params "}"
407
408 multi_threading_params ::= multi_threading_param
409 | multi_threading_params "," multi_threading_param
410 | multi_threading_params ","
411
412 multi_threading_param ::= enable_multi_threading
413 | thread_pool_size
414 | packet_queue_size
415 | user_context
416 | comment
417 | unknown_map_entry
418
419 enable_multi_threading ::= "enable-multi-threading" ":" BOOLEAN
420
421 thread_pool_size ::= "thread-pool-size" ":" INTEGER
422
423 packet_queue_size ::= "packet-queue-size" ":" INTEGER
424
425 hooks_libraries ::= "hooks-libraries" ":" "[" hooks_libraries_list "]"
426
427 hooks_libraries_list ::=
428 | not_empty_hooks_libraries_list
429
430 not_empty_hooks_libraries_list ::= hooks_library
431 | not_empty_hooks_libraries_list "," hooks_library
432 | not_empty_hooks_libraries_list ","
433
434 hooks_library ::= "{" hooks_params "}"
435
436 sub_hooks_library ::= "{" hooks_params "}"
437
438 hooks_params ::= hooks_param
439 | hooks_params "," hooks_param
440 | hooks_params ","
441 | unknown_map_entry
442
443 hooks_param ::= library
444 | parameters
445
446 library ::= "library" ":" STRING
447
448 parameters ::= "parameters" ":" map_value
449
450 expired_leases_processing ::= "expired-leases-processing" ":" "{" expired_leases_params "}"
451
452 expired_leases_params ::= expired_leases_param
453 | expired_leases_params "," expired_leases_param
454 | expired_leases_params ","
455
456 expired_leases_param ::= reclaim_timer_wait_time
457 | flush_reclaimed_timer_wait_time
458 | hold_reclaimed_time
459 | max_reclaim_leases
460 | max_reclaim_time
461 | unwarned_reclaim_cycles
462
463 reclaim_timer_wait_time ::= "reclaim-timer-wait-time" ":" INTEGER
464
465 flush_reclaimed_timer_wait_time ::= "flush-reclaimed-timer-wait-time" ":" INTEGER
466
467 hold_reclaimed_time ::= "hold-reclaimed-time" ":" INTEGER
468
469 max_reclaim_leases ::= "max-reclaim-leases" ":" INTEGER
470
471 max_reclaim_time ::= "max-reclaim-time" ":" INTEGER
472
473 unwarned_reclaim_cycles ::= "unwarned-reclaim-cycles" ":" INTEGER
474
475 subnet6_list ::= "subnet6" ":" "[" subnet6_list_content "]"
476
477 subnet6_list_content ::=
478 | not_empty_subnet6_list
479
480 not_empty_subnet6_list ::= subnet6
481 | not_empty_subnet6_list "," subnet6
482 | not_empty_subnet6_list ","
483
484 subnet6 ::= "{" subnet6_params "}"
485
486 sub_subnet6 ::= "{" subnet6_params "}"
487
488 subnet6_params ::= subnet6_param
489 | subnet6_params "," subnet6_param
490 | subnet6_params ","
491
492 subnet6_param ::= preferred_lifetime
493 | min_preferred_lifetime
494 | max_preferred_lifetime
495 | valid_lifetime
496 | min_valid_lifetime
497 | max_valid_lifetime
498 | renew_timer
499 | rebind_timer
500 | option_data_list
501 | pools_list
502 | pd_pools_list
503 | subnet
504 | interface
505 | interface_id
506 | id
507 | rapid_commit
508 | client_class
509 | require_client_classes
510 | reservations
511 | reservations_global
512 | reservations_in_subnet
513 | reservations_out_of_pool
514 | relay
515 | user_context
516 | comment
517 | calculate_tee_times
518 | t1_percent
519 | t2_percent
520 | cache_threshold
521 | cache_max_age
522 | hostname_char_set
523 | hostname_char_replacement
524 | ddns_send_updates
525 | ddns_override_no_update
526 | ddns_override_client_update
527 | ddns_replace_client_name
528 | ddns_generated_prefix
529 | ddns_qualifying_suffix
530 | ddns_update_on_renew
531 | ddns_use_conflict_resolution
532 | ddns_conflict_resolution_mode
533 | ddns_ttl_percent
534 | store_extended_info
535 | allocator
536 | pd_allocator
537 | unknown_map_entry
538
539 subnet ::= "subnet" ":" STRING
540
541 interface ::= "interface" ":" STRING
542
543 interface_id ::= "interface-id" ":" STRING
544
545 client_class ::= "client-class" ":" STRING
546
547 require_client_classes ::= "require-client-classes" ":" list_strings
548
549 reservations_global ::= "reservations-global" ":" BOOLEAN
550
551 reservations_in_subnet ::= "reservations-in-subnet" ":" BOOLEAN
552
553 reservations_out_of_pool ::= "reservations-out-of-pool" ":" BOOLEAN
554
555 id ::= "id" ":" INTEGER
556
557 rapid_commit ::= "rapid-commit" ":" BOOLEAN
558
559 shared_networks ::= "shared-networks" ":" "[" shared_networks_content "]"
560
561 shared_networks_content ::=
562 | shared_networks_list
563
564 shared_networks_list ::= shared_network
565 | shared_networks_list "," shared_network
566 | shared_networks_list ","
567
568 shared_network ::= "{" shared_network_params "}"
569
570 shared_network_params ::= shared_network_param
571 | shared_network_params "," shared_network_param
572 | shared_network_params ","
573
574 shared_network_param ::= name
575 | subnet6_list
576 | interface
577 | interface_id
578 | renew_timer
579 | rebind_timer
580 | option_data_list
581 | relay
582 | reservations_global
583 | reservations_in_subnet
584 | reservations_out_of_pool
585 | client_class
586 | require_client_classes
587 | preferred_lifetime
588 | min_preferred_lifetime
589 | max_preferred_lifetime
590 | rapid_commit
591 | valid_lifetime
592 | min_valid_lifetime
593 | max_valid_lifetime
594 | user_context
595 | comment
596 | calculate_tee_times
597 | t1_percent
598 | t2_percent
599 | cache_threshold
600 | cache_max_age
601 | hostname_char_set
602 | hostname_char_replacement
603 | ddns_send_updates
604 | ddns_override_no_update
605 | ddns_override_client_update
606 | ddns_replace_client_name
607 | ddns_generated_prefix
608 | ddns_qualifying_suffix
609 | ddns_update_on_renew
610 | ddns_use_conflict_resolution
611 | ddns_conflict_resolution_mode
612 | ddns_ttl_percent
613 | store_extended_info
614 | allocator
615 | pd_allocator
616 | unknown_map_entry
617
618 option_def_list ::= "option-def" ":" "[" option_def_list_content "]"
619
620 sub_option_def_list ::= "{" option_def_list "}"
621
622 option_def_list_content ::=
623 | not_empty_option_def_list
624
625 not_empty_option_def_list ::= option_def_entry
626 | not_empty_option_def_list "," option_def_entry
627 | not_empty_option_def_list ","
628
629 option_def_entry ::= "{" option_def_params "}"
630
631 sub_option_def ::= "{" option_def_params "}"
632
633 option_def_params ::=
634 | not_empty_option_def_params
635
636 not_empty_option_def_params ::= option_def_param
637 | not_empty_option_def_params "," option_def_param
638 | not_empty_option_def_params ","
639
640 option_def_param ::= option_def_name
641 | option_def_code
642 | option_def_type
643 | option_def_record_types
644 | option_def_space
645 | option_def_encapsulate
646 | option_def_array
647 | user_context
648 | comment
649 | unknown_map_entry
650
651 option_def_name ::= name
652
653 code ::= "code" ":" INTEGER
654
655 option_def_code ::= code
656
657 option_def_type ::= "type" ":" STRING
658
659 option_def_record_types ::= "record-types" ":" STRING
660
661 space ::= "space" ":" STRING
662
663 option_def_space ::= space
664
665 option_def_encapsulate ::= "encapsulate" ":" STRING
666
667 option_def_array ::= "array" ":" BOOLEAN
668
669 option_data_list ::= "option-data" ":" "[" option_data_list_content "]"
670
671 option_data_list_content ::=
672 | not_empty_option_data_list
673
674 not_empty_option_data_list ::= option_data_entry
675 | not_empty_option_data_list "," option_data_entry
676 | not_empty_option_data_list ","
677
678 option_data_entry ::= "{" option_data_params "}"
679
680 sub_option_data ::= "{" option_data_params "}"
681
682 option_data_params ::=
683 | not_empty_option_data_params
684
685 not_empty_option_data_params ::= option_data_param
686 | not_empty_option_data_params "," option_data_param
687 | not_empty_option_data_params ","
688
689 option_data_param ::= option_data_name
690 | option_data_data
691 | option_data_code
692 | option_data_space
693 | option_data_csv_format
694 | option_data_always_send
695 | option_data_never_send
696 | user_context
697 | comment
698 | unknown_map_entry
699
700 option_data_name ::= name
701
702 option_data_data ::= "data" ":" STRING
703
704 option_data_code ::= code
705
706 option_data_space ::= space
707
708 option_data_csv_format ::= "csv-format" ":" BOOLEAN
709
710 option_data_always_send ::= "always-send" ":" BOOLEAN
711
712 option_data_never_send ::= "never-send" ":" BOOLEAN
713
714 pools_list ::= "pools" ":" "[" pools_list_content "]"
715
716 pools_list_content ::=
717 | not_empty_pools_list
718
719 not_empty_pools_list ::= pool_list_entry
720 | not_empty_pools_list "," pool_list_entry
721 | not_empty_pools_list ","
722
723 pool_list_entry ::= "{" pool_params "}"
724
725 sub_pool6 ::= "{" pool_params "}"
726
727 pool_params ::= pool_param
728 | pool_params "," pool_param
729 | pool_params ","
730
731 pool_param ::= pool_entry
732 | pool_id
733 | option_data_list
734 | client_class
735 | require_client_classes
736 | user_context
737 | comment
738 | unknown_map_entry
739
740 pool_entry ::= "pool" ":" STRING
741
742 pool_id ::= "pool-id" ":" INTEGER
743
744 user_context ::= "user-context" ":" map_value
745
746 comment ::= "comment" ":" STRING
747
748 pd_pools_list ::= "pd-pools" ":" "[" pd_pools_list_content "]"
749
750 pd_pools_list_content ::=
751 | not_empty_pd_pools_list
752
753 not_empty_pd_pools_list ::= pd_pool_entry
754 | not_empty_pd_pools_list "," pd_pool_entry
755 | not_empty_pd_pools_list ","
756
757 pd_pool_entry ::= "{" pd_pool_params "}"
758
759 sub_pd_pool ::= "{" pd_pool_params "}"
760
761 pd_pool_params ::= pd_pool_param
762 | pd_pool_params "," pd_pool_param
763 | pd_pool_params ","
764
765 pd_pool_param ::= pd_prefix
766 | pd_prefix_len
767 | pd_delegated_len
768 | pool_id
769 | option_data_list
770 | client_class
771 | require_client_classes
772 | excluded_prefix
773 | excluded_prefix_len
774 | user_context
775 | comment
776 | unknown_map_entry
777
778 pd_prefix ::= "prefix" ":" STRING
779
780 pd_prefix_len ::= "prefix-len" ":" INTEGER
781
782 excluded_prefix ::= "excluded-prefix" ":" STRING
783
784 excluded_prefix_len ::= "excluded-prefix-len" ":" INTEGER
785
786 pd_delegated_len ::= "delegated-len" ":" INTEGER
787
788 reservations ::= "reservations" ":" "[" reservations_list "]"
789
790 reservations_list ::=
791 | not_empty_reservations_list
792
793 not_empty_reservations_list ::= reservation
794 | not_empty_reservations_list "," reservation
795 | not_empty_reservations_list ","
796
797 reservation ::= "{" reservation_params "}"
798
799 sub_reservation ::= "{" reservation_params "}"
800
801 reservation_params ::=
802 | not_empty_reservation_params
803
804 not_empty_reservation_params ::= reservation_param
805 | not_empty_reservation_params "," reservation_param
806 | not_empty_reservation_params ","
807
808 reservation_param ::= duid
809 | reservation_client_classes
810 | ip_addresses
811 | prefixes
812 | hw_address
813 | hostname
814 | flex_id_value
815 | option_data_list
816 | user_context
817 | comment
818 | unknown_map_entry
819
820 ip_addresses ::= "ip-addresses" ":" list_strings
821
822 prefixes ::= "prefixes" ":" list_strings
823
824 duid ::= "duid" ":" STRING
825
826 hw_address ::= "hw-address" ":" STRING
827
828 hostname ::= "hostname" ":" STRING
829
830 flex_id_value ::= "flex-id" ":" STRING
831
832 reservation_client_classes ::= "client-classes" ":" list_strings
833
834 relay ::= "relay" ":" "{" relay_map "}"
835
836 relay_map ::= ip_addresses
837
838 client_classes ::= "client-classes" ":" "[" client_classes_list "]"
839
840 client_classes_list ::= client_class_entry
841 | client_classes_list "," client_class_entry
842 | client_classes_list ","
843
844 client_class_entry ::= "{" client_class_params "}"
845
846 client_class_params ::=
847 | not_empty_client_class_params
848
849 not_empty_client_class_params ::= client_class_param
850 | not_empty_client_class_params "," client_class_param
851 | not_empty_client_class_params ","
852
853 client_class_param ::= client_class_name
854 | client_class_test
855 | client_class_template_test
856 | only_if_required
857 | option_data_list
858 | user_context
859 | comment
860 | preferred_lifetime
861 | min_preferred_lifetime
862 | max_preferred_lifetime
863 | valid_lifetime
864 | min_valid_lifetime
865 | max_valid_lifetime
866 | unknown_map_entry
867
868 client_class_name ::= name
869
870 client_class_test ::= "test" ":" STRING
871
872 client_class_template_test ::= "template-test" ":" STRING
873
874 only_if_required ::= "only-if-required" ":" BOOLEAN
875
876 server_id ::= "server-id" ":" "{" server_id_params "}"
877
878 server_id_params ::= server_id_param
879 | server_id_params "," server_id_param
880 | server_id_params ","
881
882 server_id_param ::= server_id_type
883 | identifier
884 | time
885 | htype
886 | enterprise_id
887 | persist
888 | user_context
889 | comment
890 | unknown_map_entry
891
892 server_id_type ::= "type" ":" duid_type
893
894 duid_type ::= "LLT"
895 | "EN"
896 | "LL"
897
898 htype ::= "htype" ":" INTEGER
899
900 identifier ::= "identifier" ":" STRING
901
902 time ::= "time" ":" INTEGER
903
904 enterprise_id ::= "enterprise-id" ":" INTEGER
905
906 dhcp4o6_port ::= "dhcp4o6-port" ":" INTEGER
907
908 control_socket ::= "control-socket" ":" "{" control_socket_params "}"
909
910 control_sockets ::= "control-sockets" ":" "[" control_socket_list "]"
911
912 control_socket_list ::=
913 | not_empty_control_socket_list
914
915 not_empty_control_socket_list ::= control_socket_entry
916 | not_empty_control_socket_list "," control_socket_entry
917 | not_empty_control_socket_list ","
918
919 control_socket_entry ::= "{" control_socket_params "}"
920
921 control_socket_params ::= control_socket_param
922 | control_socket_params "," control_socket_param
923 | control_socket_params ","
924
925 control_socket_param ::= control_socket_type
926 | control_socket_name
927 | control_socket_address
928 | control_socket_port
929 | authentication
930 | trust_anchor
931 | cert_file
932 | key_file
933 | cert_required
934 | user_context
935 | comment
936 | unknown_map_entry
937
938 control_socket_type ::= "socket-type" ":" control_socket_type_value
939
940 control_socket_type_value ::= "unix"
941 | "http"
942 | "https"
943
944 control_socket_name ::= "socket-name" ":" STRING
945
946 control_socket_address ::= "socket-address" ":" STRING
947
948 control_socket_port ::= "socket-port" ":" INTEGER
949
950 cert_required ::= "cert-required" ":" BOOLEAN
951
952 authentication ::= "authentication" ":" "{" auth_params "}"
953
954 auth_params ::= auth_param
955 | auth_params "," auth_param
956 | auth_params ","
957
958 auth_param ::= auth_type
959 | realm
960 | directory
961 | clients
962 | comment
963 | user_context
964 | unknown_map_entry
965
966 auth_type ::= "type" ":" auth_type_value
967
968 auth_type_value ::= "basic"
969
970 realm ::= "realm" ":" STRING
971
972 directory ::= "directory" ":" STRING
973
974 clients ::= "clients" ":" "[" clients_list "]"
975
976 clients_list ::=
977 | not_empty_clients_list
978
979 not_empty_clients_list ::= basic_auth
980 | not_empty_clients_list "," basic_auth
981 | not_empty_clients_list ","
982
983 basic_auth ::= "{" clients_params "}"
984
985 clients_params ::= clients_param
986 | clients_params "," clients_param
987 | clients_params ","
988
989 clients_param ::= user
990 | user_file
991 | password
992 | password_file
993 | user_context
994 | comment
995 | unknown_map_entry
996
997 user_file ::= "user-file" ":" STRING
998
999 password_file ::= "password-file" ":" STRING
1000
1001 dhcp_queue_control ::= "dhcp-queue-control" ":" "{" queue_control_params "}"
1002
1003 queue_control_params ::= queue_control_param
1004 | queue_control_params "," queue_control_param
1005 | queue_control_params ","
1006
1007 queue_control_param ::= enable_queue
1008 | queue_type
1009 | capacity
1010 | user_context
1011 | comment
1012 | arbitrary_map_entry
1013
1014 enable_queue ::= "enable-queue" ":" BOOLEAN
1015
1016 queue_type ::= "queue-type" ":" STRING
1017
1018 capacity ::= "capacity" ":" INTEGER
1019
1020 arbitrary_map_entry ::= STRING ":" value
1021
1022 dhcp_ddns ::= "dhcp-ddns" ":" "{" dhcp_ddns_params "}"
1023
1024 sub_dhcp_ddns ::= "{" dhcp_ddns_params "}"
1025
1026 dhcp_ddns_params ::= dhcp_ddns_param
1027 | dhcp_ddns_params "," dhcp_ddns_param
1028 | dhcp_ddns_params ","
1029
1030 dhcp_ddns_param ::= enable_updates
1031 | server_ip
1032 | server_port
1033 | sender_ip
1034 | sender_port
1035 | max_queue_size
1036 | ncr_protocol
1037 | ncr_format
1038 | user_context
1039 | comment
1040 | unknown_map_entry
1041
1042 enable_updates ::= "enable-updates" ":" BOOLEAN
1043
1044 server_ip ::= "server-ip" ":" STRING
1045
1046 server_port ::= "server-port" ":" INTEGER
1047
1048 sender_ip ::= "sender-ip" ":" STRING
1049
1050 sender_port ::= "sender-port" ":" INTEGER
1051
1052 max_queue_size ::= "max-queue-size" ":" INTEGER
1053
1054 ncr_protocol ::= "ncr-protocol" ":" ncr_protocol_value
1055
1056 ncr_protocol_value ::= "UDP"
1057 | "TCP"
1058
1059 ncr_format ::= "ncr-format" ":" "JSON"
1060
1061 config_control ::= "config-control" ":" "{" config_control_params "}"
1062
1063 sub_config_control ::= "{" config_control_params "}"
1064
1065 config_control_params ::= config_control_param
1066 | config_control_params "," config_control_param
1067 | config_control_params ","
1068
1069 config_control_param ::= config_databases
1070 | config_fetch_wait_time
1071
1072 config_databases ::= "config-databases" ":" "[" database_list "]"
1073
1074 config_fetch_wait_time ::= "config-fetch-wait-time" ":" INTEGER
1075
1076 loggers ::= "loggers" ":" "[" loggers_entries "]"
1077
1078 loggers_entries ::= logger_entry
1079 | loggers_entries "," logger_entry
1080 | loggers_entries ","
1081
1082 logger_entry ::= "{" logger_params "}"
1083
1084 logger_params ::= logger_param
1085 | logger_params "," logger_param
1086 | logger_params ","
1087
1088 logger_param ::= name
1089 | output_options_list
1090 | debuglevel
1091 | severity
1092 | user_context
1093 | comment
1094 | unknown_map_entry
1095
1096 debuglevel ::= "debuglevel" ":" INTEGER
1097
1098 severity ::= "severity" ":" STRING
1099
1100 output_options_list ::= "output-options" ":" "[" output_options_list_content "]"
1101
1102 output_options_list_content ::= output_entry
1103 | output_options_list_content "," output_entry
1104 | output_options_list_content ","
1105
1106 output_entry ::= "{" output_params_list "}"
1107
1108 output_params_list ::= output_params
1109 | output_params_list "," output_params
1110 | output_params_list ","
1111
1112 output_params ::= output
1113 | flush
1114 | maxsize
1115 | maxver
1116 | pattern
1117
1118 output ::= "output" ":" STRING
1119
1120 flush ::= "flush" ":" BOOLEAN
1121
1122 maxsize ::= "maxsize" ":" INTEGER
1123
1124 maxver ::= "maxver" ":" INTEGER
1125
1126 pattern ::= "pattern" ":" STRING
1127
1128 compatibility ::= "compatibility" ":" "{" compatibility_params "}"
1129
1130 compatibility_params ::= compatibility_param
1131 | compatibility_params "," compatibility_param
1132 | compatibility_params ","
1133
1134 compatibility_param ::= lenient_option_parsing
1135 | unknown_map_entry
1136
1137 lenient_option_parsing ::= "lenient-option-parsing" ":" BOOLEAN
BNF Grammar for Control Agent
This grammar is generated from agent_parser.yy
. See The Kea Control Agent for more details.
1 Grammar
2
3 $accept ::= start EOF
4
5 start ::= START_JSON json
6
7 start ::= START_AGENT agent_syntax_map
8
9 start ::= START_SUB_AGENT sub_agent
10
11 sub_agent ::= "{" global_params "}"
12
13 json ::= value
14
15 value ::= INTEGER
16 | FLOAT
17 | BOOLEAN
18 | STRING
19 | NULL
20 | map
21 | list_generic
22
23 map ::= "{" map_content "}"
24
25 map_value ::= map
26
27 map_content ::=
28 | not_empty_map
29
30 not_empty_map ::= STRING ":" value
31 | not_empty_map "," STRING ":" value
32 | not_empty_map ","
33
34 list_generic ::= "[" list_content "]"
35
36 list_content ::=
37 | not_empty_list
38
39 not_empty_list ::= value
40 | not_empty_list "," value
41 | not_empty_list ","
42
43 unknown_map_entry ::= STRING ":"
44
45 agent_syntax_map ::= "{" global_object "}"
46
47 global_object ::= "Control-agent" ":" "{" global_params "}"
48 | global_object_comma
49
50 global_object_comma ::= global_object ","
51
52 global_params ::= global_param
53 | global_params "," global_param
54 | global_params ","
55
56 global_param ::= http_host
57 | http_port
58 | trust_anchor
59 | cert_file
60 | key_file
61 | cert_required
62 | authentication
63 | control_sockets
64 | hooks_libraries
65 | loggers
66 | user_context
67 | comment
68 | unknown_map_entry
69
70 http_host ::= "http-host" ":" STRING
71
72 http_port ::= "http-port" ":" INTEGER
73
74 trust_anchor ::= "trust-anchor" ":" STRING
75
76 cert_file ::= "cert-file" ":" STRING
77
78 key_file ::= "key-file" ":" STRING
79
80 cert_required ::= "cert-required" ":" BOOLEAN
81
82 user_context ::= "user-context" ":" map_value
83
84 comment ::= "comment" ":" STRING
85
86 hooks_libraries ::= "hooks-libraries" ":" "[" hooks_libraries_list "]"
87
88 hooks_libraries_list ::=
89 | not_empty_hooks_libraries_list
90
91 not_empty_hooks_libraries_list ::= hooks_library
92 | not_empty_hooks_libraries_list "," hooks_library
93 | not_empty_hooks_libraries_list ","
94
95 hooks_library ::= "{" hooks_params "}"
96
97 hooks_params ::= hooks_param
98 | hooks_params "," hooks_param
99 | hooks_params ","
100 | unknown_map_entry
101
102 hooks_param ::= library
103 | parameters
104
105 library ::= "library" ":" STRING
106
107 parameters ::= "parameters" ":" map_value
108
109 control_sockets ::= "control-sockets" ":" "{" control_sockets_params "}"
110
111 control_sockets_params ::= control_socket
112 | control_sockets_params "," control_socket
113 | control_sockets_params ","
114
115 control_socket ::= dhcp4_server_socket
116 | dhcp6_server_socket
117 | d2_server_socket
118 | unknown_map_entry
119
120 dhcp4_server_socket ::= "dhcp4" ":" "{" control_socket_params "}"
121
122 dhcp6_server_socket ::= "dhcp6" ":" "{" control_socket_params "}"
123
124 d2_server_socket ::= "d2" ":" "{" control_socket_params "}"
125
126 control_socket_params ::= control_socket_param
127 | control_socket_params "," control_socket_param
128 | control_socket_params ","
129
130 control_socket_param ::= socket_name
131 | socket_type
132 | user_context
133 | comment
134 | unknown_map_entry
135
136 socket_name ::= "socket-name" ":" STRING
137
138 socket_type ::= "socket-type" ":" socket_type_value
139
140 socket_type_value ::= "unix"
141
142 authentication ::= "authentication" ":" "{" auth_params "}"
143
144 auth_params ::= auth_param
145 | auth_params "," auth_param
146 | auth_params ","
147
148 auth_param ::= auth_type
149 | realm
150 | directory
151 | clients
152 | comment
153 | user_context
154 | unknown_map_entry
155
156 auth_type ::= "type" ":" auth_type_value
157
158 auth_type_value ::= "basic"
159
160 realm ::= "realm" ":" STRING
161
162 directory ::= "directory" ":" STRING
163
164 clients ::= "clients" ":" "[" clients_list "]"
165
166 clients_list ::=
167 | not_empty_clients_list
168
169 not_empty_clients_list ::= basic_auth
170 | not_empty_clients_list "," basic_auth
171 | not_empty_clients_list ","
172
173 basic_auth ::= "{" clients_params "}"
174
175 clients_params ::= clients_param
176 | clients_params "," clients_param
177 | clients_params ","
178
179 clients_param ::= user
180 | user_file
181 | password
182 | password_file
183 | user_context
184 | comment
185 | unknown_map_entry
186
187 user ::= "user" ":" STRING
188
189 user_file ::= "user-file" ":" STRING
190
191 password ::= "password" ":" STRING
192
193 password_file ::= "password-file" ":" STRING
194
195 loggers ::= "loggers" ":" "[" loggers_entries "]"
196
197 loggers_entries ::= logger_entry
198 | loggers_entries "," logger_entry
199 | loggers_entries ","
200
201 logger_entry ::= "{" logger_params "}"
202
203 logger_params ::= logger_param
204 | logger_params "," logger_param
205 | logger_params ","
206
207 logger_param ::= name
208 | output_options_list
209 | debuglevel
210 | severity
211 | user_context
212 | comment
213 | unknown_map_entry
214
215 name ::= "name" ":" STRING
216
217 debuglevel ::= "debuglevel" ":" INTEGER
218
219 severity ::= "severity" ":" STRING
220
221 output_options_list ::= "output-options" ":" "[" output_options_list_content "]"
222
223 output_options_list_content ::= output_entry
224 | output_options_list_content "," output_entry
225 | output_options_list_content ","
226
227 output_entry ::= "{" output_params_list "}"
228
229 output_params_list ::= output_params
230 | output_params_list "," output_params
231 | output_params_list ","
232
233 output_params ::= output
234 | flush
235 | maxsize
236 | maxver
237 | pattern
238
239 output ::= "output" ":" STRING
240
241 flush ::= "flush" ":" BOOLEAN
242
243 maxsize ::= "maxsize" ":" INTEGER
244
245 maxver ::= "maxver" ":" INTEGER
246
247 pattern ::= "pattern" ":" STRING
BNF Grammar for DHCP-DDNS
This grammar is generated from d2_parser.yy
. See The DHCP-DDNS Server for more details.
1 Grammar
2
3 $accept ::= start EOF
4
5 start ::= TOPLEVEL_JSON sub_json
6
7 start ::= TOPLEVEL_DHCPDDNS syntax_map
8
9 start ::= SUB_DHCPDDNS sub_dhcpddns
10
11 start ::= SUB_TSIG_KEY sub_tsig_key
12
13 start ::= SUB_TSIG_KEYS sub_tsig_keys
14
15 start ::= SUB_DDNS_DOMAIN sub_ddns_domain
16
17 start ::= SUB_DDNS_DOMAINS sub_ddns_domains
18
19 start ::= SUB_DNS_SERVER sub_dns_server
20
21 start ::= SUB_DNS_SERVERS sub_dns_servers
22
23 start ::= SUB_HOOKS_LIBRARY sub_hooks_library
24
25 value ::= INTEGER
26 | FLOAT
27 | BOOLEAN
28 | STRING
29 | NULL
30 | map2
31 | list_generic
32
33 sub_json ::= value
34
35 map2 ::= "{" map_content "}"
36
37 map_value ::= map2
38
39 map_content ::=
40 | not_empty_map
41
42 not_empty_map ::= STRING ":" value
43 | not_empty_map "," STRING ":" value
44 | not_empty_map ","
45
46 list_generic ::= "[" list_content "]"
47
48 list_content ::=
49 | not_empty_list
50
51 not_empty_list ::= value
52 | not_empty_list "," value
53 | not_empty_list ","
54
55 unknown_map_entry ::= STRING ":"
56
57 syntax_map ::= "{" global_object "}"
58
59 global_object ::= "DhcpDdns" ":" "{" dhcpddns_params "}"
60 | global_object_comma
61
62 global_object_comma ::= global_object ","
63
64 sub_dhcpddns ::= "{" dhcpddns_params "}"
65
66 dhcpddns_params ::= dhcpddns_param
67 | dhcpddns_params "," dhcpddns_param
68 | dhcpddns_params ","
69
70 dhcpddns_param ::= ip_address
71 | port
72 | dns_server_timeout
73 | ncr_protocol
74 | ncr_format
75 | forward_ddns
76 | reverse_ddns
77 | tsig_keys
78 | control_socket
79 | control_sockets
80 | hooks_libraries
81 | loggers
82 | user_context
83 | comment
84 | unknown_map_entry
85
86 ip_address ::= "ip-address" ":" STRING
87
88 port ::= "port" ":" INTEGER
89
90 dns_server_timeout ::= "dns-server-timeout" ":" INTEGER
91
92 ncr_protocol ::= "ncr-protocol" ":" ncr_protocol_value
93
94 ncr_protocol_value ::= "UDP"
95 | "TCP"
96
97 ncr_format ::= "ncr-format" ":" "JSON"
98
99 user_context ::= "user-context" ":" map_value
100
101 comment ::= "comment" ":" STRING
102
103 forward_ddns ::= "forward-ddns" ":" "{" ddns_mgr_params "}"
104
105 reverse_ddns ::= "reverse-ddns" ":" "{" ddns_mgr_params "}"
106
107 ddns_mgr_params ::=
108 | not_empty_ddns_mgr_params
109
110 not_empty_ddns_mgr_params ::= ddns_mgr_param
111 | ddns_mgr_params "," ddns_mgr_param
112 | ddns_mgr_params ","
113
114 ddns_mgr_param ::= ddns_domains
115 | unknown_map_entry
116
117 ddns_domains ::= "ddns-domains" ":" "[" ddns_domain_list "]"
118
119 sub_ddns_domains ::= "[" ddns_domain_list "]"
120
121 ddns_domain_list ::=
122 | not_empty_ddns_domain_list
123
124 not_empty_ddns_domain_list ::= ddns_domain
125 | not_empty_ddns_domain_list "," ddns_domain
126 | not_empty_ddns_domain_list ","
127
128 ddns_domain ::= "{" ddns_domain_params "}"
129
130 sub_ddns_domain ::= "{" ddns_domain_params "}"
131
132 ddns_domain_params ::= ddns_domain_param
133 | ddns_domain_params "," ddns_domain_param
134 | ddns_domain_params ","
135
136 ddns_domain_param ::= ddns_domain_name
137 | ddns_key_name
138 | dns_servers
139 | user_context
140 | comment
141 | unknown_map_entry
142
143 ddns_domain_name ::= "name" ":" STRING
144
145 ddns_key_name ::= "key-name" ":" STRING
146
147 dns_servers ::= "dns-servers" ":" "[" dns_server_list "]"
148
149 sub_dns_servers ::= "[" dns_server_list "]"
150
151 dns_server_list ::= dns_server
152 | dns_server_list "," dns_server
153 | dns_server_list ","
154
155 dns_server ::= "{" dns_server_params "}"
156
157 sub_dns_server ::= "{" dns_server_params "}"
158
159 dns_server_params ::= dns_server_param
160 | dns_server_params "," dns_server_param
161 | dns_server_params ","
162
163 dns_server_param ::= dns_server_hostname
164 | dns_server_ip_address
165 | dns_server_port
166 | ddns_key_name
167 | user_context
168 | comment
169 | unknown_map_entry
170
171 dns_server_hostname ::= "hostname" ":" STRING
172
173 dns_server_ip_address ::= "ip-address" ":" STRING
174
175 dns_server_port ::= "port" ":" INTEGER
176
177 tsig_keys ::= "tsig-keys" ":" "[" tsig_keys_list "]"
178
179 sub_tsig_keys ::= "[" tsig_keys_list "]"
180
181 tsig_keys_list ::=
182 | not_empty_tsig_keys_list
183
184 not_empty_tsig_keys_list ::= tsig_key
185 | not_empty_tsig_keys_list "," tsig_key
186 | not_empty_tsig_keys_list ","
187
188 tsig_key ::= "{" tsig_key_params "}"
189
190 sub_tsig_key ::= "{" tsig_key_params "}"
191
192 tsig_key_params ::= tsig_key_param
193 | tsig_key_params "," tsig_key_param
194 | tsig_key_params ","
195
196 tsig_key_param ::= tsig_key_name
197 | tsig_key_algorithm
198 | tsig_key_digest_bits
199 | tsig_key_secret
200 | tsig_key_secret_file
201 | user_context
202 | comment
203 | unknown_map_entry
204
205 tsig_key_name ::= "name" ":" STRING
206
207 tsig_key_algorithm ::= "algorithm" ":" STRING
208
209 tsig_key_digest_bits ::= "digest-bits" ":" INTEGER
210
211 tsig_key_secret ::= "secret" ":" STRING
212
213 tsig_key_secret_file ::= "secret-file" ":" STRING
214
215 control_socket ::= "control-socket" ":" "{" control_socket_params "}"
216
217 control_sockets ::= "control-sockets" ":" "[" control_socket_list "]"
218
219 control_socket_list ::=
220 | not_empty_control_socket_list
221
222 not_empty_control_socket_list ::= control_socket_entry
223 | not_empty_control_socket_list "," control_socket_entry
224 | not_empty_control_socket_list ","
225
226 control_socket_entry ::= "{" control_socket_params "}"
227
228 control_socket_params ::= control_socket_param
229 | control_socket_params "," control_socket_param
230 | control_socket_params ","
231
232 control_socket_param ::= control_socket_type
233 | control_socket_name
234 | control_socket_address
235 | control_socket_port
236 | authentication
237 | trust_anchor
238 | cert_file
239 | key_file
240 | cert_required
241 | user_context
242 | comment
243 | unknown_map_entry
244
245 control_socket_type ::= "socket-type" ":" control_socket_type_value
246
247 control_socket_type_value ::= "unix"
248 | "http"
249 | "https"
250
251 control_socket_name ::= "socket-name" ":" STRING
252
253 control_socket_address ::= "socket-address" ":" STRING
254
255 control_socket_port ::= "socket-port" ":" INTEGER
256
257 trust_anchor ::= "trust-anchor" ":" STRING
258
259 cert_file ::= "cert-file" ":" STRING
260
261 key_file ::= "key-file" ":" STRING
262
263 cert_required ::= "cert-required" ":" BOOLEAN
264
265 authentication ::= "authentication" ":" "{" auth_params "}"
266
267 auth_params ::= auth_param
268 | auth_params "," auth_param
269 | auth_params ","
270
271 auth_param ::= auth_type
272 | realm
273 | directory
274 | clients
275 | comment
276 | user_context
277 | unknown_map_entry
278
279 auth_type ::= "type" ":" auth_type_value
280
281 auth_type_value ::= "basic"
282
283 realm ::= "realm" ":" STRING
284
285 directory ::= "directory" ":" STRING
286
287 clients ::= "clients" ":" "[" clients_list "]"
288
289 clients_list ::=
290 | not_empty_clients_list
291
292 not_empty_clients_list ::= basic_auth
293 | not_empty_clients_list "," basic_auth
294 | not_empty_clients_list ","
295
296 basic_auth ::= "{" clients_params "}"
297
298 clients_params ::= clients_param
299 | clients_params "," clients_param
300 | clients_params ","
301
302 clients_param ::= user
303 | user_file
304 | password
305 | password_file
306 | user_context
307 | comment
308 | unknown_map_entry
309
310 user ::= "user" ":" STRING
311
312 user_file ::= "user-file" ":" STRING
313
314 password ::= "password" ":" STRING
315
316 password_file ::= "password-file" ":" STRING
317
318 hooks_libraries ::= "hooks-libraries" ":" "[" hooks_libraries_list "]"
319
320 hooks_libraries_list ::=
321 | not_empty_hooks_libraries_list
322
323 not_empty_hooks_libraries_list ::= hooks_library
324 | not_empty_hooks_libraries_list "," hooks_library
325 | not_empty_hooks_libraries_list ","
326
327 hooks_library ::= "{" hooks_params "}"
328
329 sub_hooks_library ::= "{" hooks_params "}"
330
331 hooks_params ::= hooks_param
332 | hooks_params "," hooks_param
333 | hooks_params ","
334 | unknown_map_entry
335
336 hooks_param ::= library
337 | parameters
338
339 library ::= "library" ":" STRING
340
341 parameters ::= "parameters" ":" map_value
342
343 loggers ::= "loggers" ":" "[" loggers_entries "]"
344
345 loggers_entries ::= logger_entry
346 | loggers_entries "," logger_entry
347 | loggers_entries ","
348
349 logger_entry ::= "{" logger_params "}"
350
351 logger_params ::= logger_param
352 | logger_params "," logger_param
353 | logger_params ","
354
355 logger_param ::= name
356 | output_options_list
357 | debuglevel
358 | severity
359 | user_context
360 | comment
361 | unknown_map_entry
362
363 name ::= "name" ":" STRING
364
365 debuglevel ::= "debuglevel" ":" INTEGER
366
367 severity ::= "severity" ":" STRING
368
369 output_options_list ::= "output-options" ":" "[" output_options_list_content "]"
370
371 output_options_list_content ::= output_entry
372 | output_options_list_content "," output_entry
373 | output_options_list_content ","
374
375 output_entry ::= "{" output_params_list "}"
376
377 output_params_list ::= output_params
378 | output_params_list "," output_params
379 | output_params_list ","
380
381 output_params ::= output
382 | flush
383 | maxsize
384 | maxver
385 | pattern
386
387 output ::= "output" ":" STRING
388
389 flush ::= "flush" ":" BOOLEAN
390
391 maxsize ::= "maxsize" ":" INTEGER
392
393 maxver ::= "maxver" ":" INTEGER
394
395 pattern ::= "pattern" ":" STRING
BNF Grammar for the Kea NETCONF Agent
This grammar is generated from netconf_parser.yy
. See YANG/NETCONF for more details.
1 Grammar
2
3 $accept ::= start EOF
4
5 start ::= START_JSON json
6
7 start ::= START_NETCONF netconf_syntax_map
8
9 start ::= START_SUB_NETCONF sub_netconf
10
11 sub_netconf ::= "{" global_params "}"
12
13 json ::= value
14
15 value ::= INTEGER
16 | FLOAT
17 | BOOLEAN
18 | STRING
19 | NULL
20 | map
21 | list_generic
22
23 map ::= "{" map_content "}"
24
25 map_value ::= map
26
27 map_content ::=
28 | not_empty_map
29
30 not_empty_map ::= STRING ":" value
31 | not_empty_map "," STRING ":" value
32 | not_empty_map ","
33
34 list_generic ::= "[" list_content "]"
35
36 list_content ::=
37 | not_empty_list
38
39 not_empty_list ::= value
40 | not_empty_list "," value
41 | not_empty_list ","
42
43 unknown_map_entry ::= STRING ":"
44
45 netconf_syntax_map ::= "{" global_object "}"
46
47 global_object ::= "Netconf" ":" "{" global_params "}"
48 | global_object_comma
49
50 global_object_comma ::= global_object ","
51
52 global_params ::=
53 | not_empty_global_params
54
55 not_empty_global_params ::= global_param
56 | not_empty_global_params "," global_param
57 | not_empty_global_params ","
58
59 global_param ::= boot_update
60 | subscribe_changes
61 | validate_changes
62 | managed_servers
63 | hooks_libraries
64 | loggers
65 | user_context
66 | comment
67 | unknown_map_entry
68
69 boot_update ::= "boot-update" ":" BOOLEAN
70
71 subscribe_changes ::= "subscribe-changes" ":" BOOLEAN
72
73 validate_changes ::= "validate-changes" ":" BOOLEAN
74
75 user_context ::= "user-context" ":" map_value
76
77 comment ::= "comment" ":" STRING
78
79 hooks_libraries ::= "hooks-libraries" ":" "[" hooks_libraries_list "]"
80
81 hooks_libraries_list ::=
82 | not_empty_hooks_libraries_list
83
84 not_empty_hooks_libraries_list ::= hooks_library
85 | not_empty_hooks_libraries_list "," hooks_library
86 | not_empty_hooks_libraries_list ","
87
88 hooks_library ::= "{" hooks_params "}"
89
90 hooks_params ::= hooks_param
91 | hooks_params "," hooks_param
92 | hooks_params ","
93 | unknown_map_entry
94
95 hooks_param ::= library
96 | parameters
97
98 library ::= "library" ":" STRING
99
100 parameters ::= "parameters" ":" map_value
101
102 managed_servers ::= "managed-servers" ":" "{" servers_entries "}"
103
104 servers_entries ::=
105 | not_empty_servers_entries
106
107 not_empty_servers_entries ::= server_entry
108 | not_empty_servers_entries "," server_entry
109 | not_empty_servers_entries ","
110
111 server_entry ::= dhcp4_server
112 | dhcp6_server
113 | d2_server
114 | ca_server
115 | unknown_map_entry
116
117 dhcp4_server ::= "dhcp4" ":" "{" managed_server_params "}"
118
119 dhcp6_server ::= "dhcp6" ":" "{" managed_server_params "}"
120
121 d2_server ::= "d2" ":" "{" managed_server_params "}"
122
123 ca_server ::= "ca" ":" "{" managed_server_params "}"
124
125 managed_server_params ::= managed_server_param
126 | managed_server_params "," managed_server_param
127 | managed_server_params ","
128
129 managed_server_param ::= model
130 | boot_update
131 | subscribe_changes
132 | validate_changes
133 | control_socket
134 | user_context
135 | comment
136 | unknown_map_entry
137
138 model ::= "model" ":" STRING
139
140 control_socket ::= "control-socket" ":" "{" control_socket_params "}"
141
142 control_socket_params ::= control_socket_param
143 | control_socket_params "," control_socket_param
144 | control_socket_params ","
145
146 control_socket_param ::= socket_type
147 | socket_name
148 | socket_url
149 | user_context
150 | comment
151 | unknown_map_entry
152
153 socket_type ::= "socket-type" ":" socket_type_value
154
155 socket_type_value ::= "unix"
156 | "http"
157 | "stdout"
158
159 socket_name ::= "socket-name" ":" STRING
160
161 socket_url ::= "socket-url" ":" STRING
162
163 loggers ::= "loggers" ":" "[" loggers_entries "]"
164
165 loggers_entries ::= logger_entry
166 | loggers_entries "," logger_entry
167 | loggers_entries ","
168
169 logger_entry ::= "{" logger_params "}"
170
171 logger_params ::= logger_param
172 | logger_params "," logger_param
173 | logger_params ","
174
175 logger_param ::= name
176 | output_options_list
177 | debuglevel
178 | severity
179 | user_context
180 | comment
181 | unknown_map_entry
182
183 name ::= "name" ":" STRING
184
185 debuglevel ::= "debuglevel" ":" INTEGER
186
187 severity ::= "severity" ":" STRING
188
189 output_options_list ::= "output-options" ":" "[" output_options_list_content "]"
190
191 output_options_list_content ::= output_entry
192 | output_options_list_content "," output_entry
193 | output_options_list_content ","
194
195 output_entry ::= "{" output_params_list "}"
196
197 output_params_list ::= output_params
198 | output_params_list "," output_params
199 | output_params_list ","
200
201 output_params ::= output
202 | flush
203 | maxsize
204 | maxver
205 | pattern
206
207 output ::= "output" ":" STRING
208
209 flush ::= "flush" ":" BOOLEAN
210
211 maxsize ::= "maxsize" ":" INTEGER
212
213 maxver ::= "maxver" ":" INTEGER
214
215 pattern ::= "pattern" ":" STRING