Skip to content

Commit

Permalink
Don't validate ip address for mgmt interface
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pabelanger committed May 8, 2019
1 parent 22c079e commit f0a0d2a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit f0a0d2a

Please sign in to comment.