CodeLiturgy.Dashboard/CodeLiturgy.Views/Augeas/lens/iproute2.aug

11 lines
323 B
Plaintext
Raw Permalink Normal View History

2022-12-05 02:07:41 +03:00
module IPRoute2 =
autoload xfm
let empty = [ del /[ \t]*#?[ \t]*\n/ "\n" ]
let id = Rx.hex | Rx.integer
let record = [ key id . del /[ \t]+/ "\t" . store /[a-zA-Z0-9\/-]+/ . Util.comment_or_eol ]
let lns = ( empty | Util.comment | record ) *
let xfm = transform lns (incl "/etc/iproute2/*" . Util.stdexcl)