| 1 |
Value Required Interface ([^:]+) |
| 2 |
Value MTU (\d+) |
| 3 |
Value State ((in)?active) |
| 4 |
Value MAC ([\d\w:]+) |
| 5 |
Value List Inet ([\d\.]+) |
| 6 |
Value List Netmask (\S+) |
| 7 |
# Don't match interface local (fe80::/10) - achieved with excluding '%'. |
| 8 |
Value List Inet6 ([^%]+) |
| 9 |
Value List Prefix (\d+) |
| 10 |
|
| 11 |
Start |
| 12 |
# Record interface record (if we have one). |
| 13 |
^\S+:.* -> Continue.Record |
| 14 |
# Collect data for new interface. |
| 15 |
^${Interface}:.* mtu ${MTU} |
| 16 |
^\s+ether ${MAC} |
| 17 |
^\s+inet6 ${Inet6} prefixlen ${Prefix} |
| 18 |
^\s+inet ${Inet} netmask ${Netmask} |