confgen

Config parser generator
git clone git://git.finwo.net/app/confgen
Log | Files | Refs | LICENSE

confgen.hcl (443B)


      1 output_headers = "keepalived/src/config/config.h"
      2 output_parser  = "keepalived/src/config/config.c"
      3 
      4 argument "daemonize" {
      5   type = "boolean"
      6 }
      7 
      8 block "vrrp_instance" {
      9   label = "name"
     10   repeatable = true
     11 
     12   argument "router_id" {
     13     type = "integer"
     14   }
     15 
     16   block "auth" {
     17     repeatable = false
     18 
     19     argument "type" {
     20       type    = "string"
     21       default = "PASS"
     22       enum = [
     23         "PASS"
     24         "SOMETHING"
     25       ]
     26     }
     27 
     28   }
     29 
     30 
     31 }