From 7ef92e4c7aefa6a7870c8ed659ee7166f30ec243 Mon Sep 17 00:00:00 2001 From: Logan V Date: Mon, 30 Jan 2017 13:58:41 -0600 Subject: [PATCH] os_network: Allow freeform provider_network_type string Prescribing types is not necessary as the underlying shade library does not do so, and the Neutron API will inform us if a disallowed or non existent type is used. Fixes #20830 --- lib/ansible/modules/cloud/openstack/os_network.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ansible/modules/cloud/openstack/os_network.py b/lib/ansible/modules/cloud/openstack/os_network.py index 39f0afa219b..240fee75184 100644 --- a/lib/ansible/modules/cloud/openstack/os_network.py +++ b/lib/ansible/modules/cloud/openstack/os_network.py @@ -73,7 +73,6 @@ options: provider_network_type: description: - The type of physical network that maps to this network resource. - choices: ['flat', 'vlan', 'vxlan', 'gre', 'uplink'] required: false default: None version_added: "2.1" @@ -172,8 +171,7 @@ def main(): admin_state_up=dict(default=True, type='bool'), external=dict(default=False, type='bool'), provider_physical_network=dict(required=False), - provider_network_type=dict(required=False, default=None, - choices=['flat', 'vlan', 'vxlan', 'gre', 'uplink']), + provider_network_type=dict(required=False), provider_segmentation_id=dict(required=False), state=dict(default='present', choices=['absent', 'present']), project=dict(default=None)