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              | dhcp_queue_control
106              | dhcp_ddns
107              | echo_client_id
108              | match_client_id
109              | authoritative
110              | next_server
111              | server_hostname
112              | boot_file_name
113              | user_context
114              | comment
115              | sanity_checks
116              | reservations
117              | config_control
118              | server_tag
119              | reservation_mode
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              | store_extended_info
140              | statistic_default_sample_count
141              | statistic_default_sample_age
142              | dhcp_multi_threading
143              | early_global_reservations_lookup
144              | ip_reservations_unique
145              | reservations_lookup_first
146              | compatibility
147              | parked_packet_limit
148              | unknown_map_entry
149
150  valid_lifetime ::= "valid-lifetime" ":" INTEGER
151
152  min_valid_lifetime ::= "min-valid-lifetime" ":" INTEGER
153
154  max_valid_lifetime ::= "max-valid-lifetime" ":" INTEGER
155
156  renew_timer ::= "renew-timer" ":" INTEGER
157
158  rebind_timer ::= "rebind-timer" ":" INTEGER
159
160  calculate_tee_times ::= "calculate-tee-times" ":" BOOLEAN
161
162  t1_percent ::= "t1-percent" ":" FLOAT
163
164  t2_percent ::= "t2-percent" ":" FLOAT
165
166  cache_threshold ::= "cache-threshold" ":" FLOAT
167
168  cache_max_age ::= "cache-max-age" ":" INTEGER
169
170  decline_probation_period ::= "decline-probation-period" ":" INTEGER
171
172  server_tag ::= "server-tag" ":" STRING
173
174  parked_packet_limit ::= "parked-packet-limit" ":" INTEGER
175
176  echo_client_id ::= "echo-client-id" ":" BOOLEAN
177
178  match_client_id ::= "match-client-id" ":" BOOLEAN
179
180  authoritative ::= "authoritative" ":" BOOLEAN
181
182  ddns_send_updates ::= "ddns-send-updates" ":" BOOLEAN
183
184  ddns_override_no_update ::= "ddns-override-no-update" ":" BOOLEAN
185
186  ddns_override_client_update ::= "ddns-override-client-update" ":" BOOLEAN
187
188  ddns_replace_client_name ::= "ddns-replace-client-name" ":" ddns_replace_client_name_value
189
190  ddns_replace_client_name_value ::= "when-present"
191                                | "never"
192                                | "always"
193                                | "when-not-present"
194                                | BOOLEAN
195
196  ddns_generated_prefix ::= "ddns-generated-prefix" ":" STRING
197
198  ddns_qualifying_suffix ::= "ddns-qualifying-suffix" ":" STRING
199
200  ddns_update_on_renew ::= "ddns-update-on-renew" ":" BOOLEAN
201
202  ddns_use_conflict_resolution ::= "ddns-use-conflict-resolution" ":" BOOLEAN
203
204  hostname_char_set ::= "hostname-char-set" ":" STRING
205
206  hostname_char_replacement ::= "hostname-char-replacement" ":" STRING
207
208  store_extended_info ::= "store-extended-info" ":" BOOLEAN
209
210  statistic_default_sample_count ::= "statistic-default-sample-count" ":" INTEGER
211
212  statistic_default_sample_age ::= "statistic-default-sample-age" ":" INTEGER
213
214  early_global_reservations_lookup ::= "early-global-reservations-lookup" ":" BOOLEAN
215
216  ip_reservations_unique ::= "ip-reservations-unique" ":" BOOLEAN
217
218  reservations_lookup_first ::= "reservations-lookup-first" ":" BOOLEAN
219
220  interfaces_config ::= "interfaces-config" ":" "{" interfaces_config_params "}"
221
222  interfaces_config_params ::= interfaces_config_param
223                          | interfaces_config_params "," interfaces_config_param
224                          | interfaces_config_params ","
225
226  interfaces_config_param ::= interfaces_list
227                         | dhcp_socket_type
228                         | outbound_interface
229                         | re_detect
230                         | service_sockets_require_all
231                         | service_sockets_retry_wait_time
232                         | service_sockets_max_retries
233                         | user_context
234                         | comment
235                         | unknown_map_entry
236
237  sub_interfaces4 ::= "{" interfaces_config_params "}"
238
239  interfaces_list ::= "interfaces" ":" list_strings
240
241  dhcp_socket_type ::= "dhcp-socket-type" ":" socket_type
242
243  socket_type ::= "raw"
244             | "udp"
245
246  outbound_interface ::= "outbound-interface" ":" outbound_interface_value
247
248  outbound_interface_value ::= "same-as-inbound"
249                          | "use-routing"
250
251  re_detect ::= "re-detect" ":" BOOLEAN
252
253  service_sockets_require_all ::= "service-sockets-require-all" ":" BOOLEAN
254
255  service_sockets_retry_wait_time ::= "service-sockets-retry-wait-time" ":" INTEGER
256
257  service_sockets_max_retries ::= "service-sockets-max-retries" ":" INTEGER
258
259  lease_database ::= "lease-database" ":" "{" database_map_params "}"
260
261  sanity_checks ::= "sanity-checks" ":" "{" sanity_checks_params "}"
262
263  sanity_checks_params ::= sanity_checks_param
264                      | sanity_checks_params "," sanity_checks_param
265                      | sanity_checks_params ","
266
267  sanity_checks_param ::= lease_checks
268
269  lease_checks ::= "lease-checks" ":" STRING
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                    | max_reconnect_tries
299                    | reconnect_wait_time
300                    | on_fail
301                    | max_row_errors
302                    | trust_anchor
303                    | cert_file
304                    | key_file
305                    | cipher_list
306                    | unknown_map_entry
307
308  database_type ::= "type" ":" db_type
309
310  db_type ::= "memfile"
311         | "mysql"
312         | "postgresql"
313
314  user ::= "user" ":" STRING
315
316  password ::= "password" ":" STRING
317
318  host ::= "host" ":" STRING
319
320  port ::= "port" ":" INTEGER
321
322  name ::= "name" ":" STRING
323
324  persist ::= "persist" ":" BOOLEAN
325
326  lfc_interval ::= "lfc-interval" ":" INTEGER
327
328  readonly ::= "readonly" ":" BOOLEAN
329
330  connect_timeout ::= "connect-timeout" ":" INTEGER
331
332  max_reconnect_tries ::= "max-reconnect-tries" ":" INTEGER
333
334  reconnect_wait_time ::= "reconnect-wait-time" ":" INTEGER
335
336  on_fail ::= "on-fail" ":" on_fail_mode
337
338  on_fail_mode ::= "stop-retry-exit"
339              | "serve-retry-exit"
340              | "serve-retry-continue"
341
342  max_row_errors ::= "max-row-errors" ":" INTEGER
343
344  trust_anchor ::= "trust-anchor" ":" STRING
345
346  cert_file ::= "cert-file" ":" STRING
347
348  key_file ::= "key-file" ":" STRING
349
350  cipher_list ::= "cipher-list" ":" STRING
351
352  host_reservation_identifiers ::= "host-reservation-identifiers" ":" "[" host_reservation_identifiers_list "]"
353
354  host_reservation_identifiers_list ::= host_reservation_identifier
355                                   | host_reservation_identifiers_list "," host_reservation_identifier
356                                   | host_reservation_identifiers_list ","
357
358  host_reservation_identifier ::= duid_id
359                             | hw_address_id
360                             | circuit_id
361                             | client_id
362                             | flex_id
363
364  duid_id ::= "duid"
365
366  hw_address_id ::= "hw-address"
367
368  circuit_id ::= "circuit-id"
369
370  client_id ::= "client-id"
371
372  flex_id ::= "flex-id"
373
374  dhcp_multi_threading ::= "multi-threading" ":" "{" multi_threading_params "}"
375
376  multi_threading_params ::= multi_threading_param
377                        | multi_threading_params "," multi_threading_param
378                        | multi_threading_params ","
379
380  multi_threading_param ::= enable_multi_threading
381                       | thread_pool_size
382                       | packet_queue_size
383                       | user_context
384                       | comment
385                       | unknown_map_entry
386
387  enable_multi_threading ::= "enable-multi-threading" ":" BOOLEAN
388
389  thread_pool_size ::= "thread-pool-size" ":" INTEGER
390
391  packet_queue_size ::= "packet-queue-size" ":" INTEGER
392
393  hooks_libraries ::= "hooks-libraries" ":" "[" hooks_libraries_list "]"
394
395  hooks_libraries_list ::=
396                      | not_empty_hooks_libraries_list
397
398  not_empty_hooks_libraries_list ::= hooks_library
399                                | not_empty_hooks_libraries_list "," hooks_library
400                                | not_empty_hooks_libraries_list ","
401
402  hooks_library ::= "{" hooks_params "}"
403
404  sub_hooks_library ::= "{" hooks_params "}"
405
406  hooks_params ::= hooks_param
407              | hooks_params "," hooks_param
408              | hooks_params ","
409              | unknown_map_entry
410
411  hooks_param ::= library
412             | parameters
413
414  library ::= "library" ":" STRING
415
416  parameters ::= "parameters" ":" map_value
417
418  expired_leases_processing ::= "expired-leases-processing" ":" "{" expired_leases_params "}"
419
420  expired_leases_params ::= expired_leases_param
421                       | expired_leases_params "," expired_leases_param
422                       | expired_leases_params ","
423
424  expired_leases_param ::= reclaim_timer_wait_time
425                      | flush_reclaimed_timer_wait_time
426                      | hold_reclaimed_time
427                      | max_reclaim_leases
428                      | max_reclaim_time
429                      | unwarned_reclaim_cycles
430
431  reclaim_timer_wait_time ::= "reclaim-timer-wait-time" ":" INTEGER
432
433  flush_reclaimed_timer_wait_time ::= "flush-reclaimed-timer-wait-time" ":" INTEGER
434
435  hold_reclaimed_time ::= "hold-reclaimed-time" ":" INTEGER
436
437  max_reclaim_leases ::= "max-reclaim-leases" ":" INTEGER
438
439  max_reclaim_time ::= "max-reclaim-time" ":" INTEGER
440
441  unwarned_reclaim_cycles ::= "unwarned-reclaim-cycles" ":" INTEGER
442
443  subnet4_list ::= "subnet4" ":" "[" subnet4_list_content "]"
444
445  subnet4_list_content ::=
446                      | not_empty_subnet4_list
447
448  not_empty_subnet4_list ::= subnet4
449                        | not_empty_subnet4_list "," subnet4
450                        | not_empty_subnet4_list ","
451
452  subnet4 ::= "{" subnet4_params "}"
453
454  sub_subnet4 ::= "{" subnet4_params "}"
455
456  subnet4_params ::= subnet4_param
457                | subnet4_params "," subnet4_param
458                | subnet4_params ","
459
460  subnet4_param ::= valid_lifetime
461               | min_valid_lifetime
462               | max_valid_lifetime
463               | renew_timer
464               | rebind_timer
465               | option_data_list
466               | pools_list
467               | subnet
468               | interface
469               | id
470               | client_class
471               | require_client_classes
472               | reservations
473               | reservation_mode
474               | reservations_global
475               | reservations_in_subnet
476               | reservations_out_of_pool
477               | relay
478               | match_client_id
479               | authoritative
480               | next_server
481               | server_hostname
482               | boot_file_name
483               | subnet_4o6_interface
484               | subnet_4o6_interface_id
485               | subnet_4o6_subnet
486               | user_context
487               | comment
488               | calculate_tee_times
489               | t1_percent
490               | t2_percent
491               | cache_threshold
492               | cache_max_age
493               | ddns_send_updates
494               | ddns_override_no_update
495               | ddns_override_client_update
496               | ddns_replace_client_name
497               | ddns_generated_prefix
498               | ddns_qualifying_suffix
499               | ddns_update_on_renew
500               | ddns_use_conflict_resolution
501               | hostname_char_set
502               | hostname_char_replacement
503               | store_extended_info
504               | unknown_map_entry
505
506  subnet ::= "subnet" ":" STRING
507
508  subnet_4o6_interface ::= "4o6-interface" ":" STRING
509
510  subnet_4o6_interface_id ::= "4o6-interface-id" ":" STRING
511
512  subnet_4o6_subnet ::= "4o6-subnet" ":" STRING
513
514  interface ::= "interface" ":" STRING
515
516  client_class ::= "client-class" ":" STRING
517
518  require_client_classes ::= "require-client-classes" ":" list_strings
519
520  reservations_global ::= "reservations-global" ":" BOOLEAN
521
522  reservations_in_subnet ::= "reservations-in-subnet" ":" BOOLEAN
523
524  reservations_out_of_pool ::= "reservations-out-of-pool" ":" BOOLEAN
525
526  reservation_mode ::= "reservation-mode" ":" hr_mode
527
528  hr_mode ::= "disabled"
529         | "out-of-pool"
530         | "global"
531         | "all"
532
533  id ::= "id" ":" INTEGER
534
535  shared_networks ::= "shared-networks" ":" "[" shared_networks_content "]"
536
537  shared_networks_content ::=
538                         | shared_networks_list
539
540  shared_networks_list ::= shared_network
541                      | shared_networks_list "," shared_network
542                      | shared_networks_list ","
543
544  shared_network ::= "{" shared_network_params "}"
545
546  shared_network_params ::= shared_network_param
547                       | shared_network_params "," shared_network_param
548                       | shared_network_params ","
549
550  shared_network_param ::= name
551                      | subnet4_list
552                      | interface
553                      | renew_timer
554                      | rebind_timer
555                      | option_data_list
556                      | match_client_id
557                      | authoritative
558                      | next_server
559                      | server_hostname
560                      | boot_file_name
561                      | relay
562                      | reservation_mode
563                      | reservations_global
564                      | reservations_in_subnet
565                      | reservations_out_of_pool
566                      | client_class
567                      | require_client_classes
568                      | valid_lifetime
569                      | min_valid_lifetime
570                      | max_valid_lifetime
571                      | user_context
572                      | comment
573                      | calculate_tee_times
574                      | t1_percent
575                      | t2_percent
576                      | cache_threshold
577                      | cache_max_age
578                      | ddns_send_updates
579                      | ddns_override_no_update
580                      | ddns_override_client_update
581                      | ddns_replace_client_name
582                      | ddns_generated_prefix
583                      | ddns_qualifying_suffix
584                      | ddns_update_on_renew
585                      | ddns_use_conflict_resolution
586                      | hostname_char_set
587                      | hostname_char_replacement
588                      | store_extended_info
589                      | unknown_map_entry
590
591  option_def_list ::= "option-def" ":" "[" option_def_list_content "]"
592
593  sub_option_def_list ::= "{" option_def_list "}"
594
595  option_def_list_content ::=
596                         | not_empty_option_def_list
597
598  not_empty_option_def_list ::= option_def_entry
599                           | not_empty_option_def_list "," option_def_entry
600                           | not_empty_option_def_list ","
601
602  option_def_entry ::= "{" option_def_params "}"
603
604  sub_option_def ::= "{" option_def_params "}"
605
606  option_def_params ::=
607                   | not_empty_option_def_params
608
609  not_empty_option_def_params ::= option_def_param
610                             | not_empty_option_def_params "," option_def_param
611                             | not_empty_option_def_params ","
612
613  option_def_param ::= option_def_name
614                  | option_def_code
615                  | option_def_type
616                  | option_def_record_types
617                  | option_def_space
618                  | option_def_encapsulate
619                  | option_def_array
620                  | user_context
621                  | comment
622                  | unknown_map_entry
623
624  option_def_name ::= name
625
626  code ::= "code" ":" INTEGER
627
628  option_def_code ::= code
629
630  option_def_type ::= "type" ":" STRING
631
632  option_def_record_types ::= "record-types" ":" STRING
633
634  space ::= "space" ":" STRING
635
636  option_def_space ::= space
637
638  option_def_encapsulate ::= "encapsulate" ":" STRING
639
640  option_def_array ::= "array" ":" BOOLEAN
641
642  option_data_list ::= "option-data" ":" "[" option_data_list_content "]"
643
644  option_data_list_content ::=
645                          | not_empty_option_data_list
646
647  not_empty_option_data_list ::= option_data_entry
648                            | not_empty_option_data_list "," option_data_entry
649                            | not_empty_option_data_list ","
650
651  option_data_entry ::= "{" option_data_params "}"
652
653  sub_option_data ::= "{" option_data_params "}"
654
655  option_data_params ::=
656                    | not_empty_option_data_params
657
658  not_empty_option_data_params ::= option_data_param
659                              | not_empty_option_data_params "," option_data_param
660                              | not_empty_option_data_params ","
661
662  option_data_param ::= option_data_name
663                   | option_data_data
664                   | option_data_code
665                   | option_data_space
666                   | option_data_csv_format
667                   | option_data_always_send
668                   | user_context
669                   | comment
670                   | unknown_map_entry
671
672  option_data_name ::= name
673
674  option_data_data ::= "data" ":" STRING
675
676  option_data_code ::= code
677
678  option_data_space ::= space
679
680  option_data_csv_format ::= "csv-format" ":" BOOLEAN
681
682  option_data_always_send ::= "always-send" ":" BOOLEAN
683
684  pools_list ::= "pools" ":" "[" pools_list_content "]"
685
686  pools_list_content ::=
687                    | not_empty_pools_list
688
689  not_empty_pools_list ::= pool_list_entry
690                      | not_empty_pools_list "," pool_list_entry
691                      | not_empty_pools_list ","
692
693  pool_list_entry ::= "{" pool_params "}"
694
695  sub_pool4 ::= "{" pool_params "}"
696
697  pool_params ::= pool_param
698             | pool_params "," pool_param
699             | pool_params ","
700
701  pool_param ::= pool_entry
702            | option_data_list
703            | client_class
704            | require_client_classes
705            | user_context
706            | comment
707            | unknown_map_entry
708
709  pool_entry ::= "pool" ":" STRING
710
711  user_context ::= "user-context" ":" map_value
712
713  comment ::= "comment" ":" STRING
714
715  reservations ::= "reservations" ":" "[" reservations_list "]"
716
717  reservations_list ::=
718                   | not_empty_reservations_list
719
720  not_empty_reservations_list ::= reservation
721                             | not_empty_reservations_list "," reservation
722                             | not_empty_reservations_list ","
723
724  reservation ::= "{" reservation_params "}"
725
726  sub_reservation ::= "{" reservation_params "}"
727
728  reservation_params ::=
729                    | not_empty_reservation_params
730
731  not_empty_reservation_params ::= reservation_param
732                              | not_empty_reservation_params "," reservation_param
733                              | not_empty_reservation_params ","
734
735  reservation_param ::= duid
736                   | reservation_client_classes
737                   | client_id_value
738                   | circuit_id_value
739                   | flex_id_value
740                   | ip_address
741                   | hw_address
742                   | hostname
743                   | option_data_list
744                   | next_server
745                   | server_hostname
746                   | boot_file_name
747                   | user_context
748                   | comment
749                   | unknown_map_entry
750
751  next_server ::= "next-server" ":" STRING
752
753  server_hostname ::= "server-hostname" ":" STRING
754
755  boot_file_name ::= "boot-file-name" ":" STRING
756
757  ip_address ::= "ip-address" ":" STRING
758
759  ip_addresses ::= "ip-addresses" ":" list_strings
760
761  duid ::= "duid" ":" STRING
762
763  hw_address ::= "hw-address" ":" STRING
764
765  client_id_value ::= "client-id" ":" STRING
766
767  circuit_id_value ::= "circuit-id" ":" STRING
768
769  flex_id_value ::= "flex-id" ":" STRING
770
771  hostname ::= "hostname" ":" STRING
772
773  reservation_client_classes ::= "client-classes" ":" list_strings
774
775  relay ::= "relay" ":" "{" relay_map "}"
776
777  relay_map ::= ip_address
778           | ip_addresses
779
780  client_classes ::= "client-classes" ":" "[" client_classes_list "]"
781
782  client_classes_list ::= client_class_entry
783                     | client_classes_list "," client_class_entry
784                     | client_classes_list ","
785
786  client_class_entry ::= "{" client_class_params "}"
787
788  client_class_params ::=
789                     | not_empty_client_class_params
790
791  not_empty_client_class_params ::= client_class_param
792                               | not_empty_client_class_params "," client_class_param
793                               | not_empty_client_class_params ","
794
795  client_class_param ::= client_class_name
796                    | client_class_test
797                    | only_if_required
798                    | option_def_list
799                    | option_data_list
800                    | next_server
801                    | server_hostname
802                    | boot_file_name
803                    | user_context
804                    | comment
805                    | unknown_map_entry
806                    | valid_lifetime
807                    | min_valid_lifetime
808                    | max_valid_lifetime
809
810  client_class_name ::= name
811
812  client_class_test ::= "test" ":" STRING
813
814  only_if_required ::= "only-if-required" ":" BOOLEAN
815
816  dhcp4o6_port ::= "dhcp4o6-port" ":" INTEGER
817
818  control_socket ::= "control-socket" ":" "{" control_socket_params "}"
819
820  control_socket_params ::= control_socket_param
821                       | control_socket_params "," control_socket_param
822                       | control_socket_params ","
823
824  control_socket_param ::= control_socket_type
825                      | control_socket_name
826                      | user_context
827                      | comment
828                      | unknown_map_entry
829
830  control_socket_type ::= "socket-type" ":" STRING
831
832  control_socket_name ::= "socket-name" ":" STRING
833
834  dhcp_queue_control ::= "dhcp-queue-control" ":" "{" queue_control_params "}"
835
836  queue_control_params ::= queue_control_param
837                      | queue_control_params "," queue_control_param
838                      | queue_control_params ","
839
840  queue_control_param ::= enable_queue
841                     | queue_type
842                     | capacity
843                     | user_context
844                     | comment
845                     | arbitrary_map_entry
846
847  enable_queue ::= "enable-queue" ":" BOOLEAN
848
849  queue_type ::= "queue-type" ":" STRING
850
851  capacity ::= "capacity" ":" INTEGER
852
853  arbitrary_map_entry ::= STRING ":" value
854
855  dhcp_ddns ::= "dhcp-ddns" ":" "{" dhcp_ddns_params "}"
856
857  sub_dhcp_ddns ::= "{" dhcp_ddns_params "}"
858
859  dhcp_ddns_params ::= dhcp_ddns_param
860                  | dhcp_ddns_params "," dhcp_ddns_param
861                  | dhcp_ddns_params ","
862
863  dhcp_ddns_param ::= enable_updates
864                 | server_ip
865                 | server_port
866                 | sender_ip
867                 | sender_port
868                 | max_queue_size
869                 | ncr_protocol
870                 | ncr_format
871                 | dep_override_no_update
872                 | dep_override_client_update
873                 | dep_replace_client_name
874                 | dep_generated_prefix
875                 | dep_qualifying_suffix
876                 | dep_hostname_char_set
877                 | dep_hostname_char_replacement
878                 | user_context
879                 | comment
880                 | unknown_map_entry
881
882  enable_updates ::= "enable-updates" ":" BOOLEAN
883
884  server_ip ::= "server-ip" ":" STRING
885
886  server_port ::= "server-port" ":" INTEGER
887
888  sender_ip ::= "sender-ip" ":" STRING
889
890  sender_port ::= "sender-port" ":" INTEGER
891
892  max_queue_size ::= "max-queue-size" ":" INTEGER
893
894  ncr_protocol ::= "ncr-protocol" ":" ncr_protocol_value
895
896  ncr_protocol_value ::= "udp"
897                    | "tcp"
898
899  ncr_format ::= "ncr-format" ":" "JSON"
900
901  dep_qualifying_suffix ::= "qualifying-suffix" ":" STRING
902
903  dep_override_no_update ::= "override-no-update" ":" BOOLEAN
904
905  dep_override_client_update ::= "override-client-update" ":" BOOLEAN
906
907  dep_replace_client_name ::= "replace-client-name" ":" ddns_replace_client_name_value
908
909  dep_generated_prefix ::= "generated-prefix" ":" STRING
910
911  dep_hostname_char_set ::= "hostname-char-set" ":" STRING
912
913  dep_hostname_char_replacement ::= "hostname-char-replacement" ":" STRING
914
915  config_control ::= "config-control" ":" "{" config_control_params "}"
916
917  sub_config_control ::= "{" config_control_params "}"
918
919  config_control_params ::= config_control_param
920                       | config_control_params "," config_control_param
921                       | config_control_params ","
922
923  config_control_param ::= config_databases
924                      | config_fetch_wait_time
925
926  config_databases ::= "config-databases" ":" "[" database_list "]"
927
928  config_fetch_wait_time ::= "config-fetch-wait-time" ":" INTEGER
929
930  loggers ::= "loggers" ":" "[" loggers_entries "]"
931
932  loggers_entries ::= logger_entry
933                 | loggers_entries "," logger_entry
934                 | loggers_entries ","
935
936  logger_entry ::= "{" logger_params "}"
937
938  logger_params ::= logger_param
939               | logger_params "," logger_param
940               | logger_params ","
941
942  logger_param ::= name
943              | output_options_list
944              | debuglevel
945              | severity
946              | user_context
947              | comment
948              | unknown_map_entry
949
950  debuglevel ::= "debuglevel" ":" INTEGER
951
952  severity ::= "severity" ":" STRING
953
954  output_options_list ::= "output_options" ":" "[" output_options_list_content "]"
955
956  output_options_list_content ::= output_entry
957                             | output_options_list_content "," output_entry
958                             | output_options_list_content ","
959
960  output_entry ::= "{" output_params_list "}"
961
962  output_params_list ::= output_params
963                    | output_params_list "," output_params
964                    | output_params_list ","
965
966  output_params ::= output
967               | flush
968               | maxsize
969               | maxver
970               | pattern
971
972  output ::= "output" ":" STRING
973
974  flush ::= "flush" ":" BOOLEAN
975
976  maxsize ::= "maxsize" ":" INTEGER
977
978  maxver ::= "maxver" ":" INTEGER
979
980  pattern ::= "pattern" ":" STRING
981
982  compatibility ::= "compatibility" ":" "{" compatibility_params "}"
983
984  compatibility_params ::= compatibility_param
985                      | compatibility_params "," compatibility_param
986                      | compatibility_params ","
987
988  compatibility_param ::= lenient_option_parsing
989                     | unknown_map_entry
990
991  lenient_option_parsing ::= "lenient-option-parsing" ":" 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              | dhcp_queue_control
 115              | dhcp_ddns
 116              | user_context
 117              | comment
 118              | sanity_checks
 119              | reservations
 120              | config_control
 121              | server_tag
 122              | reservation_mode
 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              | store_extended_info
 143              | statistic_default_sample_count
 144              | statistic_default_sample_age
 145              | dhcp_multi_threading
 146              | early_global_reservations_lookup
 147              | ip_reservations_unique
 148              | reservations_lookup_first
 149              | compatibility
 150              | parked_packet_limit
 151              | unknown_map_entry
 152
 153  data_directory ::= "data-directory" ":" STRING
 154
 155  preferred_lifetime ::= "preferred-lifetime" ":" INTEGER
 156
 157  min_preferred_lifetime ::= "min-preferred-lifetime" ":" INTEGER
 158
 159  max_preferred_lifetime ::= "max-preferred-lifetime" ":" INTEGER
 160
 161  valid_lifetime ::= "valid-lifetime" ":" INTEGER
 162
 163  min_valid_lifetime ::= "min-valid-lifetime" ":" INTEGER
 164
 165  max_valid_lifetime ::= "max-valid-lifetime" ":" INTEGER
 166
 167  renew_timer ::= "renew-timer" ":" INTEGER
 168
 169  rebind_timer ::= "rebind-timer" ":" INTEGER
 170
 171  calculate_tee_times ::= "calculate-tee-times" ":" BOOLEAN
 172
 173  t1_percent ::= "t1-percent" ":" FLOAT
 174
 175  t2_percent ::= "t2-percent" ":" FLOAT
 176
 177  cache_threshold ::= "cache-threshold" ":" FLOAT
 178
 179  cache_max_age ::= "cache-max-age" ":" INTEGER
 180
 181  decline_probation_period ::= "decline-probation-period" ":" INTEGER
 182
 183  ddns_send_updates ::= "ddns-send-updates" ":" BOOLEAN
 184
 185  ddns_override_no_update ::= "ddns-override-no-update" ":" BOOLEAN
 186
 187  ddns_override_client_update ::= "ddns-override-client-update" ":" BOOLEAN
 188
 189  ddns_replace_client_name ::= "ddns-replace-client-name" ":" ddns_replace_client_name_value
 190
 191  ddns_replace_client_name_value ::= "when-present"
 192                                | "never"
 193                                | "always"
 194                                | "when-not-present"
 195                                | BOOLEAN
 196
 197  ddns_generated_prefix ::= "ddns-generated-prefix" ":" STRING
 198
 199  ddns_qualifying_suffix ::= "ddns-qualifying-suffix" ":" STRING
 200
 201  ddns_update_on_renew ::= "ddns-update-on-renew" ":" BOOLEAN
 202
 203  ddns_use_conflict_resolution ::= "ddns-use-conflict-resolution" ":" BOOLEAN
 204
 205  hostname_char_set ::= "hostname-char-set" ":" STRING
 206
 207  hostname_char_replacement ::= "hostname-char-replacement" ":" STRING
 208
 209  store_extended_info ::= "store-extended-info" ":" BOOLEAN
 210
 211  statistic_default_sample_count ::= "statistic-default-sample-count" ":" INTEGER
 212
 213  statistic_default_sample_age ::= "statistic-default-sample-age" ":" INTEGER
 214
 215  server_tag ::= "server-tag" ":" STRING
 216
 217  parked_packet_limit ::= "parked-packet-limit" ":" INTEGER
 218
 219  early_global_reservations_lookup ::= "early-global-reservations-lookup" ":" BOOLEAN
 220
 221  ip_reservations_unique ::= "ip-reservations-unique" ":" BOOLEAN
 222
 223  reservations_lookup_first ::= "reservations-lookup-first" ":" BOOLEAN
 224
 225  interfaces_config ::= "interfaces-config" ":" "{" interfaces_config_params "}"
 226
 227  sub_interfaces6 ::= "{" interfaces_config_params "}"
 228
 229  interfaces_config_params ::= interfaces_config_param
 230                          | interfaces_config_params "," interfaces_config_param
 231                          | interfaces_config_params ","
 232
 233  interfaces_config_param ::= interfaces_list
 234                         | re_detect
 235                         | service_sockets_require_all
 236                         | service_sockets_retry_wait_time
 237                         | service_sockets_max_retries
 238                         | user_context
 239                         | comment
 240                         | unknown_map_entry
 241
 242  interfaces_list ::= "interfaces" ":" list_strings
 243
 244  re_detect ::= "re-detect" ":" BOOLEAN
 245
 246  service_sockets_require_all ::= "service-sockets-require-all" ":" BOOLEAN
 247
 248  service_sockets_retry_wait_time ::= "service-sockets-retry-wait-time" ":" INTEGER
 249
 250  service_sockets_max_retries ::= "service-sockets-max-retries" ":" INTEGER
 251
 252  lease_database ::= "lease-database" ":" "{" database_map_params "}"
 253
 254  hosts_database ::= "hosts-database" ":" "{" database_map_params "}"
 255
 256  hosts_databases ::= "hosts-databases" ":" "[" database_list "]"
 257
 258  database_list ::=
 259               | not_empty_database_list
 260
 261  not_empty_database_list ::= database
 262                         | not_empty_database_list "," database
 263                         | not_empty_database_list ","
 264
 265  database ::= "{" database_map_params "}"
 266
 267  database_map_params ::= database_map_param
 268                     | database_map_params "," database_map_param
 269                     | database_map_params ","
 270
 271  database_map_param ::= database_type
 272                    | user
 273                    | password
 274                    | host
 275                    | port
 276                    | name
 277                    | persist
 278                    | lfc_interval
 279                    | readonly
 280                    | connect_timeout
 281                    | max_reconnect_tries
 282                    | reconnect_wait_time
 283                    | on_fail
 284                    | max_row_errors
 285                    | trust_anchor
 286                    | cert_file
 287                    | key_file
 288                    | cipher_list
 289                    | unknown_map_entry
 290
 291  database_type ::= "type" ":" db_type
 292
 293  db_type ::= "memfile"
 294         | "mysql"
 295         | "postgresql"
 296
 297  user ::= "user" ":" STRING
 298
 299  password ::= "password" ":" STRING
 300
 301  host ::= "host" ":" STRING
 302
 303  port ::= "port" ":" INTEGER
 304
 305  name ::= "name" ":" STRING
 306
 307  persist ::= "persist" ":" BOOLEAN
 308
 309  lfc_interval ::= "lfc-interval" ":" INTEGER
 310
 311  readonly ::= "readonly" ":" BOOLEAN
 312
 313  connect_timeout ::= "connect-timeout" ":" INTEGER
 314
 315  reconnect_wait_time ::= "reconnect-wait-time" ":" INTEGER
 316
 317  on_fail ::= "on-fail" ":" on_fail_mode
 318
 319  on_fail_mode ::= "stop-retry-exit"
 320              | "serve-retry-exit"
 321              | "serve-retry-continue"
 322
 323  max_row_errors ::= "max-row-errors" ":" INTEGER
 324
 325  max_reconnect_tries ::= "max-reconnect-tries" ":" INTEGER
 326
 327  trust_anchor ::= "trust-anchor" ":" STRING
 328
 329  cert_file ::= "cert-file" ":" STRING
 330
 331  key_file ::= "key-file" ":" STRING
 332
 333  cipher_list ::= "cipher-list" ":" STRING
 334
 335  sanity_checks ::= "sanity-checks" ":" "{" sanity_checks_params "}"
 336
 337  sanity_checks_params ::= sanity_checks_param
 338                      | sanity_checks_params "," sanity_checks_param
 339                      | sanity_checks_params ","
 340
 341  sanity_checks_param ::= lease_checks
 342
 343  lease_checks ::= "lease-checks" ":" STRING
 344
 345  mac_sources ::= "mac-sources" ":" "[" mac_sources_list "]"
 346
 347  mac_sources_list ::= mac_sources_value
 348                  | mac_sources_list "," mac_sources_value
 349                  | mac_sources_list ","
 350
 351  mac_sources_value ::= duid_id
 352                   | string_id
 353
 354  duid_id ::= "duid"
 355
 356  string_id ::= STRING
 357
 358  host_reservation_identifiers ::= "host-reservation-identifiers" ":" "[" host_reservation_identifiers_list "]"
 359
 360  host_reservation_identifiers_list ::= host_reservation_identifier
 361                                   | host_reservation_identifiers_list "," host_reservation_identifier
 362                                   | host_reservation_identifiers_list ","
 363
 364  host_reservation_identifier ::= duid_id
 365                             | hw_address_id
 366                             | flex_id
 367
 368  hw_address_id ::= "hw-address"
 369
 370  flex_id ::= "flex-id"
 371
 372  relay_supplied_options ::= "relay-supplied-options" ":" "[" list_content "]"
 373
 374  dhcp_multi_threading ::= "multi-threading" ":" "{" multi_threading_params "}"
 375
 376  multi_threading_params ::= multi_threading_param
 377                        | multi_threading_params "," multi_threading_param
 378                        | multi_threading_params ","
 379
 380  multi_threading_param ::= enable_multi_threading
 381                       | thread_pool_size
 382                       | packet_queue_size
 383                       | user_context
 384                       | comment
 385                       | unknown_map_entry
 386
 387  enable_multi_threading ::= "enable-multi-threading" ":" BOOLEAN
 388
 389  thread_pool_size ::= "thread-pool-size" ":" INTEGER
 390
 391  packet_queue_size ::= "packet-queue-size" ":" INTEGER
 392
 393  hooks_libraries ::= "hooks-libraries" ":" "[" hooks_libraries_list "]"
 394
 395  hooks_libraries_list ::=
 396                      | not_empty_hooks_libraries_list
 397
 398  not_empty_hooks_libraries_list ::= hooks_library
 399                                | not_empty_hooks_libraries_list "," hooks_library
 400                                | not_empty_hooks_libraries_list ","
 401
 402  hooks_library ::= "{" hooks_params "}"
 403
 404  sub_hooks_library ::= "{" hooks_params "}"
 405
 406  hooks_params ::= hooks_param
 407              | hooks_params "," hooks_param
 408              | hooks_params ","
 409              | unknown_map_entry
 410
 411  hooks_param ::= library
 412             | parameters
 413
 414  library ::= "library" ":" STRING
 415
 416  parameters ::= "parameters" ":" map_value
 417
 418  expired_leases_processing ::= "expired-leases-processing" ":" "{" expired_leases_params "}"
 419
 420  expired_leases_params ::= expired_leases_param
 421                       | expired_leases_params "," expired_leases_param
 422                       | expired_leases_params ","
 423
 424  expired_leases_param ::= reclaim_timer_wait_time
 425                      | flush_reclaimed_timer_wait_time
 426                      | hold_reclaimed_time
 427                      | max_reclaim_leases
 428                      | max_reclaim_time
 429                      | unwarned_reclaim_cycles
 430
 431  reclaim_timer_wait_time ::= "reclaim-timer-wait-time" ":" INTEGER
 432
 433  flush_reclaimed_timer_wait_time ::= "flush-reclaimed-timer-wait-time" ":" INTEGER
 434
 435  hold_reclaimed_time ::= "hold-reclaimed-time" ":" INTEGER
 436
 437  max_reclaim_leases ::= "max-reclaim-leases" ":" INTEGER
 438
 439  max_reclaim_time ::= "max-reclaim-time" ":" INTEGER
 440
 441  unwarned_reclaim_cycles ::= "unwarned-reclaim-cycles" ":" INTEGER
 442
 443  subnet6_list ::= "subnet6" ":" "[" subnet6_list_content "]"
 444
 445  subnet6_list_content ::=
 446                      | not_empty_subnet6_list
 447
 448  not_empty_subnet6_list ::= subnet6
 449                        | not_empty_subnet6_list "," subnet6
 450                        | not_empty_subnet6_list ","
 451
 452  subnet6 ::= "{" subnet6_params "}"
 453
 454  sub_subnet6 ::= "{" subnet6_params "}"
 455
 456  subnet6_params ::= subnet6_param
 457                | subnet6_params "," subnet6_param
 458                | subnet6_params ","
 459
 460  subnet6_param ::= preferred_lifetime
 461               | min_preferred_lifetime
 462               | max_preferred_lifetime
 463               | valid_lifetime
 464               | min_valid_lifetime
 465               | max_valid_lifetime
 466               | renew_timer
 467               | rebind_timer
 468               | option_data_list
 469               | pools_list
 470               | pd_pools_list
 471               | subnet
 472               | interface
 473               | interface_id
 474               | id
 475               | rapid_commit
 476               | client_class
 477               | require_client_classes
 478               | reservations
 479               | reservation_mode
 480               | reservations_global
 481               | reservations_in_subnet
 482               | reservations_out_of_pool
 483               | relay
 484               | user_context
 485               | comment
 486               | calculate_tee_times
 487               | t1_percent
 488               | t2_percent
 489               | cache_threshold
 490               | cache_max_age
 491               | hostname_char_set
 492               | hostname_char_replacement
 493               | ddns_send_updates
 494               | ddns_override_no_update
 495               | ddns_override_client_update
 496               | ddns_replace_client_name
 497               | ddns_generated_prefix
 498               | ddns_qualifying_suffix
 499               | ddns_update_on_renew
 500               | ddns_use_conflict_resolution
 501               | store_extended_info
 502               | unknown_map_entry
 503
 504  subnet ::= "subnet" ":" STRING
 505
 506  interface ::= "interface" ":" STRING
 507
 508  interface_id ::= "interface-id" ":" STRING
 509
 510  client_class ::= "client-class" ":" STRING
 511
 512  require_client_classes ::= "require-client-classes" ":" list_strings
 513
 514  reservations_global ::= "reservations-global" ":" BOOLEAN
 515
 516  reservations_in_subnet ::= "reservations-in-subnet" ":" BOOLEAN
 517
 518  reservations_out_of_pool ::= "reservations-out-of-pool" ":" BOOLEAN
 519
 520  reservation_mode ::= "reservation-mode" ":" hr_mode
 521
 522  hr_mode ::= "disabled"
 523         | "out-of-pool"
 524         | "global"
 525         | "all"
 526
 527  id ::= "id" ":" INTEGER
 528
 529  rapid_commit ::= "rapid-commit" ":" BOOLEAN
 530
 531  shared_networks ::= "shared-networks" ":" "[" shared_networks_content "]"
 532
 533  shared_networks_content ::=
 534                         | shared_networks_list
 535
 536  shared_networks_list ::= shared_network
 537                      | shared_networks_list "," shared_network
 538                      | shared_networks_list ","
 539
 540  shared_network ::= "{" shared_network_params "}"
 541
 542  shared_network_params ::= shared_network_param
 543                       | shared_network_params "," shared_network_param
 544                       | shared_network_params ","
 545
 546  shared_network_param ::= name
 547                      | subnet6_list
 548                      | interface
 549                      | interface_id
 550                      | renew_timer
 551                      | rebind_timer
 552                      | option_data_list
 553                      | relay
 554                      | reservation_mode
 555                      | reservations_global
 556                      | reservations_in_subnet
 557                      | reservations_out_of_pool
 558                      | client_class
 559                      | require_client_classes
 560                      | preferred_lifetime
 561                      | min_preferred_lifetime
 562                      | max_preferred_lifetime
 563                      | rapid_commit
 564                      | valid_lifetime
 565                      | min_valid_lifetime
 566                      | max_valid_lifetime
 567                      | user_context
 568                      | comment
 569                      | calculate_tee_times
 570                      | t1_percent
 571                      | t2_percent
 572                      | cache_threshold
 573                      | cache_max_age
 574                      | hostname_char_set
 575                      | hostname_char_replacement
 576                      | ddns_send_updates
 577                      | ddns_override_no_update
 578                      | ddns_override_client_update
 579                      | ddns_replace_client_name
 580                      | ddns_generated_prefix
 581                      | ddns_qualifying_suffix
 582                      | ddns_update_on_renew
 583                      | ddns_use_conflict_resolution
 584                      | store_extended_info
 585                      | unknown_map_entry
 586
 587  option_def_list ::= "option-def" ":" "[" option_def_list_content "]"
 588
 589  sub_option_def_list ::= "{" option_def_list "}"
 590
 591  option_def_list_content ::=
 592                         | not_empty_option_def_list
 593
 594  not_empty_option_def_list ::= option_def_entry
 595                           | not_empty_option_def_list "," option_def_entry
 596                           | not_empty_option_def_list ","
 597
 598  option_def_entry ::= "{" option_def_params "}"
 599
 600  sub_option_def ::= "{" option_def_params "}"
 601
 602  option_def_params ::=
 603                   | not_empty_option_def_params
 604
 605  not_empty_option_def_params ::= option_def_param
 606                             | not_empty_option_def_params "," option_def_param
 607                             | not_empty_option_def_params ","
 608
 609  option_def_param ::= option_def_name
 610                  | option_def_code
 611                  | option_def_type
 612                  | option_def_record_types
 613                  | option_def_space
 614                  | option_def_encapsulate
 615                  | option_def_array
 616                  | user_context
 617                  | comment
 618                  | unknown_map_entry
 619
 620  option_def_name ::= name
 621
 622  code ::= "code" ":" INTEGER
 623
 624  option_def_code ::= code
 625
 626  option_def_type ::= "type" ":" STRING
 627
 628  option_def_record_types ::= "record-types" ":" STRING
 629
 630  space ::= "space" ":" STRING
 631
 632  option_def_space ::= space
 633
 634  option_def_encapsulate ::= "encapsulate" ":" STRING
 635
 636  option_def_array ::= "array" ":" BOOLEAN
 637
 638  option_data_list ::= "option-data" ":" "[" option_data_list_content "]"
 639
 640  option_data_list_content ::=
 641                          | not_empty_option_data_list
 642
 643  not_empty_option_data_list ::= option_data_entry
 644                            | not_empty_option_data_list "," option_data_entry
 645                            | not_empty_option_data_list ","
 646
 647  option_data_entry ::= "{" option_data_params "}"
 648
 649  sub_option_data ::= "{" option_data_params "}"
 650
 651  option_data_params ::=
 652                    | not_empty_option_data_params
 653
 654  not_empty_option_data_params ::= option_data_param
 655                              | not_empty_option_data_params "," option_data_param
 656                              | not_empty_option_data_params ","
 657
 658  option_data_param ::= option_data_name
 659                   | option_data_data
 660                   | option_data_code
 661                   | option_data_space
 662                   | option_data_csv_format
 663                   | option_data_always_send
 664                   | user_context
 665                   | comment
 666                   | unknown_map_entry
 667
 668  option_data_name ::= name
 669
 670  option_data_data ::= "data" ":" STRING
 671
 672  option_data_code ::= code
 673
 674  option_data_space ::= space
 675
 676  option_data_csv_format ::= "csv-format" ":" BOOLEAN
 677
 678  option_data_always_send ::= "always-send" ":" BOOLEAN
 679
 680  pools_list ::= "pools" ":" "[" pools_list_content "]"
 681
 682  pools_list_content ::=
 683                    | not_empty_pools_list
 684
 685  not_empty_pools_list ::= pool_list_entry
 686                      | not_empty_pools_list "," pool_list_entry
 687                      | not_empty_pools_list ","
 688
 689  pool_list_entry ::= "{" pool_params "}"
 690
 691  sub_pool6 ::= "{" pool_params "}"
 692
 693  pool_params ::= pool_param
 694             | pool_params "," pool_param
 695             | pool_params ","
 696
 697  pool_param ::= pool_entry
 698            | option_data_list
 699            | client_class
 700            | require_client_classes
 701            | user_context
 702            | comment
 703            | unknown_map_entry
 704
 705  pool_entry ::= "pool" ":" STRING
 706
 707  user_context ::= "user-context" ":" map_value
 708
 709  comment ::= "comment" ":" STRING
 710
 711  pd_pools_list ::= "pd-pools" ":" "[" pd_pools_list_content "]"
 712
 713  pd_pools_list_content ::=
 714                       | not_empty_pd_pools_list
 715
 716  not_empty_pd_pools_list ::= pd_pool_entry
 717                         | not_empty_pd_pools_list "," pd_pool_entry
 718                         | not_empty_pd_pools_list ","
 719
 720  pd_pool_entry ::= "{" pd_pool_params "}"
 721
 722  sub_pd_pool ::= "{" pd_pool_params "}"
 723
 724  pd_pool_params ::= pd_pool_param
 725                | pd_pool_params "," pd_pool_param
 726                | pd_pool_params ","
 727
 728  pd_pool_param ::= pd_prefix
 729               | pd_prefix_len
 730               | pd_delegated_len
 731               | option_data_list
 732               | client_class
 733               | require_client_classes
 734               | excluded_prefix
 735               | excluded_prefix_len
 736               | user_context
 737               | comment
 738               | unknown_map_entry
 739
 740  pd_prefix ::= "prefix" ":" STRING
 741
 742  pd_prefix_len ::= "prefix-len" ":" INTEGER
 743
 744  excluded_prefix ::= "excluded-prefix" ":" STRING
 745
 746  excluded_prefix_len ::= "excluded-prefix-len" ":" INTEGER
 747
 748  pd_delegated_len ::= "delegated-len" ":" INTEGER
 749
 750  reservations ::= "reservations" ":" "[" reservations_list "]"
 751
 752  reservations_list ::=
 753                   | not_empty_reservations_list
 754
 755  not_empty_reservations_list ::= reservation
 756                             | not_empty_reservations_list "," reservation
 757                             | not_empty_reservations_list ","
 758
 759  reservation ::= "{" reservation_params "}"
 760
 761  sub_reservation ::= "{" reservation_params "}"
 762
 763  reservation_params ::=
 764                    | not_empty_reservation_params
 765
 766  not_empty_reservation_params ::= reservation_param
 767                              | not_empty_reservation_params "," reservation_param
 768                              | not_empty_reservation_params ","
 769
 770  reservation_param ::= duid
 771                   | reservation_client_classes
 772                   | ip_addresses
 773                   | prefixes
 774                   | hw_address
 775                   | hostname
 776                   | flex_id_value
 777                   | option_data_list
 778                   | user_context
 779                   | comment
 780                   | unknown_map_entry
 781
 782  ip_addresses ::= "ip-addresses" ":" list_strings
 783
 784  prefixes ::= "prefixes" ":" list_strings
 785
 786  duid ::= "duid" ":" STRING
 787
 788  hw_address ::= "hw-address" ":" STRING
 789
 790  hostname ::= "hostname" ":" STRING
 791
 792  flex_id_value ::= "flex-id" ":" STRING
 793
 794  reservation_client_classes ::= "client-classes" ":" list_strings
 795
 796  relay ::= "relay" ":" "{" relay_map "}"
 797
 798  relay_map ::= ip_address
 799           | ip_addresses
 800
 801  ip_address ::= "ip-address" ":" STRING
 802
 803  client_classes ::= "client-classes" ":" "[" client_classes_list "]"
 804
 805  client_classes_list ::= client_class_entry
 806                     | client_classes_list "," client_class_entry
 807                     | client_classes_list ","
 808
 809  client_class_entry ::= "{" client_class_params "}"
 810
 811  client_class_params ::=
 812                     | not_empty_client_class_params
 813
 814  not_empty_client_class_params ::= client_class_param
 815                               | not_empty_client_class_params "," client_class_param
 816                               | not_empty_client_class_params ","
 817
 818  client_class_param ::= client_class_name
 819                    | client_class_test
 820                    | only_if_required
 821                    | option_data_list
 822                    | user_context
 823                    | comment
 824                    | preferred_lifetime
 825                    | min_preferred_lifetime
 826                    | max_preferred_lifetime
 827                    | valid_lifetime
 828                    | min_valid_lifetime
 829                    | max_valid_lifetime
 830                    | unknown_map_entry
 831
 832  client_class_name ::= name
 833
 834  client_class_test ::= "test" ":" STRING
 835
 836  only_if_required ::= "only-if-required" ":" BOOLEAN
 837
 838  server_id ::= "server-id" ":" "{" server_id_params "}"
 839
 840  server_id_params ::= server_id_param
 841                  | server_id_params "," server_id_param
 842                  | server_id_params ","
 843
 844  server_id_param ::= server_id_type
 845                 | identifier
 846                 | time
 847                 | htype
 848                 | enterprise_id
 849                 | persist
 850                 | user_context
 851                 | comment
 852                 | unknown_map_entry
 853
 854  server_id_type ::= "type" ":" duid_type
 855
 856  duid_type ::= "LLT"
 857           | "EN"
 858           | "LL"
 859
 860  htype ::= "htype" ":" INTEGER
 861
 862  identifier ::= "identifier" ":" STRING
 863
 864  time ::= "time" ":" INTEGER
 865
 866  enterprise_id ::= "enterprise-id" ":" INTEGER
 867
 868  dhcp4o6_port ::= "dhcp4o6-port" ":" INTEGER
 869
 870  control_socket ::= "control-socket" ":" "{" control_socket_params "}"
 871
 872  control_socket_params ::= control_socket_param
 873                       | control_socket_params "," control_socket_param
 874                       | control_socket_params ","
 875
 876  control_socket_param ::= socket_type
 877                      | socket_name
 878                      | user_context
 879                      | comment
 880                      | unknown_map_entry
 881
 882  socket_type ::= "socket-type" ":" STRING
 883
 884  socket_name ::= "socket-name" ":" STRING
 885
 886  dhcp_queue_control ::= "dhcp-queue-control" ":" "{" queue_control_params "}"
 887
 888  queue_control_params ::= queue_control_param
 889                      | queue_control_params "," queue_control_param
 890                      | queue_control_params ","
 891
 892  queue_control_param ::= enable_queue
 893                     | queue_type
 894                     | capacity
 895                     | user_context
 896                     | comment
 897                     | arbitrary_map_entry
 898
 899  enable_queue ::= "enable-queue" ":" BOOLEAN
 900
 901  queue_type ::= "queue-type" ":" STRING
 902
 903  capacity ::= "capacity" ":" INTEGER
 904
 905  arbitrary_map_entry ::= STRING ":" value
 906
 907  dhcp_ddns ::= "dhcp-ddns" ":" "{" dhcp_ddns_params "}"
 908
 909  sub_dhcp_ddns ::= "{" dhcp_ddns_params "}"
 910
 911  dhcp_ddns_params ::= dhcp_ddns_param
 912                  | dhcp_ddns_params "," dhcp_ddns_param
 913                  | dhcp_ddns_params ","
 914
 915  dhcp_ddns_param ::= enable_updates
 916                 | server_ip
 917                 | server_port
 918                 | sender_ip
 919                 | sender_port
 920                 | max_queue_size
 921                 | ncr_protocol
 922                 | ncr_format
 923                 | dep_override_no_update
 924                 | dep_override_client_update
 925                 | dep_replace_client_name
 926                 | dep_generated_prefix
 927                 | dep_qualifying_suffix
 928                 | dep_hostname_char_set
 929                 | dep_hostname_char_replacement
 930                 | user_context
 931                 | comment
 932                 | unknown_map_entry
 933
 934  enable_updates ::= "enable-updates" ":" BOOLEAN
 935
 936  dep_qualifying_suffix ::= "qualifying-suffix" ":" STRING
 937
 938  server_ip ::= "server-ip" ":" STRING
 939
 940  server_port ::= "server-port" ":" INTEGER
 941
 942  sender_ip ::= "sender-ip" ":" STRING
 943
 944  sender_port ::= "sender-port" ":" INTEGER
 945
 946  max_queue_size ::= "max-queue-size" ":" INTEGER
 947
 948  ncr_protocol ::= "ncr-protocol" ":" ncr_protocol_value
 949
 950  ncr_protocol_value ::= "UDP"
 951                    | "TCP"
 952
 953  ncr_format ::= "ncr-format" ":" "JSON"
 954
 955  dep_override_no_update ::= "override-no-update" ":" BOOLEAN
 956
 957  dep_override_client_update ::= "override-client-update" ":" BOOLEAN
 958
 959  dep_replace_client_name ::= "replace-client-name" ":" ddns_replace_client_name_value
 960
 961  dep_generated_prefix ::= "generated-prefix" ":" STRING
 962
 963  dep_hostname_char_set ::= "hostname-char-set" ":" STRING
 964
 965  dep_hostname_char_replacement ::= "hostname-char-replacement" ":" STRING
 966
 967  config_control ::= "config-control" ":" "{" config_control_params "}"
 968
 969  sub_config_control ::= "{" config_control_params "}"
 970
 971  config_control_params ::= config_control_param
 972                       | config_control_params "," config_control_param
 973                       | config_control_params ","
 974
 975  config_control_param ::= config_databases
 976                      | config_fetch_wait_time
 977
 978  config_databases ::= "config-databases" ":" "[" database_list "]"
 979
 980  config_fetch_wait_time ::= "config-fetch-wait-time" ":" INTEGER
 981
 982  loggers ::= "loggers" ":" "[" loggers_entries "]"
 983
 984  loggers_entries ::= logger_entry
 985                 | loggers_entries "," logger_entry
 986                 | loggers_entries ","
 987
 988  logger_entry ::= "{" logger_params "}"
 989
 990  logger_params ::= logger_param
 991               | logger_params "," logger_param
 992               | logger_params ","
 993
 994  logger_param ::= name
 995              | output_options_list
 996              | debuglevel
 997              | severity
 998              | user_context
 999              | comment
1000              | unknown_map_entry
1001
1002  debuglevel ::= "debuglevel" ":" INTEGER
1003
1004  severity ::= "severity" ":" STRING
1005
1006  output_options_list ::= "output_options" ":" "[" output_options_list_content "]"
1007
1008  output_options_list_content ::= output_entry
1009                             | output_options_list_content "," output_entry
1010                             | output_options_list_content ","
1011
1012  output_entry ::= "{" output_params_list "}"
1013
1014  output_params_list ::= output_params
1015                    | output_params_list "," output_params
1016                    | output_params_list ","
1017
1018  output_params ::= output
1019               | flush
1020               | maxsize
1021               | maxver
1022               | pattern
1023
1024  output ::= "output" ":" STRING
1025
1026  flush ::= "flush" ":" BOOLEAN
1027
1028  maxsize ::= "maxsize" ":" INTEGER
1029
1030  maxver ::= "maxver" ":" INTEGER
1031
1032  pattern ::= "pattern" ":" STRING
1033
1034  compatibility ::= "compatibility" ":" "{" compatibility_params "}"
1035
1036  compatibility_params ::= compatibility_param
1037                      | compatibility_params "," compatibility_param
1038                      | compatibility_params ","
1039
1040  compatibility_param ::= lenient_option_parsing
1041                     | unknown_map_entry
1042
1043  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                | hooks_libraries
 80                | loggers
 81                | user_context
 82                | comment
 83                | unknown_map_entry
 84
 85  ip_address ::= "ip-address" ":" STRING
 86
 87  port ::= "port" ":" INTEGER
 88
 89  dns_server_timeout ::= "dns-server-timeout" ":" INTEGER
 90
 91  ncr_protocol ::= "ncr-protocol" ":" ncr_protocol_value
 92
 93  ncr_protocol_value ::= "UDP"
 94                    | "TCP"
 95
 96  ncr_format ::= "ncr-format" ":" "JSON"
 97
 98  user_context ::= "user-context" ":" map_value
 99
100  comment ::= "comment" ":" STRING
101
102  forward_ddns ::= "forward-ddns" ":" "{" ddns_mgr_params "}"
103
104  reverse_ddns ::= "reverse-ddns" ":" "{" ddns_mgr_params "}"
105
106  ddns_mgr_params ::=
107                 | not_empty_ddns_mgr_params
108
109  not_empty_ddns_mgr_params ::= ddns_mgr_param
110                           | ddns_mgr_params "," ddns_mgr_param
111                           | ddns_mgr_params ","
112
113  ddns_mgr_param ::= ddns_domains
114                | unknown_map_entry
115
116  ddns_domains ::= "ddns-domains" ":" "[" ddns_domain_list "]"
117
118  sub_ddns_domains ::= "[" ddns_domain_list "]"
119
120  ddns_domain_list ::=
121                  | not_empty_ddns_domain_list
122
123  not_empty_ddns_domain_list ::= ddns_domain
124                            | not_empty_ddns_domain_list "," ddns_domain
125                            | not_empty_ddns_domain_list ","
126
127  ddns_domain ::= "{" ddns_domain_params "}"
128
129  sub_ddns_domain ::= "{" ddns_domain_params "}"
130
131  ddns_domain_params ::= ddns_domain_param
132                    | ddns_domain_params "," ddns_domain_param
133                    | ddns_domain_params ","
134
135  ddns_domain_param ::= ddns_domain_name
136                   | ddns_key_name
137                   | dns_servers
138                   | user_context
139                   | comment
140                   | unknown_map_entry
141
142  ddns_domain_name ::= "name" ":" STRING
143
144  ddns_key_name ::= "key-name" ":" STRING
145
146  dns_servers ::= "dns-servers" ":" "[" dns_server_list "]"
147
148  sub_dns_servers ::= "[" dns_server_list "]"
149
150  dns_server_list ::= dns_server
151                 | dns_server_list "," dns_server
152                 | dns_server_list ","
153
154  dns_server ::= "{" dns_server_params "}"
155
156  sub_dns_server ::= "{" dns_server_params "}"
157
158  dns_server_params ::= dns_server_param
159                   | dns_server_params "," dns_server_param
160                   | dns_server_params ","
161
162  dns_server_param ::= dns_server_hostname
163                  | dns_server_ip_address
164                  | dns_server_port
165                  | ddns_key_name
166                  | user_context
167                  | comment
168                  | unknown_map_entry
169
170  dns_server_hostname ::= "hostname" ":" STRING
171
172  dns_server_ip_address ::= "ip-address" ":" STRING
173
174  dns_server_port ::= "port" ":" INTEGER
175
176  tsig_keys ::= "tsig-keys" ":" "[" tsig_keys_list "]"
177
178  sub_tsig_keys ::= "[" tsig_keys_list "]"
179
180  tsig_keys_list ::=
181                | not_empty_tsig_keys_list
182
183  not_empty_tsig_keys_list ::= tsig_key
184                          | not_empty_tsig_keys_list "," tsig_key
185                          | not_empty_tsig_keys_list ","
186
187  tsig_key ::= "{" tsig_key_params "}"
188
189  sub_tsig_key ::= "{" tsig_key_params "}"
190
191  tsig_key_params ::= tsig_key_param
192                 | tsig_key_params "," tsig_key_param
193                 | tsig_key_params ","
194
195  tsig_key_param ::= tsig_key_name
196                | tsig_key_algorithm
197                | tsig_key_digest_bits
198                | tsig_key_secret
199                | user_context
200                | comment
201                | unknown_map_entry
202
203  tsig_key_name ::= "name" ":" STRING
204
205  tsig_key_algorithm ::= "algorithm" ":" STRING
206
207  tsig_key_digest_bits ::= "digest-bits" ":" INTEGER
208
209  tsig_key_secret ::= "secret" ":" STRING
210
211  control_socket ::= "control-socket" ":" "{" control_socket_params "}"
212
213  control_socket_params ::= control_socket_param
214                       | control_socket_params "," control_socket_param
215                       | control_socket_params ","
216
217  control_socket_param ::= control_socket_type
218                      | control_socket_name
219                      | user_context
220                      | comment
221                      | unknown_map_entry
222
223  control_socket_type ::= "socket-type" ":" STRING
224
225  control_socket_name ::= "socket-name" ":" STRING
226
227  hooks_libraries ::= "hooks-libraries" ":" "[" hooks_libraries_list "]"
228
229  hooks_libraries_list ::=
230                      | not_empty_hooks_libraries_list
231
232  not_empty_hooks_libraries_list ::= hooks_library
233                                | not_empty_hooks_libraries_list "," hooks_library
234                                | not_empty_hooks_libraries_list ","
235
236  hooks_library ::= "{" hooks_params "}"
237
238  sub_hooks_library ::= "{" hooks_params "}"
239
240  hooks_params ::= hooks_param
241              | hooks_params "," hooks_param
242              | hooks_params ","
243              | unknown_map_entry
244
245  hooks_param ::= library
246             | parameters
247
248  library ::= "library" ":" STRING
249
250  parameters ::= "parameters" ":" map_value
251
252  loggers ::= "loggers" ":" "[" loggers_entries "]"
253
254  loggers_entries ::= logger_entry
255                 | loggers_entries "," logger_entry
256                 | loggers_entries ","
257
258  logger_entry ::= "{" logger_params "}"
259
260  logger_params ::= logger_param
261               | logger_params "," logger_param
262               | logger_params ","
263
264  logger_param ::= name
265              | output_options_list
266              | debuglevel
267              | severity
268              | user_context
269              | comment
270              | unknown_map_entry
271
272  name ::= "name" ":" STRING
273
274  debuglevel ::= "debuglevel" ":" INTEGER
275
276  severity ::= "severity" ":" STRING
277
278  output_options_list ::= "output_options" ":" "[" output_options_list_content "]"
279
280  output_options_list_content ::= output_entry
281                             | output_options_list_content "," output_entry
282                             | output_options_list_content ","
283
284  output_entry ::= "{" output_params_list "}"
285
286  output_params_list ::= output_params
287                    | output_params_list "," output_params
288                    | output_params_list ","
289
290  output_params ::= output
291               | flush
292               | maxsize
293               | maxver
294               | pattern
295
296  output ::= "output" ":" STRING
297
298  flush ::= "flush" ":" BOOLEAN
299
300  maxsize ::= "maxsize" ":" INTEGER
301
302  maxver ::= "maxver" ":" INTEGER
303
304  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