Netmasks

Parses /etc/inet/netmasks on Solaris

Author: Dominic Cleal dcl.nosp@m.eal@redha.nosp@m.t.com

Summary
NetmasksParses /etc/inet/netmasks on Solaris
ReferenceThis lens tries to keep as close as possible to `man 4 netmasks` where possible.
LicenceThis file is licensed under the LGPL v2+, like the rest of Augeas.
Lens Usage
Configuration filesThis lens applies to /etc/netmasks and /etc/inet/netmasks.
USEFUL PRIMITIVES
comment
comment_or_eol
indent
empty
sepThe separator for network/mask entries
ENTRIES
entryNetwork / netmask line
LENS
lns
filter

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.  See filter.

USEFUL PRIMITIVES

comment

let comment = Util.comment

comment_or_eol

let comment_or_eol = Util.comment_or_eol

indent

let indent = Util.indent

empty

let empty = Util.empty

sep

let sep = Util.del_ws_tab

The separator for network/mask entries

ENTRIES

entry

let entry = [ seq "network" . indent . [ label "network" . store Rx.ipv4 ] . sep . [ label "netmask" . store Rx.ipv4 ] . comment_or_eol ]

Network / netmask line

LENS

lns

let lns = ( empty | comment | entry )*

filter

let comment = Util.comment
let comment_or_eol = Util.comment_or_eol
let indent = Util.indent
let empty = Util.empty
let sep = Util.del_ws_tab
The separator for network/mask entries
let entry = [ seq "network" . indent . [ label "network" . store Rx.ipv4 ] . sep . [ label "netmask" . store Rx.ipv4 ] . comment_or_eol ]
Network / netmask line
let lns = ( empty | comment | entry )*
Close