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

BNF Grammar for DHCPv6

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

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

BNF Grammar for Control Agent

This grammar is generated from agent_parser.yy. See The Kea Control Agent for more details.

  1  Grammar
  2
  3  $accept ::= start EOF
  4
  5  start ::= START_JSON json
  6
  7  start ::= START_AGENT agent_syntax_map
  8
  9  start ::= START_SUB_AGENT sub_agent
 10
 11  sub_agent ::= "{" global_params "}"
 12
 13  json ::= value
 14
 15  value ::= INTEGER
 16       | FLOAT
 17       | BOOLEAN
 18       | STRING
 19       | NULL
 20       | map
 21       | list_generic
 22
 23  map ::= "{" map_content "}"
 24
 25  map_value ::= map
 26
 27  map_content ::=
 28             | not_empty_map
 29
 30  not_empty_map ::= STRING ":" value
 31               | not_empty_map "," STRING ":" value
 32               | not_empty_map ","
 33
 34  list_generic ::= "[" list_content "]"
 35
 36  list_content ::=
 37              | not_empty_list
 38
 39  not_empty_list ::= value
 40                | not_empty_list "," value
 41                | not_empty_list ","
 42
 43  unknown_map_entry ::= STRING ":"
 44
 45  agent_syntax_map ::= "{" global_object "}"
 46
 47  global_object ::= "Control-agent" ":" "{" global_params "}"
 48               | global_object_comma
 49
 50  global_object_comma ::= global_object ","
 51
 52  global_params ::= global_param
 53               | global_params "," global_param
 54               | global_params ","
 55
 56  global_param ::= http_host
 57              | http_port
 58              | trust_anchor
 59              | cert_file
 60              | key_file
 61              | cert_required
 62              | authentication
 63              | control_sockets
 64              | hooks_libraries
 65              | loggers
 66              | user_context
 67              | comment
 68              | unknown_map_entry
 69
 70  http_host ::= "http-host" ":" STRING
 71
 72  http_port ::= "http-port" ":" INTEGER
 73
 74  trust_anchor ::= "trust-anchor" ":" STRING
 75
 76  cert_file ::= "cert-file" ":" STRING
 77
 78  key_file ::= "key-file" ":" STRING
 79
 80  cert_required ::= "cert-required" ":" BOOLEAN
 81
 82  user_context ::= "user-context" ":" map_value
 83
 84  comment ::= "comment" ":" STRING
 85
 86  hooks_libraries ::= "hooks-libraries" ":" "[" hooks_libraries_list "]"
 87
 88  hooks_libraries_list ::=
 89                      | not_empty_hooks_libraries_list
 90
 91  not_empty_hooks_libraries_list ::= hooks_library
 92                                | not_empty_hooks_libraries_list "," hooks_library
 93                                | not_empty_hooks_libraries_list ","
 94
 95  hooks_library ::= "{" hooks_params "}"
 96
 97  hooks_params ::= hooks_param
 98              | hooks_params "," hooks_param
 99              | hooks_params ","
100              | unknown_map_entry
101
102  hooks_param ::= library
103             | parameters
104
105  library ::= "library" ":" STRING
106
107  parameters ::= "parameters" ":" map_value
108
109  control_sockets ::= "control-sockets" ":" "{" control_sockets_params "}"
110
111  control_sockets_params ::= control_socket
112                        | control_sockets_params "," control_socket
113                        | control_sockets_params ","
114
115  control_socket ::= dhcp4_server_socket
116                | dhcp6_server_socket
117                | d2_server_socket
118                | unknown_map_entry
119
120  dhcp4_server_socket ::= "dhcp4" ":" "{" control_socket_params "}"
121
122  dhcp6_server_socket ::= "dhcp6" ":" "{" control_socket_params "}"
123
124  d2_server_socket ::= "d2" ":" "{" control_socket_params "}"
125
126  control_socket_params ::= control_socket_param
127                       | control_socket_params "," control_socket_param
128                       | control_socket_params ","
129
130  control_socket_param ::= socket_name
131                      | socket_type
132                      | user_context
133                      | comment
134                      | unknown_map_entry
135
136  socket_name ::= "socket-name" ":" STRING
137
138  socket_type ::= "socket-type" ":" socket_type_value
139
140  socket_type_value ::= "unix"
141
142  authentication ::= "authentication" ":" "{" auth_params "}"
143
144  auth_params ::= auth_param
145             | auth_params "," auth_param
146             | auth_params ","
147
148  auth_param ::= auth_type
149            | realm
150            | directory
151            | clients
152            | comment
153            | user_context
154            | unknown_map_entry
155
156  auth_type ::= "type" ":" auth_type_value
157
158  auth_type_value ::= "basic"
159
160  realm ::= "realm" ":" STRING
161
162  directory ::= "directory" ":" STRING
163
164  clients ::= "clients" ":" "[" clients_list "]"
165
166  clients_list ::=
167              | not_empty_clients_list
168
169  not_empty_clients_list ::= basic_auth
170                        | not_empty_clients_list "," basic_auth
171                        | not_empty_clients_list ","
172
173  basic_auth ::= "{" clients_params "}"
174
175  clients_params ::= clients_param
176                | clients_params "," clients_param
177                | clients_params ","
178
179  clients_param ::= user
180               | user_file
181               | password
182               | password_file
183               | user_context
184               | comment
185               | unknown_map_entry
186
187  user ::= "user" ":" STRING
188
189  user_file ::= "user-file" ":" STRING
190
191  password ::= "password" ":" STRING
192
193  password_file ::= "password-file" ":" STRING
194
195  loggers ::= "loggers" ":" "[" loggers_entries "]"
196
197  loggers_entries ::= logger_entry
198                 | loggers_entries "," logger_entry
199                 | loggers_entries ","
200
201  logger_entry ::= "{" logger_params "}"
202
203  logger_params ::= logger_param
204               | logger_params "," logger_param
205               | logger_params ","
206
207  logger_param ::= name
208              | output_options_list
209              | debuglevel
210              | severity
211              | user_context
212              | comment
213              | unknown_map_entry
214
215  name ::= "name" ":" STRING
216
217  debuglevel ::= "debuglevel" ":" INTEGER
218
219  severity ::= "severity" ":" STRING
220
221  output_options_list ::= "output-options" ":" "[" output_options_list_content "]"
222
223  output_options_list_content ::= output_entry
224                             | output_options_list_content "," output_entry
225                             | output_options_list_content ","
226
227  output_entry ::= "{" output_params_list "}"
228
229  output_params_list ::= output_params
230                    | output_params_list "," output_params
231                    | output_params_list ","
232
233  output_params ::= output
234               | flush
235               | maxsize
236               | maxver
237               | pattern
238
239  output ::= "output" ":" STRING
240
241  flush ::= "flush" ":" BOOLEAN
242
243  maxsize ::= "maxsize" ":" INTEGER
244
245  maxver ::= "maxver" ":" INTEGER
246
247  pattern ::= "pattern" ":" STRING

BNF Grammar for DHCP-DDNS

This grammar is generated from d2_parser.yy. See The DHCP-DDNS Server for more details.

  1  Grammar
  2
  3  $accept ::= start EOF
  4
  5  start ::= TOPLEVEL_JSON sub_json
  6
  7  start ::= TOPLEVEL_DHCPDDNS syntax_map
  8
  9  start ::= SUB_DHCPDDNS sub_dhcpddns
 10
 11  start ::= SUB_TSIG_KEY sub_tsig_key
 12
 13  start ::= SUB_TSIG_KEYS sub_tsig_keys
 14
 15  start ::= SUB_DDNS_DOMAIN sub_ddns_domain
 16
 17  start ::= SUB_DDNS_DOMAINS sub_ddns_domains
 18
 19  start ::= SUB_DNS_SERVER sub_dns_server
 20
 21  start ::= SUB_DNS_SERVERS sub_dns_servers
 22
 23  start ::= SUB_HOOKS_LIBRARY sub_hooks_library
 24
 25  value ::= INTEGER
 26       | FLOAT
 27       | BOOLEAN
 28       | STRING
 29       | NULL
 30       | map2
 31       | list_generic
 32
 33  sub_json ::= value
 34
 35  map2 ::= "{" map_content "}"
 36
 37  map_value ::= map2
 38
 39  map_content ::=
 40             | not_empty_map
 41
 42  not_empty_map ::= STRING ":" value
 43               | not_empty_map "," STRING ":" value
 44               | not_empty_map ","
 45
 46  list_generic ::= "[" list_content "]"
 47
 48  list_content ::=
 49              | not_empty_list
 50
 51  not_empty_list ::= value
 52                | not_empty_list "," value
 53                | not_empty_list ","
 54
 55  unknown_map_entry ::= STRING ":"
 56
 57  syntax_map ::= "{" global_object "}"
 58
 59  global_object ::= "DhcpDdns" ":" "{" dhcpddns_params "}"
 60               | global_object_comma
 61
 62  global_object_comma ::= global_object ","
 63
 64  sub_dhcpddns ::= "{" dhcpddns_params "}"
 65
 66  dhcpddns_params ::= dhcpddns_param
 67                 | dhcpddns_params "," dhcpddns_param
 68                 | dhcpddns_params ","
 69
 70  dhcpddns_param ::= ip_address
 71                | port
 72                | dns_server_timeout
 73                | ncr_protocol
 74                | ncr_format
 75                | forward_ddns
 76                | reverse_ddns
 77                | tsig_keys
 78                | control_socket
 79                | hooks_libraries
 80                | loggers
 81                | user_context
 82                | comment
 83                | unknown_map_entry
 84
 85  ip_address ::= "ip-address" ":" STRING
 86
 87  port ::= "port" ":" INTEGER
 88
 89  dns_server_timeout ::= "dns-server-timeout" ":" INTEGER
 90
 91  ncr_protocol ::= "ncr-protocol" ":" ncr_protocol_value
 92
 93  ncr_protocol_value ::= "UDP"
 94                    | "TCP"
 95
 96  ncr_format ::= "ncr-format" ":" "JSON"
 97
 98  user_context ::= "user-context" ":" map_value
 99
100  comment ::= "comment" ":" STRING
101
102  forward_ddns ::= "forward-ddns" ":" "{" ddns_mgr_params "}"
103
104  reverse_ddns ::= "reverse-ddns" ":" "{" ddns_mgr_params "}"
105
106  ddns_mgr_params ::=
107                 | not_empty_ddns_mgr_params
108
109  not_empty_ddns_mgr_params ::= ddns_mgr_param
110                           | ddns_mgr_params "," ddns_mgr_param
111                           | ddns_mgr_params ","
112
113  ddns_mgr_param ::= ddns_domains
114                | unknown_map_entry
115
116  ddns_domains ::= "ddns-domains" ":" "[" ddns_domain_list "]"
117
118  sub_ddns_domains ::= "[" ddns_domain_list "]"
119
120  ddns_domain_list ::=
121                  | not_empty_ddns_domain_list
122
123  not_empty_ddns_domain_list ::= ddns_domain
124                            | not_empty_ddns_domain_list "," ddns_domain
125                            | not_empty_ddns_domain_list ","
126
127  ddns_domain ::= "{" ddns_domain_params "}"
128
129  sub_ddns_domain ::= "{" ddns_domain_params "}"
130
131  ddns_domain_params ::= ddns_domain_param
132                    | ddns_domain_params "," ddns_domain_param
133                    | ddns_domain_params ","
134
135  ddns_domain_param ::= ddns_domain_name
136                   | ddns_key_name
137                   | dns_servers
138                   | user_context
139                   | comment
140                   | unknown_map_entry
141
142  ddns_domain_name ::= "name" ":" STRING
143
144  ddns_key_name ::= "key-name" ":" STRING
145
146  dns_servers ::= "dns-servers" ":" "[" dns_server_list "]"
147
148  sub_dns_servers ::= "[" dns_server_list "]"
149
150  dns_server_list ::= dns_server
151                 | dns_server_list "," dns_server
152                 | dns_server_list ","
153
154  dns_server ::= "{" dns_server_params "}"
155
156  sub_dns_server ::= "{" dns_server_params "}"
157
158  dns_server_params ::= dns_server_param
159                   | dns_server_params "," dns_server_param
160                   | dns_server_params ","
161
162  dns_server_param ::= dns_server_hostname
163                  | dns_server_ip_address
164                  | dns_server_port
165                  | ddns_key_name
166                  | user_context
167                  | comment
168                  | unknown_map_entry
169
170  dns_server_hostname ::= "hostname" ":" STRING
171
172  dns_server_ip_address ::= "ip-address" ":" STRING
173
174  dns_server_port ::= "port" ":" INTEGER
175
176  tsig_keys ::= "tsig-keys" ":" "[" tsig_keys_list "]"
177
178  sub_tsig_keys ::= "[" tsig_keys_list "]"
179
180  tsig_keys_list ::=
181                | not_empty_tsig_keys_list
182
183  not_empty_tsig_keys_list ::= tsig_key
184                          | not_empty_tsig_keys_list "," tsig_key
185                          | not_empty_tsig_keys_list ","
186
187  tsig_key ::= "{" tsig_key_params "}"
188
189  sub_tsig_key ::= "{" tsig_key_params "}"
190
191  tsig_key_params ::= tsig_key_param
192                 | tsig_key_params "," tsig_key_param
193                 | tsig_key_params ","
194
195  tsig_key_param ::= tsig_key_name
196                | tsig_key_algorithm
197                | tsig_key_digest_bits
198                | tsig_key_secret
199                | tsig_key_secret_file
200                | user_context
201                | comment
202                | unknown_map_entry
203
204  tsig_key_name ::= "name" ":" STRING
205
206  tsig_key_algorithm ::= "algorithm" ":" STRING
207
208  tsig_key_digest_bits ::= "digest-bits" ":" INTEGER
209
210  tsig_key_secret ::= "secret" ":" STRING
211
212  tsig_key_secret_file ::= "secret-file" ":" STRING
213
214  control_socket ::= "control-socket" ":" "{" control_socket_params "}"
215
216  control_socket_params ::= control_socket_param
217                       | control_socket_params "," control_socket_param
218                       | control_socket_params ","
219
220  control_socket_param ::= control_socket_type
221                      | control_socket_name
222                      | user_context
223                      | comment
224                      | unknown_map_entry
225
226  control_socket_type ::= "socket-type" ":" STRING
227
228  control_socket_name ::= "socket-name" ":" STRING
229
230  hooks_libraries ::= "hooks-libraries" ":" "[" hooks_libraries_list "]"
231
232  hooks_libraries_list ::=
233                      | not_empty_hooks_libraries_list
234
235  not_empty_hooks_libraries_list ::= hooks_library
236                                | not_empty_hooks_libraries_list "," hooks_library
237                                | not_empty_hooks_libraries_list ","
238
239  hooks_library ::= "{" hooks_params "}"
240
241  sub_hooks_library ::= "{" hooks_params "}"
242
243  hooks_params ::= hooks_param
244              | hooks_params "," hooks_param
245              | hooks_params ","
246              | unknown_map_entry
247
248  hooks_param ::= library
249             | parameters
250
251  library ::= "library" ":" STRING
252
253  parameters ::= "parameters" ":" map_value
254
255  loggers ::= "loggers" ":" "[" loggers_entries "]"
256
257  loggers_entries ::= logger_entry
258                 | loggers_entries "," logger_entry
259                 | loggers_entries ","
260
261  logger_entry ::= "{" logger_params "}"
262
263  logger_params ::= logger_param
264               | logger_params "," logger_param
265               | logger_params ","
266
267  logger_param ::= name
268              | output_options_list
269              | debuglevel
270              | severity
271              | user_context
272              | comment
273              | unknown_map_entry
274
275  name ::= "name" ":" STRING
276
277  debuglevel ::= "debuglevel" ":" INTEGER
278
279  severity ::= "severity" ":" STRING
280
281  output_options_list ::= "output-options" ":" "[" output_options_list_content "]"
282
283  output_options_list_content ::= output_entry
284                             | output_options_list_content "," output_entry
285                             | output_options_list_content ","
286
287  output_entry ::= "{" output_params_list "}"
288
289  output_params_list ::= output_params
290                    | output_params_list "," output_params
291                    | output_params_list ","
292
293  output_params ::= output
294               | flush
295               | maxsize
296               | maxver
297               | pattern
298
299  output ::= "output" ":" STRING
300
301  flush ::= "flush" ":" BOOLEAN
302
303  maxsize ::= "maxsize" ":" INTEGER
304
305  maxver ::= "maxver" ":" INTEGER
306
307  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