Parses /etc/inet/netmasks on Solaris
Author: Dominic Cleal dcl@redha t.com eal
Netmasks | Parses /etc/inet/netmasks on Solaris |
Reference | This lens tries to keep as close as possible to `man 4 netmasks` where possible. |
Licence | This file is licensed under the LGPL v2+, like the rest of Augeas. |
Lens Usage | |
Configuration files | This lens applies to /etc/netmasks and /etc/inet/netmasks. |
USEFUL PRIMITIVES | |
comment | |
comment_or_eol | |
indent | |
empty | |
sep | The separator for network/mask entries |
ENTRIES | |
entry | Network / netmask line |
LENS | |
lns | |
filter |
This lens applies to /etc/netmasks and /etc/inet/netmasks. See filter.
let comment = Util.comment
let comment_or_eol = Util.comment_or_eol
let indent = Util.indent
let empty = Util.empty
The separator for network/mask entries
let sep = Util.del_ws_tab
Network / netmask line
let entry = [ seq "network" . indent . [ label "network" . store Rx.ipv4 ] . sep . [ label "netmask" . store Rx.ipv4 ] . comment_or_eol ]
let lns = ( empty | comment | entry )*