[stable-2.8] Don't validate ip address for mgmt interface (#56136)
It is possible the EOS appliance doesn't have an IP address on the
management1 interface, instead just check we have found that interface.
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
(cherry picked from commit f9589bd
)
Co-authored-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
d617e6cd84
commit
cb6ece6b4e
4 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@
|
|||
# Items from those subsets are present
|
||||
- "result.ansible_facts.ansible_net_filesystems is defined" #hw
|
||||
- "result.ansible_facts.ansible_net_memtotal_mb > 10" #hw
|
||||
- "result.ansible_facts.ansible_net_interfaces.Management1.ipv4.masklen > 1" # interfaces
|
||||
- "result.ansible_facts.ansible_net_interfaces.Management1" # interfaces
|
||||
|
||||
# ... and not present
|
||||
- "result.ansible_facts.ansible_net_config is not defined" # config
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
- "'hardware' not in result.ansible_facts.ansible_net_gather_subset"
|
||||
|
||||
# Items from those subsets are present
|
||||
- "result.ansible_facts.ansible_net_interfaces.Management1.ipv4.masklen > 1" # interfaces
|
||||
- "result.ansible_facts.ansible_net_interfaces.Management1" # interfaces
|
||||
# ... and not present
|
||||
- "result.ansible_facts.ansible_net_filesystems is not defined"
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
# Items from those subsets are present
|
||||
- "result.ansible_facts.ansible_net_filesystems is defined" #hw
|
||||
- "result.ansible_facts.ansible_net_memtotal_mb > 10" #hw
|
||||
- "result.ansible_facts.ansible_net_interfaces.Management1.ipv4.masklen > 1" # interfaces
|
||||
- "result.ansible_facts.ansible_net_interfaces.Management1" # interfaces
|
||||
|
||||
# ... and not present
|
||||
- "result.ansible_facts.ansible_net_config is not defined" # config
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
- "'hardware' not in result.ansible_facts.ansible_net_gather_subset"
|
||||
|
||||
# Items from those subsets are present
|
||||
- "result.ansible_facts.ansible_net_interfaces.Management1.ipv4.masklen > 1" # interfaces
|
||||
- "result.ansible_facts.ansible_net_interfaces.Management1" # interfaces
|
||||
# ... and not present
|
||||
- "result.ansible_facts.ansible_net_filesystems is not defined"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue