diff --git a/changelogs/fragments/53899-cs_network_offering-supported_services_choices.yml b/changelogs/fragments/53899-cs_network_offering-supported_services_choices.yml new file mode 100644 index 0000000000..6415cb0f2d --- /dev/null +++ b/changelogs/fragments/53899-cs_network_offering-supported_services_choices.yml @@ -0,0 +1,2 @@ +bugfixes: + - cs_network_offering - Add a choice list for supported_services parameter in arg_spec. diff --git a/lib/ansible/modules/cloud/cloudstack/cs_network_offering.py b/lib/ansible/modules/cloud/cloudstack/cs_network_offering.py index b2f0cee1a8..422f3b4252 100644 --- a/lib/ansible/modules/cloud/cloudstack/cs_network_offering.py +++ b/lib/ansible/modules/cloud/cloudstack/cs_network_offering.py @@ -345,7 +345,17 @@ def main(): display_text=dict(), guest_ip_type=dict(choices=['Shared', 'Isolated']), name=dict(required=True), - supported_services=dict(type='list', aliases=['supported_service']), + supported_services=dict(type='list', aliases=['supported_service'], choices=[ + 'Dns', + 'PortForwarding', + 'Dhcp', + 'SourceNat', + 'UserData', + 'Firewall', + 'StaticNat', + 'Vpn', + 'Lb', + ]), traffic_type=dict(default='Guest'), availability=dict(), conserve_mode=dict(type='bool'),