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

BNF Grammar for DHCPv6

This grammar is generated from dhcp6_parser.yy. See The DHCPv6 Server for more details.

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