/usr/share/augeas/lenses/dist/netmasks.aug is in augeas-lenses 1.2.0-0ubuntu1.
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | (*
Module: Netmasks
Parses /etc/inet/netmasks on Solaris
Author: Dominic Cleal <dcleal@redhat.com>
About: Reference
This lens tries to keep as close as possible to `man 4 netmasks` where possible.
About: Licence
This file is licensed under the LGPL v2+, like the rest of Augeas.
About: Lens Usage
About: Configuration files
This lens applies to /etc/netmasks and /etc/inet/netmasks. See <filter>.
*)
module Netmasks =
autoload xfm
(************************************************************************
* Group: USEFUL PRIMITIVES
************************************************************************)
(* View: comment *)
let comment = Util.comment
(* View: comment_or_eol *)
let comment_or_eol = Util.comment_or_eol
(* View: indent *)
let indent = Util.indent
(* View: empty *)
let empty = Util.empty
(* View: sep
The separator for network/mask entries *)
let sep = Util.del_ws_tab
(************************************************************************
* Group: ENTRIES
************************************************************************)
(* View: entry
Network / netmask line *)
let entry = [ seq "network" . indent .
[ label "network" . store Rx.ipv4 ] . sep .
[ label "netmask" . store Rx.ipv4 ] . comment_or_eol ]
(************************************************************************
* Group: LENS
************************************************************************)
(* View: lns *)
let lns = ( empty
| comment
| entry )*
(* Variable: filter *)
let filter = (incl "/etc/netmasks"
. incl "/etc/inet/netmasks")
let xfm = transform lns filter
|