(maint) fix RST formatting of has_interface_with code examples
This commit is contained in:
parent
806430224a
commit
34944a78f9
1 changed files with 7 additions and 3 deletions
|
@ -405,12 +405,16 @@ Returns boolean based on kind and value:
|
||||||
* ipaddress
|
* ipaddress
|
||||||
* network
|
* network
|
||||||
|
|
||||||
has_interface_with("macaddress", "x:x:x:x:x:x")
|
*Examples:*
|
||||||
has_interface_with("ipaddress", "127.0.0.1") => true
|
|
||||||
|
has_interface_with("macaddress", "x:x:x:x:x:x")
|
||||||
|
has_interface_with("ipaddress", "127.0.0.1") => true
|
||||||
|
|
||||||
etc.
|
etc.
|
||||||
|
|
||||||
If no "kind" is given, then the presence of the interface is checked:
|
If no "kind" is given, then the presence of the interface is checked:
|
||||||
has_interface_with("lo") => true
|
|
||||||
|
has_interface_with("lo") => true
|
||||||
|
|
||||||
|
|
||||||
- *Type*: rvalue
|
- *Type*: rvalue
|
||||||
|
|
Loading…
Reference in a new issue