tripleo-ansible/tripleo_ansible/tests/modules
James Slagle 9f99a1a2e8 Only add gateway IP if defined during network extract
If the gateway IP was not a subnet (IPv4 or IPv6), the network extract
command was generating a network_data.yaml file that had an entry for
gateway_ip set to null. Example:

- dns_domain: storagemgmt.tripleodomain.
  mtu: 1400
  name: StorageMgmt
  name_lower: storage_mgmt
  subnets:
    storage_mgmt_subnet:
      allocation_pools:
      - end: 172.16.3.250
        start: 172.16.3.4
      gateway_ip: null
      ip_subnet: 172.16.3.0/24
      physical_network: storage_mgmt
      routes: []
      vlan: 40
  vip: true

During "openstack overcloud network provision", the yaml was then
failing validation since null is not a valid string value for gateway_ip
as defined in the schema.

This patch updates the tripleo_overcloud_network_extract module to only
add the gateway_ip[v6] key to the subnet info if it's actually defined
on the subnet object.

Change-Id: I9701064c33c2e319617d90da99db00d10ad68a0f
Signed-off-by: James Slagle <jslagle@redhat.com>
2020-12-03 21:05:49 -05:00
..
__init__.py Add module "container_puppet_config" 2020-02-06 18:00:52 +00:00
test_container_config_data.py Creates container_config_data module 2020-03-04 09:57:38 -05:00
test_container_puppet_config.py Add module "container_puppet_config" 2020-02-06 18:00:52 +00:00
test_derive_hci_parameters.py Derive HCI reseverved host memory without average guest workload 2020-09-08 20:22:56 +00:00
test_lvm2_physical_devices_facts.py Add tripleo-lvmfilter role to restrict visible block devices for LVM2 2020-10-13 22:22:46 +02:00
test_network_data_v2.py module_utils - network_data_v2 2020-11-12 10:51:42 +01:00
test_network_populate_environment.py Use name_lower for network resource name 2020-11-20 21:28:07 +01:00
test_tripleo_composable_network.py Add tag with network name on network resources 2020-11-30 10:01:23 +01:00
test_tripleo_deploy_artifacts.py Use unittest.mock instead of mock 2020-09-18 14:43:16 +08:00
test_tripleo_diff_exec.py Use unittest.mock instead of mock 2020-09-18 14:43:16 +08:00
test_tripleo_get_dpdk_core_list.py OvS DPDK and SRIOV derive parameters 2020-09-11 20:01:04 +05:30
test_tripleo_get_dpdk_nics_numa_info.py OvS DPDK and SRIOV derive parameters 2020-09-11 20:01:04 +05:30
test_tripleo_get_dpdk_socket_memory.py OvS DPDK and SRIOV derive parameters 2020-09-11 20:01:04 +05:30
test_tripleo_get_host_cpus.py OvS DPDK and SRIOV derive parameters 2020-09-11 20:01:04 +05:30
test_tripleo_list_overclouds.py Use unittest.mock instead of mock 2020-09-18 14:43:16 +08:00
test_tripleo_os_net_config_mappings.py Use unittest.mock instead of mock 2020-09-18 14:43:16 +08:00
test_tripleo_overcloud_network_extract.py Only add gateway IP if defined during network extract 2020-12-03 21:05:49 -05:00