diff --git a/changelogs/fragments/966-subnet-external_ipam.yaml b/changelogs/fragments/966-subnet-external_ipam.yaml new file mode 100644 index 0000000000..9a241ae260 --- /dev/null +++ b/changelogs/fragments/966-subnet-external_ipam.yaml @@ -0,0 +1,2 @@ +minor_changes: + - subnet - add support for external IPAM (https://github.com/theforeman/foreman-ansible-modules/issues/966) diff --git a/plugins/modules/subnet.py b/plugins/modules/subnet.py index c0c02a8277..a9d7700c01 100644 --- a/plugins/modules/subnet.py +++ b/plugins/modules/subnet.py @@ -96,6 +96,7 @@ - "Internal DB" - "Random DB" - "EUI-64" + - "External IPAM" - "None" type: str dhcp_proxy: @@ -131,6 +132,10 @@ required: false type: list elements: str + externalipam_proxy: + description: External IPAM proxy for this subnet + required: false + type: str vlanid: description: VLAN ID required: false @@ -226,7 +231,7 @@ def main(): from_ip=dict(flat_name='from'), to_ip=dict(flat_name='to'), boot_mode=dict(choices=['DHCP', 'Static'], default='DHCP'), - ipam=dict(choices=['DHCP', 'Internal DB', 'Random DB', 'EUI-64', 'None'], default='DHCP'), + ipam=dict(choices=['DHCP', 'Internal DB', 'Random DB', 'EUI-64', 'External IPAM', 'None'], default='DHCP'), dhcp_proxy=dict(type='entity', flat_name='dhcp_id', resource_type='smart_proxies'), httpboot_proxy=dict(type='entity', flat_name='httpboot_id', resource_type='smart_proxies'), tftp_proxy=dict(type='entity', flat_name='tftp_id', resource_type='smart_proxies'), @@ -234,6 +239,7 @@ def main(): dns_proxy=dict(type='entity', flat_name='dns_id', resource_type='smart_proxies'), template_proxy=dict(type='entity', flat_name='template_id', resource_type='smart_proxies'), remote_execution_proxies=dict(type='entity_list', resource_type='smart_proxies'), + externalipam_proxy=dict(type='entity', flat_name='externalipam_id', resource_type='smart_proxies'), vlanid=dict(type='int'), mtu=dict(type='int'), ),