-
Notifications
You must be signed in to change notification settings - Fork 2
Jd bgp works #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Jd bgp works #76
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,33 @@ | |
| port_security_enabled: "{{ item.port_security_enabled | default(omit) }}" | ||
| with_items: "{{ os_networks }}" | ||
|
|
||
| - name: Ensure address scope is registered with neutron | ||
| openstack.cloud.address_scope: | ||
| auth_type: "{{ os_networks_auth_type }}" | ||
| auth: "{{ os_networks_auth }}" | ||
| region_name: "{{ os_networks_region | default(omit) }}" | ||
| cacert: "{{ os_networks_cacert | default(omit) }}" | ||
| cloud: "{{ os_networks_cloud | default(omit) }}" | ||
| interface: "{{ os_networks_interface | default(omit, true) }}" | ||
| name: "{{ item.name }}" | ||
| shared: "{{ item.shared | default(omit) }}" | ||
| ip_version: "{{ item.ip_version | default(omit) }}" | ||
| with_items: "{{ os_address_scopes }}" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. loop: instead of with_items: |
||
|
|
||
| - name: Ensure subnet pool is registered with neutron | ||
| openstack.cloud.subnet_pool: | ||
| auth_type: "{{ os_networks_auth_type }}" | ||
| auth: "{{ os_networks_auth }}" | ||
| region_name: "{{ os_networks_region | default(omit) }}" | ||
| cacert: "{{ os_networks_cacert | default(omit) }}" | ||
| cloud: "{{ os_networks_cloud | default(omit) }}" | ||
| interface: "{{ os_networks_interface | default(omit, true) }}" | ||
| name: "{{ item.name }}" | ||
| shared: "{{ item.shared | default(omit) }}" | ||
| prefixes: "{{ item.prefixes }}" | ||
| address_scope: "{{ item.address_scope }}" | ||
| with_items: "{{ os_subnet_pools }}" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
|
|
||
| - name: Ensure subnet is registered with neutron | ||
| openstack.cloud.subnet: | ||
| auth_type: "{{ os_networks_auth_type }}" | ||
|
|
@@ -45,6 +72,7 @@ | |
| name: "{{ item.1.name }}" | ||
| network_name: "{{ item.0.name }}" | ||
| cidr: "{{ item.1.cidr | default(omit) }}" | ||
| prefix_length: "{{ item.1.prefix_length | default(omit) }}" | ||
| dns_nameservers: "{{ item.1.dns_nameservers | default(omit) }}" | ||
| enable_dhcp: "{{ item.1.enable_dhcp | default(omit) }}" | ||
| extra_specs: "{{ item.1.extra_specs | default(omit) }}" | ||
|
|
@@ -60,7 +88,7 @@ | |
| ipv6_address_mode: "{{ item.1.ipv6_address_mode | default(omit) }}" | ||
| ipv6_ra_mode: "{{ item.1.ipv6_ra_mode | default(omit) }}" | ||
| use_default_subnetpool: "{{ item.1.use_default_subnetpool | default(omit) }}" | ||
| subnetpool: "{{ item.1.subnetpool | default(omit) }}" | ||
darmach marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| subnet_pool: "{{ item.1.subnet_pool | default(omit) }}" | ||
| project: "{{ item.1.project | default(omit) }}" | ||
| state: "{{ item.1.state | default(omit) }}" | ||
| with_subelements: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable
os_address_scopesis not defined in the role's defaults. If it's not provided by the user, this task will fail. To make it optional and prevent errors, please provide a default value. This will make the role more robust by simply skipping the loop if the variable is not defined.