3 Parses /etc/inet/netmasks on Solaris
5 Author: Dominic Cleal <dcleal@redhat.com>
8 This lens tries to keep as close as possible to `man 4 netmasks` where possible.
11 This file is licensed under the LGPL v2+, like the rest of Augeas.
15 About: Configuration files
16 This lens applies to /etc/netmasks and /etc/inet/netmasks. See <filter>.
22 (************************************************************************
23 * Group: USEFUL PRIMITIVES
24 ************************************************************************)
27 let comment = Util.comment
29 (* View: comment_or_eol *)
30 let comment_or_eol = Util.comment_or_eol
33 let indent = Util.indent
36 let empty = Util.empty
39 The separator for network/mask entries *)
40 let sep = Util.del_ws_tab
42 (************************************************************************
44 ************************************************************************)
47 Network / netmask line *)
48 let entry = [ seq "network" . indent .
49 [ label "network" . store Rx.ipv4 ] . sep .
50 [ label "netmask" . store Rx.ipv4 ] . comment_or_eol ]
52 (************************************************************************
54 ************************************************************************)
61 (* Variable: filter *)
62 let filter = (incl "/etc/netmasks"
63 . incl "/etc/inet/netmasks")
65 let xfm = transform lns filter