mirror of
https://github.com/inspec/inspec
synced 2024-12-30 06:53:22 +00:00
633cea6673
Adds missing functionality to `interface`. Fixes #1830 ``` describe interface("eth0") do its(ipv4_addresses) { should include 1.2.3.4 } end ``` And so on... see diff/docs for additional matchers. Signed-off-by: Matt Kulka <mkulka@parchment.com>
14 lines
411 B
Text
14 lines
411 B
Text
[
|
|
{
|
|
"IPv6Address": "::1",
|
|
"IPv4Address": null,
|
|
"InterfaceAlias": "vEthernet (Intel(R) PRO 1000 MT Network Connection - Virtual Switch)",
|
|
"PrefixLength": 128
|
|
},
|
|
{
|
|
"IPv6Address": null,
|
|
"IPv4Address": "127.0.0.1",
|
|
"InterfaceAlias": "vEthernet (Intel(R) PRO 1000 MT Network Connection - Virtual Switch)",
|
|
"PrefixLength": 8
|
|
}
|
|
]
|