From b3fc849c3f3e30b8502d34335ecb00c76270016d Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 21 Sep 2020 15:02:31 +0200 Subject: [PATCH] add external ipam to subnet module Fixes: #966 --- changelogs/fragments/966-subnet-external_ipam.yaml | 2 ++ plugins/modules/subnet.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/966-subnet-external_ipam.yaml 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..5218dc4119 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: @@ -226,7 +227,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'),