Skip to content

Commit

Permalink
Make project network and subnet configurable
Browse files Browse the repository at this point in the history
(cherry picked from commit ad16b5a)
  • Loading branch information
fnordahl committed Jul 20, 2023
1 parent e13b6df commit 8a84ef9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions zaza/openstack/charm_tests/neutron/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
"prefix_len": "24",
"subnetpool_name": "pooled_subnets",
"subnetpool_prefix": "192.168.0.0/16",
"project_net_name": "private",
"project_subnet_name": "private_subnet",
}

OVERCLOUD_PROVIDER_VLAN_NETWORK_CONFIG = {
Expand Down
6 changes: 4 additions & 2 deletions zaza/openstack/configure/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,16 @@ def setup_sdn(network_config, keystone_session=None):
neutron_client,
project_id,
shared=False,
network_type=network_config["network_type"])
network_type=network_config["network_type"],
net_name=network_config["project_net_name"])
project_subnet = openstack_utils.create_project_subnet(
neutron_client,
project_id,
project_network,
network_config.get("private_net_cidr"),
subnetpool=subnetpool,
ip_version=ip_version)
ip_version=ip_version,
subnet_name=network_config["project_subnet_name"])
openstack_utils.update_subnet_dns(
neutron_client,
project_subnet,
Expand Down

0 comments on commit 8a84ef9

Please sign in to comment.