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                    | max_row_errors
 325                    | trust_anchor
 326                    | cert_file
 327                    | key_file
 328                    | cipher_list
 329                    | unknown_map_entry
 330
 331  database_type ::= "type" ":" db_type
 332
 333  db_type ::= "memfile"
 334         | "mysql"
 335         | "postgresql"
 336
 337  user ::= "user" ":" STRING
 338
 339  password ::= "password" ":" STRING
 340
 341  host ::= "host" ":" STRING
 342
 343  port ::= "port" ":" INTEGER
 344
 345  name ::= "name" ":" STRING
 346
 347  persist ::= "persist" ":" BOOLEAN
 348
 349  lfc_interval ::= "lfc-interval" ":" INTEGER
 350
 351  readonly ::= "readonly" ":" BOOLEAN
 352
 353  connect_timeout ::= "connect-timeout" ":" INTEGER
 354
 355  read_timeout ::= "read-timeout" ":" INTEGER
 356
 357  write_timeout ::= "write-timeout" ":" INTEGER
 358
 359  tcp_user_timeout ::= "tcp-user-timeout" ":" INTEGER
 360
 361  max_reconnect_tries ::= "max-reconnect-tries" ":" INTEGER
 362
 363  reconnect_wait_time ::= "reconnect-wait-time" ":" INTEGER
 364
 365  on_fail ::= "on-fail" ":" on_fail_mode
 366
 367  on_fail_mode ::= "stop-retry-exit"
 368              | "serve-retry-exit"
 369              | "serve-retry-continue"
 370
 371  max_row_errors ::= "max-row-errors" ":" INTEGER
 372
 373  trust_anchor ::= "trust-anchor" ":" STRING
 374
 375  cert_file ::= "cert-file" ":" STRING
 376
 377  key_file ::= "key-file" ":" STRING
 378
 379  cipher_list ::= "cipher-list" ":" STRING
 380
 381  host_reservation_identifiers ::= "host-reservation-identifiers" ":" "[" host_reservation_identifiers_list "]"
 382
 383  host_reservation_identifiers_list ::= host_reservation_identifier
 384                                   | host_reservation_identifiers_list "," host_reservation_identifier
 385                                   | host_reservation_identifiers_list ","
 386
 387  host_reservation_identifier ::= duid_id
 388                             | hw_address_id
 389                             | circuit_id
 390                             | client_id
 391                             | flex_id
 392
 393  duid_id ::= "duid"
 394
 395  hw_address_id ::= "hw-address"
 396
 397  circuit_id ::= "circuit-id"
 398
 399  client_id ::= "client-id"
 400
 401  flex_id ::= "flex-id"
 402
 403  dhcp_multi_threading ::= "multi-threading" ":" "{" multi_threading_params "}"
 404
 405  multi_threading_params ::= multi_threading_param
 406                        | multi_threading_params "," multi_threading_param
 407                        | multi_threading_params ","
 408
 409  multi_threading_param ::= enable_multi_threading
 410                       | thread_pool_size
 411                       | packet_queue_size
 412                       | user_context
 413                       | comment
 414                       | unknown_map_entry
 415
 416  enable_multi_threading ::= "enable-multi-threading" ":" BOOLEAN
 417
 418  thread_pool_size ::= "thread-pool-size" ":" INTEGER
 419
 420  packet_queue_size ::= "packet-queue-size" ":" INTEGER
 421
 422  hooks_libraries ::= "hooks-libraries" ":" "[" hooks_libraries_list "]"
 423
 424  hooks_libraries_list ::=
 425                      | not_empty_hooks_libraries_list
 426
 427  not_empty_hooks_libraries_list ::= hooks_library
 428                                | not_empty_hooks_libraries_list "," hooks_library
 429                                | not_empty_hooks_libraries_list ","
 430
 431  hooks_library ::= "{" hooks_params "}"
 432
 433  sub_hooks_library ::= "{" hooks_params "}"
 434
 435  hooks_params ::= hooks_param
 436              | hooks_params "," hooks_param
 437              | hooks_params ","
 438              | unknown_map_entry
 439
 440  hooks_param ::= library
 441             | parameters
 442
 443  library ::= "library" ":" STRING
 444
 445  parameters ::= "parameters" ":" map_value
 446
 447  expired_leases_processing ::= "expired-leases-processing" ":" "{" expired_leases_params "}"
 448
 449  expired_leases_params ::= expired_leases_param
 450                       | expired_leases_params "," expired_leases_param
 451                       | expired_leases_params ","
 452
 453  expired_leases_param ::= reclaim_timer_wait_time
 454                      | flush_reclaimed_timer_wait_time
 455                      | hold_reclaimed_time
 456                      | max_reclaim_leases
 457                      | max_reclaim_time
 458                      | unwarned_reclaim_cycles
 459
 460  reclaim_timer_wait_time ::= "reclaim-timer-wait-time" ":" INTEGER
 461
 462  flush_reclaimed_timer_wait_time ::= "flush-reclaimed-timer-wait-time" ":" INTEGER
 463
 464  hold_reclaimed_time ::= "hold-reclaimed-time" ":" INTEGER
 465
 466  max_reclaim_leases ::= "max-reclaim-leases" ":" INTEGER
 467
 468  max_reclaim_time ::= "max-reclaim-time" ":" INTEGER
 469
 470  unwarned_reclaim_cycles ::= "unwarned-reclaim-cycles" ":" INTEGER
 471
 472  subnet4_list ::= "subnet4" ":" "[" subnet4_list_content "]"
 473
 474  subnet4_list_content ::=
 475                      | not_empty_subnet4_list
 476
 477  not_empty_subnet4_list ::= subnet4
 478                        | not_empty_subnet4_list "," subnet4
 479                        | not_empty_subnet4_list ","
 480
 481  subnet4 ::= "{" subnet4_params "}"
 482
 483  sub_subnet4 ::= "{" subnet4_params "}"
 484
 485  subnet4_params ::= subnet4_param
 486                | subnet4_params "," subnet4_param
 487                | subnet4_params ","
 488
 489  subnet4_param ::= valid_lifetime
 490               | min_valid_lifetime
 491               | max_valid_lifetime
 492               | renew_timer
 493               | rebind_timer
 494               | option_data_list
 495               | pools_list
 496               | subnet
 497               | interface
 498               | id
 499               | client_class
 500               | require_client_classes
 501               | reservations
 502               | reservation_mode
 503               | reservations_global
 504               | reservations_in_subnet
 505               | reservations_out_of_pool
 506               | relay
 507               | match_client_id
 508               | authoritative
 509               | next_server
 510               | server_hostname
 511               | boot_file_name
 512               | subnet_4o6_interface
 513               | subnet_4o6_interface_id
 514               | subnet_4o6_subnet
 515               | user_context
 516               | comment
 517               | calculate_tee_times
 518               | t1_percent
 519               | t2_percent
 520               | cache_threshold
 521               | cache_max_age
 522               | ddns_send_updates
 523               | ddns_override_no_update
 524               | ddns_override_client_update
 525               | ddns_replace_client_name
 526               | ddns_generated_prefix
 527               | ddns_qualifying_suffix
 528               | ddns_update_on_renew
 529               | ddns_use_conflict_resolution
 530               | ddns_conflict_resolution_mode
 531               | ddns_ttl_percent
 532               | hostname_char_set
 533               | hostname_char_replacement
 534               | store_extended_info
 535               | allocator
 536               | offer_lifetime
 537               | unknown_map_entry
 538
 539  subnet ::= "subnet" ":" STRING
 540
 541  subnet_4o6_interface ::= "4o6-interface" ":" STRING
 542
 543  subnet_4o6_interface_id ::= "4o6-interface-id" ":" STRING
 544
 545  subnet_4o6_subnet ::= "4o6-subnet" ":" STRING
 546
 547  interface ::= "interface" ":" STRING
 548
 549  client_class ::= "client-class" ":" STRING
 550
 551  require_client_classes ::= "require-client-classes" ":" list_strings
 552
 553  reservations_global ::= "reservations-global" ":" BOOLEAN
 554
 555  reservations_in_subnet ::= "reservations-in-subnet" ":" BOOLEAN
 556
 557  reservations_out_of_pool ::= "reservations-out-of-pool" ":" BOOLEAN
 558
 559  reservation_mode ::= "reservation-mode" ":" hr_mode
 560
 561  hr_mode ::= "disabled"
 562         | "out-of-pool"
 563         | "global"
 564         | "all"
 565
 566  id ::= "id" ":" INTEGER
 567
 568  shared_networks ::= "shared-networks" ":" "[" shared_networks_content "]"
 569
 570  shared_networks_content ::=
 571                         | shared_networks_list
 572
 573  shared_networks_list ::= shared_network
 574                      | shared_networks_list "," shared_network
 575                      | shared_networks_list ","
 576
 577  shared_network ::= "{" shared_network_params "}"
 578
 579  shared_network_params ::= shared_network_param
 580                       | shared_network_params "," shared_network_param
 581                       | shared_network_params ","
 582
 583  shared_network_param ::= name
 584                      | subnet4_list
 585                      | interface
 586                      | renew_timer
 587                      | rebind_timer
 588                      | option_data_list
 589                      | match_client_id
 590                      | authoritative
 591                      | next_server
 592                      | server_hostname
 593                      | boot_file_name
 594                      | relay
 595                      | reservation_mode
 596                      | reservations_global
 597                      | reservations_in_subnet
 598                      | reservations_out_of_pool
 599                      | client_class
 600                      | require_client_classes
 601                      | valid_lifetime
 602                      | min_valid_lifetime
 603                      | max_valid_lifetime
 604                      | user_context
 605                      | comment
 606                      | calculate_tee_times
 607                      | t1_percent
 608                      | t2_percent
 609                      | cache_threshold
 610                      | cache_max_age
 611                      | ddns_send_updates
 612                      | ddns_override_no_update
 613                      | ddns_override_client_update
 614                      | ddns_replace_client_name
 615                      | ddns_generated_prefix
 616                      | ddns_qualifying_suffix
 617                      | ddns_update_on_renew
 618                      | ddns_use_conflict_resolution
 619                      | ddns_conflict_resolution_mode
 620                      | ddns_ttl_percent
 621                      | hostname_char_set
 622                      | hostname_char_replacement
 623                      | store_extended_info
 624                      | allocator
 625                      | offer_lifetime
 626                      | unknown_map_entry
 627
 628  option_def_list ::= "option-def" ":" "[" option_def_list_content "]"
 629
 630  sub_option_def_list ::= "{" option_def_list "}"
 631
 632  option_def_list_content ::=
 633                         | not_empty_option_def_list
 634
 635  not_empty_option_def_list ::= option_def_entry
 636                           | not_empty_option_def_list "," option_def_entry
 637                           | not_empty_option_def_list ","
 638
 639  option_def_entry ::= "{" option_def_params "}"
 640
 641  sub_option_def ::= "{" option_def_params "}"
 642
 643  option_def_params ::=
 644                   | not_empty_option_def_params
 645
 646  not_empty_option_def_params ::= option_def_param
 647                             | not_empty_option_def_params "," option_def_param
 648                             | not_empty_option_def_params ","
 649
 650  option_def_param ::= option_def_name
 651                  | option_def_code
 652                  | option_def_type
 653                  | option_def_record_types
 654                  | option_def_space
 655                  | option_def_encapsulate
 656                  | option_def_array
 657                  | user_context
 658                  | comment
 659                  | unknown_map_entry
 660
 661  option_def_name ::= name
 662
 663  code ::= "code" ":" INTEGER
 664
 665  option_def_code ::= code
 666
 667  option_def_type ::= "type" ":" STRING
 668
 669  option_def_record_types ::= "record-types" ":" STRING
 670
 671  space ::= "space" ":" STRING
 672
 673  option_def_space ::= space
 674
 675  option_def_encapsulate ::= "encapsulate" ":" STRING
 676
 677  option_def_array ::= "array" ":" BOOLEAN
 678
 679  option_data_list ::= "option-data" ":" "[" option_data_list_content "]"
 680
 681  option_data_list_content ::=
 682                          | not_empty_option_data_list
 683
 684  not_empty_option_data_list ::= option_data_entry
 685                            | not_empty_option_data_list "," option_data_entry
 686                            | not_empty_option_data_list ","
 687
 688  option_data_entry ::= "{" option_data_params "}"
 689
 690  sub_option_data ::= "{" option_data_params "}"
 691
 692  option_data_params ::=
 693                    | not_empty_option_data_params
 694
 695  not_empty_option_data_params ::= option_data_param
 696                              | not_empty_option_data_params "," option_data_param
 697                              | not_empty_option_data_params ","
 698
 699  option_data_param ::= option_data_name
 700                   | option_data_data
 701                   | option_data_code
 702                   | option_data_space
 703                   | option_data_csv_format
 704                   | option_data_always_send
 705                   | option_data_never_send
 706                   | user_context
 707                   | comment
 708                   | unknown_map_entry
 709
 710  option_data_name ::= name
 711
 712  option_data_data ::= "data" ":" STRING
 713
 714  option_data_code ::= code
 715
 716  option_data_space ::= space
 717
 718  option_data_csv_format ::= "csv-format" ":" BOOLEAN
 719
 720  option_data_always_send ::= "always-send" ":" BOOLEAN
 721
 722  option_data_never_send ::= "never-send" ":" BOOLEAN
 723
 724  pools_list ::= "pools" ":" "[" pools_list_content "]"
 725
 726  pools_list_content ::=
 727                    | not_empty_pools_list
 728
 729  not_empty_pools_list ::= pool_list_entry
 730                      | not_empty_pools_list "," pool_list_entry
 731                      | not_empty_pools_list ","
 732
 733  pool_list_entry ::= "{" pool_params "}"
 734
 735  sub_pool4 ::= "{" pool_params "}"
 736
 737  pool_params ::= pool_param
 738             | pool_params "," pool_param
 739             | pool_params ","
 740
 741  pool_param ::= pool_entry
 742            | pool_id
 743            | option_data_list
 744            | client_class
 745            | require_client_classes
 746            | user_context
 747            | comment
 748            | unknown_map_entry
 749
 750  pool_entry ::= "pool" ":" STRING
 751
 752  pool_id ::= "pool-id" ":" INTEGER
 753
 754  user_context ::= "user-context" ":" map_value
 755
 756  comment ::= "comment" ":" STRING
 757
 758  reservations ::= "reservations" ":" "[" reservations_list "]"
 759
 760  reservations_list ::=
 761                   | not_empty_reservations_list
 762
 763  not_empty_reservations_list ::= reservation
 764                             | not_empty_reservations_list "," reservation
 765                             | not_empty_reservations_list ","
 766
 767  reservation ::= "{" reservation_params "}"
 768
 769  sub_reservation ::= "{" reservation_params "}"
 770
 771  reservation_params ::=
 772                    | not_empty_reservation_params
 773
 774  not_empty_reservation_params ::= reservation_param
 775                              | not_empty_reservation_params "," reservation_param
 776                              | not_empty_reservation_params ","
 777
 778  reservation_param ::= duid
 779                   | reservation_client_classes
 780                   | client_id_value
 781                   | circuit_id_value
 782                   | flex_id_value
 783                   | ip_address
 784                   | hw_address
 785                   | hostname
 786                   | option_data_list
 787                   | next_server
 788                   | server_hostname
 789                   | boot_file_name
 790                   | user_context
 791                   | comment
 792                   | unknown_map_entry
 793
 794  next_server ::= "next-server" ":" STRING
 795
 796  server_hostname ::= "server-hostname" ":" STRING
 797
 798  boot_file_name ::= "boot-file-name" ":" STRING
 799
 800  ip_address ::= "ip-address" ":" STRING
 801
 802  ip_addresses ::= "ip-addresses" ":" list_strings
 803
 804  duid ::= "duid" ":" STRING
 805
 806  hw_address ::= "hw-address" ":" STRING
 807
 808  client_id_value ::= "client-id" ":" STRING
 809
 810  circuit_id_value ::= "circuit-id" ":" STRING
 811
 812  flex_id_value ::= "flex-id" ":" STRING
 813
 814  hostname ::= "hostname" ":" STRING
 815
 816  reservation_client_classes ::= "client-classes" ":" list_strings
 817
 818  relay ::= "relay" ":" "{" relay_map "}"
 819
 820  relay_map ::= ip_address
 821           | ip_addresses
 822
 823  client_classes ::= "client-classes" ":" "[" client_classes_list "]"
 824
 825  client_classes_list ::= client_class_entry
 826                     | client_classes_list "," client_class_entry
 827                     | client_classes_list ","
 828
 829  client_class_entry ::= "{" client_class_params "}"
 830
 831  client_class_params ::=
 832                     | not_empty_client_class_params
 833
 834  not_empty_client_class_params ::= client_class_param
 835                               | not_empty_client_class_params "," client_class_param
 836                               | not_empty_client_class_params ","
 837
 838  client_class_param ::= client_class_name
 839                    | client_class_test
 840                    | client_class_template_test
 841                    | only_if_required
 842                    | option_def_list
 843                    | option_data_list
 844                    | next_server
 845                    | server_hostname
 846                    | boot_file_name
 847                    | user_context
 848                    | comment
 849                    | unknown_map_entry
 850                    | valid_lifetime
 851                    | min_valid_lifetime
 852                    | max_valid_lifetime
 853                    | offer_lifetime
 854
 855  client_class_name ::= name
 856
 857  client_class_test ::= "test" ":" STRING
 858
 859  client_class_template_test ::= "template-test" ":" STRING
 860
 861  only_if_required ::= "only-if-required" ":" BOOLEAN
 862
 863  dhcp4o6_port ::= "dhcp4o6-port" ":" INTEGER
 864
 865  control_socket ::= "control-socket" ":" "{" control_socket_params "}"
 866
 867  control_socket_params ::= control_socket_param
 868                       | control_socket_params "," control_socket_param
 869                       | control_socket_params ","
 870
 871  control_socket_param ::= control_socket_type
 872                      | control_socket_name
 873                      | user_context
 874                      | comment
 875                      | unknown_map_entry
 876
 877  control_socket_type ::= "socket-type" ":" STRING
 878
 879  control_socket_name ::= "socket-name" ":" STRING
 880
 881  dhcp_queue_control ::= "dhcp-queue-control" ":" "{" queue_control_params "}"
 882
 883  queue_control_params ::= queue_control_param
 884                      | queue_control_params "," queue_control_param
 885                      | queue_control_params ","
 886
 887  queue_control_param ::= enable_queue
 888                     | queue_type
 889                     | capacity
 890                     | user_context
 891                     | comment
 892                     | arbitrary_map_entry
 893
 894  enable_queue ::= "enable-queue" ":" BOOLEAN
 895
 896  queue_type ::= "queue-type" ":" STRING
 897
 898  capacity ::= "capacity" ":" INTEGER
 899
 900  arbitrary_map_entry ::= STRING ":" value
 901
 902  dhcp_ddns ::= "dhcp-ddns" ":" "{" dhcp_ddns_params "}"
 903
 904  sub_dhcp_ddns ::= "{" dhcp_ddns_params "}"
 905
 906  dhcp_ddns_params ::= dhcp_ddns_param
 907                  | dhcp_ddns_params "," dhcp_ddns_param
 908                  | dhcp_ddns_params ","
 909
 910  dhcp_ddns_param ::= enable_updates
 911                 | server_ip
 912                 | server_port
 913                 | sender_ip
 914                 | sender_port
 915                 | max_queue_size
 916                 | ncr_protocol
 917                 | ncr_format
 918                 | dep_override_no_update
 919                 | dep_override_client_update
 920                 | dep_replace_client_name
 921                 | dep_generated_prefix
 922                 | dep_qualifying_suffix
 923                 | dep_hostname_char_set
 924                 | dep_hostname_char_replacement
 925                 | user_context
 926                 | comment
 927                 | unknown_map_entry
 928
 929  enable_updates ::= "enable-updates" ":" BOOLEAN
 930
 931  server_ip ::= "server-ip" ":" STRING
 932
 933  server_port ::= "server-port" ":" INTEGER
 934
 935  sender_ip ::= "sender-ip" ":" STRING
 936
 937  sender_port ::= "sender-port" ":" INTEGER
 938
 939  max_queue_size ::= "max-queue-size" ":" INTEGER
 940
 941  ncr_protocol ::= "ncr-protocol" ":" ncr_protocol_value
 942
 943  ncr_protocol_value ::= "udp"
 944                    | "tcp"
 945
 946  ncr_format ::= "ncr-format" ":" "JSON"
 947
 948  dep_qualifying_suffix ::= "qualifying-suffix" ":" STRING
 949
 950  dep_override_no_update ::= "override-no-update" ":" BOOLEAN
 951
 952  dep_override_client_update ::= "override-client-update" ":" BOOLEAN
 953
 954  dep_replace_client_name ::= "replace-client-name" ":" ddns_replace_client_name_value
 955
 956  dep_generated_prefix ::= "generated-prefix" ":" STRING
 957
 958  dep_hostname_char_set ::= "hostname-char-set" ":" STRING
 959
 960  dep_hostname_char_replacement ::= "hostname-char-replacement" ":" STRING
 961
 962  config_control ::= "config-control" ":" "{" config_control_params "}"
 963
 964  sub_config_control ::= "{" config_control_params "}"
 965
 966  config_control_params ::= config_control_param
 967                       | config_control_params "," config_control_param
 968                       | config_control_params ","
 969
 970  config_control_param ::= config_databases
 971                      | config_fetch_wait_time
 972
 973  config_databases ::= "config-databases" ":" "[" database_list "]"
 974
 975  config_fetch_wait_time ::= "config-fetch-wait-time" ":" INTEGER
 976
 977  loggers ::= "loggers" ":" "[" loggers_entries "]"
 978
 979  loggers_entries ::= logger_entry
 980                 | loggers_entries "," logger_entry
 981                 | loggers_entries ","
 982
 983  logger_entry ::= "{" logger_params "}"
 984
 985  logger_params ::= logger_param
 986               | logger_params "," logger_param
 987               | logger_params ","
 988
 989  logger_param ::= name
 990              | output_options_list
 991              | debuglevel
 992              | severity
 993              | user_context
 994              | comment
 995              | unknown_map_entry
 996
 997  debuglevel ::= "debuglevel" ":" INTEGER
 998
 999  severity ::= "severity" ":" STRING
1000
1001  output_options_list ::= "output-options" ":" "[" output_options_list_content "]"
1002
1003  output_options_list_content ::= output_entry
1004                             | output_options_list_content "," output_entry
1005                             | output_options_list_content ","
1006
1007  output_entry ::= "{" output_params_list "}"
1008
1009  output_params_list ::= output_params
1010                    | output_params_list "," output_params
1011                    | output_params_list ","
1012
1013  output_params ::= output
1014               | flush
1015               | maxsize
1016               | maxver
1017               | pattern
1018
1019  output ::= "output" ":" STRING
1020
1021  flush ::= "flush" ":" BOOLEAN
1022
1023  maxsize ::= "maxsize" ":" INTEGER
1024
1025  maxver ::= "maxver" ":" INTEGER
1026
1027  pattern ::= "pattern" ":" STRING
1028
1029  compatibility ::= "compatibility" ":" "{" compatibility_params "}"
1030
1031  compatibility_params ::= compatibility_param
1032                      | compatibility_params "," compatibility_param
1033                      | compatibility_params ","
1034
1035  compatibility_param ::= lenient_option_parsing
1036                     | ignore_dhcp_server_identifier
1037                     | ignore_rai_link_selection
1038                     | exclude_first_last_24
1039                     | unknown_map_entry
1040
1041  lenient_option_parsing ::= "lenient-option-parsing" ":" BOOLEAN
1042
1043  ignore_dhcp_server_identifier ::= "ignore-dhcp-server-identifier" ":" BOOLEAN
1044
1045  ignore_rai_link_selection ::= "ignore-rai-link-selection" ":" BOOLEAN
1046
1047  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                    | max_row_errors
 305                    | trust_anchor
 306                    | cert_file
 307                    | key_file
 308                    | cipher_list
 309                    | unknown_map_entry
 310
 311  database_type ::= "type" ":" db_type
 312
 313  db_type ::= "memfile"
 314         | "mysql"
 315         | "postgresql"
 316
 317  user ::= "user" ":" STRING
 318
 319  password ::= "password" ":" STRING
 320
 321  host ::= "host" ":" STRING
 322
 323  port ::= "port" ":" INTEGER
 324
 325  name ::= "name" ":" STRING
 326
 327  persist ::= "persist" ":" BOOLEAN
 328
 329  lfc_interval ::= "lfc-interval" ":" INTEGER
 330
 331  readonly ::= "readonly" ":" BOOLEAN
 332
 333  connect_timeout ::= "connect-timeout" ":" INTEGER
 334
 335  read_timeout ::= "read-timeout" ":" INTEGER
 336
 337  write_timeout ::= "write-timeout" ":" INTEGER
 338
 339  tcp_user_timeout ::= "tcp-user-timeout" ":" INTEGER
 340
 341  reconnect_wait_time ::= "reconnect-wait-time" ":" INTEGER
 342
 343  on_fail ::= "on-fail" ":" on_fail_mode
 344
 345  on_fail_mode ::= "stop-retry-exit"
 346              | "serve-retry-exit"
 347              | "serve-retry-continue"
 348
 349  max_row_errors ::= "max-row-errors" ":" INTEGER
 350
 351  max_reconnect_tries ::= "max-reconnect-tries" ":" INTEGER
 352
 353  trust_anchor ::= "trust-anchor" ":" STRING
 354
 355  cert_file ::= "cert-file" ":" STRING
 356
 357  key_file ::= "key-file" ":" STRING
 358
 359  cipher_list ::= "cipher-list" ":" STRING
 360
 361  sanity_checks ::= "sanity-checks" ":" "{" sanity_checks_params "}"
 362
 363  sanity_checks_params ::= sanity_checks_param
 364                      | sanity_checks_params "," sanity_checks_param
 365                      | sanity_checks_params ","
 366
 367  sanity_checks_param ::= lease_checks
 368                     | extended_info_checks
 369
 370  lease_checks ::= "lease-checks" ":" STRING
 371
 372  extended_info_checks ::= "extended-info-checks" ":" STRING
 373
 374  mac_sources ::= "mac-sources" ":" "[" mac_sources_list "]"
 375
 376  mac_sources_list ::= mac_sources_value
 377                  | mac_sources_list "," mac_sources_value
 378                  | mac_sources_list ","
 379
 380  mac_sources_value ::= duid_id
 381                   | string_id
 382
 383  duid_id ::= "duid"
 384
 385  string_id ::= STRING
 386
 387  host_reservation_identifiers ::= "host-reservation-identifiers" ":" "[" host_reservation_identifiers_list "]"
 388
 389  host_reservation_identifiers_list ::= host_reservation_identifier
 390                                   | host_reservation_identifiers_list "," host_reservation_identifier
 391                                   | host_reservation_identifiers_list ","
 392
 393  host_reservation_identifier ::= duid_id
 394                             | hw_address_id
 395                             | flex_id
 396
 397  hw_address_id ::= "hw-address"
 398
 399  flex_id ::= "flex-id"
 400
 401  relay_supplied_options ::= "relay-supplied-options" ":" "[" list_content "]"
 402
 403  dhcp_multi_threading ::= "multi-threading" ":" "{" multi_threading_params "}"
 404
 405  multi_threading_params ::= multi_threading_param
 406                        | multi_threading_params "," multi_threading_param
 407                        | multi_threading_params ","
 408
 409  multi_threading_param ::= enable_multi_threading
 410                       | thread_pool_size
 411                       | packet_queue_size
 412                       | user_context
 413                       | comment
 414                       | unknown_map_entry
 415
 416  enable_multi_threading ::= "enable-multi-threading" ":" BOOLEAN
 417
 418  thread_pool_size ::= "thread-pool-size" ":" INTEGER
 419
 420  packet_queue_size ::= "packet-queue-size" ":" INTEGER
 421
 422  hooks_libraries ::= "hooks-libraries" ":" "[" hooks_libraries_list "]"
 423
 424  hooks_libraries_list ::=
 425                      | not_empty_hooks_libraries_list
 426
 427  not_empty_hooks_libraries_list ::= hooks_library
 428                                | not_empty_hooks_libraries_list "," hooks_library
 429                                | not_empty_hooks_libraries_list ","
 430
 431  hooks_library ::= "{" hooks_params "}"
 432
 433  sub_hooks_library ::= "{" hooks_params "}"
 434
 435  hooks_params ::= hooks_param
 436              | hooks_params "," hooks_param
 437              | hooks_params ","
 438              | unknown_map_entry
 439
 440  hooks_param ::= library
 441             | parameters
 442
 443  library ::= "library" ":" STRING
 444
 445  parameters ::= "parameters" ":" map_value
 446
 447  expired_leases_processing ::= "expired-leases-processing" ":" "{" expired_leases_params "}"
 448
 449  expired_leases_params ::= expired_leases_param
 450                       | expired_leases_params "," expired_leases_param
 451                       | expired_leases_params ","
 452
 453  expired_leases_param ::= reclaim_timer_wait_time
 454                      | flush_reclaimed_timer_wait_time
 455                      | hold_reclaimed_time
 456                      | max_reclaim_leases
 457                      | max_reclaim_time
 458                      | unwarned_reclaim_cycles
 459
 460  reclaim_timer_wait_time ::= "reclaim-timer-wait-time" ":" INTEGER
 461
 462  flush_reclaimed_timer_wait_time ::= "flush-reclaimed-timer-wait-time" ":" INTEGER
 463
 464  hold_reclaimed_time ::= "hold-reclaimed-time" ":" INTEGER
 465
 466  max_reclaim_leases ::= "max-reclaim-leases" ":" INTEGER
 467
 468  max_reclaim_time ::= "max-reclaim-time" ":" INTEGER
 469
 470  unwarned_reclaim_cycles ::= "unwarned-reclaim-cycles" ":" INTEGER
 471
 472  subnet6_list ::= "subnet6" ":" "[" subnet6_list_content "]"
 473
 474  subnet6_list_content ::=
 475                      | not_empty_subnet6_list
 476
 477  not_empty_subnet6_list ::= subnet6
 478                        | not_empty_subnet6_list "," subnet6
 479                        | not_empty_subnet6_list ","
 480
 481  subnet6 ::= "{" subnet6_params "}"
 482
 483  sub_subnet6 ::= "{" subnet6_params "}"
 484
 485  subnet6_params ::= subnet6_param
 486                | subnet6_params "," subnet6_param
 487                | subnet6_params ","
 488
 489  subnet6_param ::= preferred_lifetime
 490               | min_preferred_lifetime
 491               | max_preferred_lifetime
 492               | valid_lifetime
 493               | min_valid_lifetime
 494               | max_valid_lifetime
 495               | renew_timer
 496               | rebind_timer
 497               | option_data_list
 498               | pools_list
 499               | pd_pools_list
 500               | subnet
 501               | interface
 502               | interface_id
 503               | id
 504               | rapid_commit
 505               | client_class
 506               | require_client_classes
 507               | reservations
 508               | reservation_mode
 509               | reservations_global
 510               | reservations_in_subnet
 511               | reservations_out_of_pool
 512               | relay
 513               | user_context
 514               | comment
 515               | calculate_tee_times
 516               | t1_percent
 517               | t2_percent
 518               | cache_threshold
 519               | cache_max_age
 520               | hostname_char_set
 521               | hostname_char_replacement
 522               | ddns_send_updates
 523               | ddns_override_no_update
 524               | ddns_override_client_update
 525               | ddns_replace_client_name
 526               | ddns_generated_prefix
 527               | ddns_qualifying_suffix
 528               | ddns_update_on_renew
 529               | ddns_use_conflict_resolution
 530               | ddns_conflict_resolution_mode
 531               | ddns_ttl_percent
 532               | store_extended_info
 533               | allocator
 534               | pd_allocator
 535               | unknown_map_entry
 536
 537  subnet ::= "subnet" ":" STRING
 538
 539  interface ::= "interface" ":" STRING
 540
 541  interface_id ::= "interface-id" ":" STRING
 542
 543  client_class ::= "client-class" ":" STRING
 544
 545  require_client_classes ::= "require-client-classes" ":" list_strings
 546
 547  reservations_global ::= "reservations-global" ":" BOOLEAN
 548
 549  reservations_in_subnet ::= "reservations-in-subnet" ":" BOOLEAN
 550
 551  reservations_out_of_pool ::= "reservations-out-of-pool" ":" BOOLEAN
 552
 553  reservation_mode ::= "reservation-mode" ":" hr_mode
 554
 555  hr_mode ::= "disabled"
 556         | "out-of-pool"
 557         | "global"
 558         | "all"
 559
 560  id ::= "id" ":" INTEGER
 561
 562  rapid_commit ::= "rapid-commit" ":" BOOLEAN
 563
 564  shared_networks ::= "shared-networks" ":" "[" shared_networks_content "]"
 565
 566  shared_networks_content ::=
 567                         | shared_networks_list
 568
 569  shared_networks_list ::= shared_network
 570                      | shared_networks_list "," shared_network
 571                      | shared_networks_list ","
 572
 573  shared_network ::= "{" shared_network_params "}"
 574
 575  shared_network_params ::= shared_network_param
 576                       | shared_network_params "," shared_network_param
 577                       | shared_network_params ","
 578
 579  shared_network_param ::= name
 580                      | subnet6_list
 581                      | interface
 582                      | interface_id
 583                      | renew_timer
 584                      | rebind_timer
 585                      | option_data_list
 586                      | relay
 587                      | reservation_mode
 588                      | reservations_global
 589                      | reservations_in_subnet
 590                      | reservations_out_of_pool
 591                      | client_class
 592                      | require_client_classes
 593                      | preferred_lifetime
 594                      | min_preferred_lifetime
 595                      | max_preferred_lifetime
 596                      | rapid_commit
 597                      | valid_lifetime
 598                      | min_valid_lifetime
 599                      | max_valid_lifetime
 600                      | user_context
 601                      | comment
 602                      | calculate_tee_times
 603                      | t1_percent
 604                      | t2_percent
 605                      | cache_threshold
 606                      | cache_max_age
 607                      | hostname_char_set
 608                      | hostname_char_replacement
 609                      | ddns_send_updates
 610                      | ddns_override_no_update
 611                      | ddns_override_client_update
 612                      | ddns_replace_client_name
 613                      | ddns_generated_prefix
 614                      | ddns_qualifying_suffix
 615                      | ddns_update_on_renew
 616                      | ddns_use_conflict_resolution
 617                      | ddns_conflict_resolution_mode
 618                      | ddns_ttl_percent
 619                      | store_extended_info
 620                      | allocator
 621                      | pd_allocator
 622                      | unknown_map_entry
 623
 624  option_def_list ::= "option-def" ":" "[" option_def_list_content "]"
 625
 626  sub_option_def_list ::= "{" option_def_list "}"
 627
 628  option_def_list_content ::=
 629                         | not_empty_option_def_list
 630
 631  not_empty_option_def_list ::= option_def_entry
 632                           | not_empty_option_def_list "," option_def_entry
 633                           | not_empty_option_def_list ","
 634
 635  option_def_entry ::= "{" option_def_params "}"
 636
 637  sub_option_def ::= "{" option_def_params "}"
 638
 639  option_def_params ::=
 640                   | not_empty_option_def_params
 641
 642  not_empty_option_def_params ::= option_def_param
 643                             | not_empty_option_def_params "," option_def_param
 644                             | not_empty_option_def_params ","
 645
 646  option_def_param ::= option_def_name
 647                  | option_def_code
 648                  | option_def_type
 649                  | option_def_record_types
 650                  | option_def_space
 651                  | option_def_encapsulate
 652                  | option_def_array
 653                  | user_context
 654                  | comment
 655                  | unknown_map_entry
 656
 657  option_def_name ::= name
 658
 659  code ::= "code" ":" INTEGER
 660
 661  option_def_code ::= code
 662
 663  option_def_type ::= "type" ":" STRING
 664
 665  option_def_record_types ::= "record-types" ":" STRING
 666
 667  space ::= "space" ":" STRING
 668
 669  option_def_space ::= space
 670
 671  option_def_encapsulate ::= "encapsulate" ":" STRING
 672
 673  option_def_array ::= "array" ":" BOOLEAN
 674
 675  option_data_list ::= "option-data" ":" "[" option_data_list_content "]"
 676
 677  option_data_list_content ::=
 678                          | not_empty_option_data_list
 679
 680  not_empty_option_data_list ::= option_data_entry
 681                            | not_empty_option_data_list "," option_data_entry
 682                            | not_empty_option_data_list ","
 683
 684  option_data_entry ::= "{" option_data_params "}"
 685
 686  sub_option_data ::= "{" option_data_params "}"
 687
 688  option_data_params ::=
 689                    | not_empty_option_data_params
 690
 691  not_empty_option_data_params ::= option_data_param
 692                              | not_empty_option_data_params "," option_data_param
 693                              | not_empty_option_data_params ","
 694
 695  option_data_param ::= option_data_name
 696                   | option_data_data
 697                   | option_data_code
 698                   | option_data_space
 699                   | option_data_csv_format
 700                   | option_data_always_send
 701                   | option_data_never_send
 702                   | user_context
 703                   | comment
 704                   | unknown_map_entry
 705
 706  option_data_name ::= name
 707
 708  option_data_data ::= "data" ":" STRING
 709
 710  option_data_code ::= code
 711
 712  option_data_space ::= space
 713
 714  option_data_csv_format ::= "csv-format" ":" BOOLEAN
 715
 716  option_data_always_send ::= "always-send" ":" BOOLEAN
 717
 718  option_data_never_send ::= "never-send" ":" BOOLEAN
 719
 720  pools_list ::= "pools" ":" "[" pools_list_content "]"
 721
 722  pools_list_content ::=
 723                    | not_empty_pools_list
 724
 725  not_empty_pools_list ::= pool_list_entry
 726                      | not_empty_pools_list "," pool_list_entry
 727                      | not_empty_pools_list ","
 728
 729  pool_list_entry ::= "{" pool_params "}"
 730
 731  sub_pool6 ::= "{" pool_params "}"
 732
 733  pool_params ::= pool_param
 734             | pool_params "," pool_param
 735             | pool_params ","
 736
 737  pool_param ::= pool_entry
 738            | pool_id
 739            | option_data_list
 740            | client_class
 741            | require_client_classes
 742            | user_context
 743            | comment
 744            | unknown_map_entry
 745
 746  pool_entry ::= "pool" ":" STRING
 747
 748  pool_id ::= "pool-id" ":" INTEGER
 749
 750  user_context ::= "user-context" ":" map_value
 751
 752  comment ::= "comment" ":" STRING
 753
 754  pd_pools_list ::= "pd-pools" ":" "[" pd_pools_list_content "]"
 755
 756  pd_pools_list_content ::=
 757                       | not_empty_pd_pools_list
 758
 759  not_empty_pd_pools_list ::= pd_pool_entry
 760                         | not_empty_pd_pools_list "," pd_pool_entry
 761                         | not_empty_pd_pools_list ","
 762
 763  pd_pool_entry ::= "{" pd_pool_params "}"
 764
 765  sub_pd_pool ::= "{" pd_pool_params "}"
 766
 767  pd_pool_params ::= pd_pool_param
 768                | pd_pool_params "," pd_pool_param
 769                | pd_pool_params ","
 770
 771  pd_pool_param ::= pd_prefix
 772               | pd_prefix_len
 773               | pd_delegated_len
 774               | option_data_list
 775               | client_class
 776               | require_client_classes
 777               | excluded_prefix
 778               | excluded_prefix_len
 779               | user_context
 780               | comment
 781               | unknown_map_entry
 782
 783  pd_prefix ::= "prefix" ":" STRING
 784
 785  pd_prefix_len ::= "prefix-len" ":" INTEGER
 786
 787  excluded_prefix ::= "excluded-prefix" ":" STRING
 788
 789  excluded_prefix_len ::= "excluded-prefix-len" ":" INTEGER
 790
 791  pd_delegated_len ::= "delegated-len" ":" INTEGER
 792
 793  reservations ::= "reservations" ":" "[" reservations_list "]"
 794
 795  reservations_list ::=
 796                   | not_empty_reservations_list
 797
 798  not_empty_reservations_list ::= reservation
 799                             | not_empty_reservations_list "," reservation
 800                             | not_empty_reservations_list ","
 801
 802  reservation ::= "{" reservation_params "}"
 803
 804  sub_reservation ::= "{" reservation_params "}"
 805
 806  reservation_params ::=
 807                    | not_empty_reservation_params
 808
 809  not_empty_reservation_params ::= reservation_param
 810                              | not_empty_reservation_params "," reservation_param
 811                              | not_empty_reservation_params ","
 812
 813  reservation_param ::= duid
 814                   | reservation_client_classes
 815                   | ip_addresses
 816                   | prefixes
 817                   | hw_address
 818                   | hostname
 819                   | flex_id_value
 820                   | option_data_list
 821                   | user_context
 822                   | comment
 823                   | unknown_map_entry
 824
 825  ip_addresses ::= "ip-addresses" ":" list_strings
 826
 827  prefixes ::= "prefixes" ":" list_strings
 828
 829  duid ::= "duid" ":" STRING
 830
 831  hw_address ::= "hw-address" ":" STRING
 832
 833  hostname ::= "hostname" ":" STRING
 834
 835  flex_id_value ::= "flex-id" ":" STRING
 836
 837  reservation_client_classes ::= "client-classes" ":" list_strings
 838
 839  relay ::= "relay" ":" "{" relay_map "}"
 840
 841  relay_map ::= ip_address
 842           | ip_addresses
 843
 844  ip_address ::= "ip-address" ":" STRING
 845
 846  client_classes ::= "client-classes" ":" "[" client_classes_list "]"
 847
 848  client_classes_list ::= client_class_entry
 849                     | client_classes_list "," client_class_entry
 850                     | client_classes_list ","
 851
 852  client_class_entry ::= "{" client_class_params "}"
 853
 854  client_class_params ::=
 855                     | not_empty_client_class_params
 856
 857  not_empty_client_class_params ::= client_class_param
 858                               | not_empty_client_class_params "," client_class_param
 859                               | not_empty_client_class_params ","
 860
 861  client_class_param ::= client_class_name
 862                    | client_class_test
 863                    | client_class_template_test
 864                    | only_if_required
 865                    | option_data_list
 866                    | user_context
 867                    | comment
 868                    | preferred_lifetime
 869                    | min_preferred_lifetime
 870                    | max_preferred_lifetime
 871                    | valid_lifetime
 872                    | min_valid_lifetime
 873                    | max_valid_lifetime
 874                    | unknown_map_entry
 875
 876  client_class_name ::= name
 877
 878  client_class_test ::= "test" ":" STRING
 879
 880  client_class_template_test ::= "template-test" ":" STRING
 881
 882  only_if_required ::= "only-if-required" ":" BOOLEAN
 883
 884  server_id ::= "server-id" ":" "{" server_id_params "}"
 885
 886  server_id_params ::= server_id_param
 887                  | server_id_params "," server_id_param
 888                  | server_id_params ","
 889
 890  server_id_param ::= server_id_type
 891                 | identifier
 892                 | time
 893                 | htype
 894                 | enterprise_id
 895                 | persist
 896                 | user_context
 897                 | comment
 898                 | unknown_map_entry
 899
 900  server_id_type ::= "type" ":" duid_type
 901
 902  duid_type ::= "LLT"
 903           | "EN"
 904           | "LL"
 905
 906  htype ::= "htype" ":" INTEGER
 907
 908  identifier ::= "identifier" ":" STRING
 909
 910  time ::= "time" ":" INTEGER
 911
 912  enterprise_id ::= "enterprise-id" ":" INTEGER
 913
 914  dhcp4o6_port ::= "dhcp4o6-port" ":" INTEGER
 915
 916  control_socket ::= "control-socket" ":" "{" control_socket_params "}"
 917
 918  control_socket_params ::= control_socket_param
 919                       | control_socket_params "," control_socket_param
 920                       | control_socket_params ","
 921
 922  control_socket_param ::= socket_type
 923                      | socket_name
 924                      | user_context
 925                      | comment
 926                      | unknown_map_entry
 927
 928  socket_type ::= "socket-type" ":" STRING
 929
 930  socket_name ::= "socket-name" ":" STRING
 931
 932  dhcp_queue_control ::= "dhcp-queue-control" ":" "{" queue_control_params "}"
 933
 934  queue_control_params ::= queue_control_param
 935                      | queue_control_params "," queue_control_param
 936                      | queue_control_params ","
 937
 938  queue_control_param ::= enable_queue
 939                     | queue_type
 940                     | capacity
 941                     | user_context
 942                     | comment
 943                     | arbitrary_map_entry
 944
 945  enable_queue ::= "enable-queue" ":" BOOLEAN
 946
 947  queue_type ::= "queue-type" ":" STRING
 948
 949  capacity ::= "capacity" ":" INTEGER
 950
 951  arbitrary_map_entry ::= STRING ":" value
 952
 953  dhcp_ddns ::= "dhcp-ddns" ":" "{" dhcp_ddns_params "}"
 954
 955  sub_dhcp_ddns ::= "{" dhcp_ddns_params "}"
 956
 957  dhcp_ddns_params ::= dhcp_ddns_param
 958                  | dhcp_ddns_params "," dhcp_ddns_param
 959                  | dhcp_ddns_params ","
 960
 961  dhcp_ddns_param ::= enable_updates
 962                 | server_ip
 963                 | server_port
 964                 | sender_ip
 965                 | sender_port
 966                 | max_queue_size
 967                 | ncr_protocol
 968                 | ncr_format
 969                 | dep_override_no_update
 970                 | dep_override_client_update
 971                 | dep_replace_client_name
 972                 | dep_generated_prefix
 973                 | dep_qualifying_suffix
 974                 | dep_hostname_char_set
 975                 | dep_hostname_char_replacement
 976                 | user_context
 977                 | comment
 978                 | unknown_map_entry
 979
 980  enable_updates ::= "enable-updates" ":" BOOLEAN
 981
 982  dep_qualifying_suffix ::= "qualifying-suffix" ":" STRING
 983
 984  server_ip ::= "server-ip" ":" STRING
 985
 986  server_port ::= "server-port" ":" INTEGER
 987
 988  sender_ip ::= "sender-ip" ":" STRING
 989
 990  sender_port ::= "sender-port" ":" INTEGER
 991
 992  max_queue_size ::= "max-queue-size" ":" INTEGER
 993
 994  ncr_protocol ::= "ncr-protocol" ":" ncr_protocol_value
 995
 996  ncr_protocol_value ::= "UDP"
 997                    | "TCP"
 998
 999  ncr_format ::= "ncr-format" ":" "JSON"
1000
1001  dep_override_no_update ::= "override-no-update" ":" BOOLEAN
1002
1003  dep_override_client_update ::= "override-client-update" ":" BOOLEAN
1004
1005  dep_replace_client_name ::= "replace-client-name" ":" ddns_replace_client_name_value
1006
1007  dep_generated_prefix ::= "generated-prefix" ":" STRING
1008
1009  dep_hostname_char_set ::= "hostname-char-set" ":" STRING
1010
1011  dep_hostname_char_replacement ::= "hostname-char-replacement" ":" STRING
1012
1013  config_control ::= "config-control" ":" "{" config_control_params "}"
1014
1015  sub_config_control ::= "{" config_control_params "}"
1016
1017  config_control_params ::= config_control_param
1018                       | config_control_params "," config_control_param
1019                       | config_control_params ","
1020
1021  config_control_param ::= config_databases
1022                      | config_fetch_wait_time
1023
1024  config_databases ::= "config-databases" ":" "[" database_list "]"
1025
1026  config_fetch_wait_time ::= "config-fetch-wait-time" ":" INTEGER
1027
1028  loggers ::= "loggers" ":" "[" loggers_entries "]"
1029
1030  loggers_entries ::= logger_entry
1031                 | loggers_entries "," logger_entry
1032                 | loggers_entries ","
1033
1034  logger_entry ::= "{" logger_params "}"
1035
1036  logger_params ::= logger_param
1037               | logger_params "," logger_param
1038               | logger_params ","
1039
1040  logger_param ::= name
1041              | output_options_list
1042              | debuglevel
1043              | severity
1044              | user_context
1045              | comment
1046              | unknown_map_entry
1047
1048  debuglevel ::= "debuglevel" ":" INTEGER
1049
1050  severity ::= "severity" ":" STRING
1051
1052  output_options_list ::= "output-options" ":" "[" output_options_list_content "]"
1053
1054  output_options_list_content ::= output_entry
1055                             | output_options_list_content "," output_entry
1056                             | output_options_list_content ","
1057
1058  output_entry ::= "{" output_params_list "}"
1059
1060  output_params_list ::= output_params
1061                    | output_params_list "," output_params
1062                    | output_params_list ","
1063
1064  output_params ::= output
1065               | flush
1066               | maxsize
1067               | maxver
1068               | pattern
1069
1070  output ::= "output" ":" STRING
1071
1072  flush ::= "flush" ":" BOOLEAN
1073
1074  maxsize ::= "maxsize" ":" INTEGER
1075
1076  maxver ::= "maxver" ":" INTEGER
1077
1078  pattern ::= "pattern" ":" STRING
1079
1080  compatibility ::= "compatibility" ":" "{" compatibility_params "}"
1081
1082  compatibility_params ::= compatibility_param
1083                      | compatibility_params "," compatibility_param
1084                      | compatibility_params ","
1085
1086  compatibility_param ::= lenient_option_parsing
1087                     | unknown_map_entry
1088
1089  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