/usr/share/netcf/lenses/routes.aug is in libnetcf1 1:0.2.8-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | (*
Module: Routes
Parses /etc/sysconfig/network/routes
*)
module Routes =
autoload xfm
let comment = Util.comment
let empty = Util.empty
let eol = Util.eol | Util.comment
(* Anything that's not a separator is part of a token *)
let tok_ch = /[^ \t\n#\\",]|\\\\[^ \t\n]/
let indent = Util.del_ws " "
let token = store tok_ch+
let route_token = /[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+/
let mask_token = /[0-9]+/
let column(n:string) = [ label n . token ]
let default_route = [ key /default/ . indent . column "gateway" . indent . column "netmask" . indent . column "device" . eol ]
let route_entry = [ key route_token . del "/" "/" . [ key mask_token . indent . column "gateway" . indent . column "netmask" . indent . column "device" . eol ] ]
let lns = (comment|empty| default_route | route_entry )*
let filter = incl "/etc/sysconfig/network/routes" .
Util.stdexcl
let xfm = transform lns filter
|