tripleo-validations/validations/library
Florian Fuchs d0dc69c1eb Fix Switch VLANs validation
The "Compare switch VLANs to VLANs in nic config" validation breaks when
run through Mistral. This is because the custom module used in the
validation imports functions from another custom module. Custom modules
are recognized by Ansible, but they don't necessarily live on the Python
path, so when run through Mistral the imported module cannot be found
and the validation breaks.

This patch moves the two imported functions to different locations:

- `library.network_environment.get_network_config` is refactored into a
  generic utility function in `tripleo_validations.utils`.
- `library.network_environment.open_network_environment_files` is copied
  to `library.network_environment.switch_vlans` (this is an ugly
  duplication, but the function is going to be removed from the original
  location in a different patch:
  https://review.openstack.org/#/c/547518/)

Change-Id: If3bc62df730739640341386022c0cd99295b880b
Closes-Bug: #1761717
2018-04-13 15:00:09 +00:00
..
__init__.py Unit testing for ip_range 2017-04-13 15:25:30 +00:00
advanced_format.py Get rid of star imports 2017-12-10 20:04:46 +01:00
check_package_update.py Add a validation that checks for available update 2018-04-12 15:28:54 +00:00
haproxy_conf.py Get rid of star imports 2017-12-10 20:04:46 +01:00
hiera.py Get rid of star imports 2017-12-10 20:04:46 +01:00
icmp_ping.py Get rid of star imports 2017-12-10 20:04:46 +01:00
ini.py Get rid of star imports 2017-12-10 20:04:46 +01:00
ip_range.py Merge "Get rid of star imports" 2017-12-14 03:22:28 +00:00
network_environment.py Fix Switch VLANs validation 2018-04-13 15:00:09 +00:00
neutron_sanity_check.py Add missing module documentation 2017-09-18 15:48:29 +02:00
overcloudrc.py Get rid of star imports 2017-12-10 20:04:46 +01:00
pacemaker.py Get rid of star imports 2017-12-10 20:04:46 +01:00
switch_vlans.py Fix Switch VLANs validation 2018-04-13 15:00:09 +00:00
undercloud_conf.py Get rid of star imports 2017-12-10 20:04:46 +01:00
warn.py Get rid of star imports 2017-12-10 20:04:46 +01:00