Parses /etc/keepalived/keepalived.conf
Keepalived | Parses /etc/keepalived/keepalived.conf |
Augeas Lenses | |
argument | Arguments are key=value stanzas |
line | Lines are made of a name, followed by a list of one of more arguments separated by a space. |
block | A block is a standard <Build.named_block> of lines |
lns | The lens is a series of blocks, with optional empty lines and comments before, between and after them. |
let line = let arguments = Build.opt_list argument Sep.space in Build.key_value Rx.word Sep.space arguments
Lines are made of a name, followed by a list of one of more arguments separated by a space.
let block = Build.named_block Rx.word line
A block is a standard <Build.named_block> of lines
let lns = let empty_or_comment = ( Util.empty | Util.comment )* in
The lens is a series of blocks, with optional empty lines and comments before, between and after them.
Arguments are key=value stanzas
let argument = let argument_re = Rx.word | /"[^\n"]*"/ in Build.key_value Rx.word Sep.equal (store argument_re)
Lines are made of a name, followed by a list of one of more arguments separated by a space.
let line = let arguments = Build.opt_list argument Sep.space in Build.key_value Rx.word Sep.space arguments
A block is a standard Build.named_block of lines
let block = Build.named_block Rx.word line
The lens is a series of blocks, with optional empty lines and comments before, between and after them.
let lns = let empty_or_comment = ( Util.empty | Util.comment )* in