diff --git a/cloud/openstack/os_network.py b/cloud/openstack/os_network.py index b77a7e331a4..18e0aaa9a27 100644 --- a/cloud/openstack/os_network.py +++ b/cloud/openstack/os_network.py @@ -66,6 +66,7 @@ def main(): name=dict(required=True), shared=dict(default=False, type='bool'), admin_state_up=dict(default=True, type='bool'), + state=dict(default='present', choices=['absent', 'present']), ) module_kwargs = openstack_module_kwargs() diff --git a/cloud/openstack/os_subnet.py b/cloud/openstack/os_subnet.py index 75bf7b33313..2fdb4e0dd6d 100644 --- a/cloud/openstack/os_subnet.py +++ b/cloud/openstack/os_subnet.py @@ -173,6 +173,7 @@ def main(): allocation_pool_start=dict(default=None), allocation_pool_end=dict(default=None), host_routes=dict(default=None, type='list'), + state=dict(default='present', choices=['absent', 'present']), ) module_kwargs = openstack_module_kwargs()