Merge "Fix port_security_enabled key for port module"
This commit is contained in:
commit
9fb544d94a
@ -138,10 +138,11 @@ options:
|
|||||||
of I(no_security_groups): C(true)."
|
of I(no_security_groups): C(true)."
|
||||||
type: bool
|
type: bool
|
||||||
default: 'false'
|
default: 'false'
|
||||||
port_security_enabled:
|
is_port_security_enabled:
|
||||||
description:
|
description:
|
||||||
- Whether to enable or disable the port security on the network.
|
- Whether to enable or disable the port security on the network.
|
||||||
type: bool
|
type: bool
|
||||||
|
aliases: ['port_security_enabled']
|
||||||
security_groups:
|
security_groups:
|
||||||
description:
|
description:
|
||||||
- Security group(s) ID(s) or name(s) associated with the port.
|
- Security group(s) ID(s) or name(s) associated with the port.
|
||||||
@ -479,7 +480,7 @@ class PortModule(OpenStackModule):
|
|||||||
name=dict(required=True),
|
name=dict(required=True),
|
||||||
network=dict(),
|
network=dict(),
|
||||||
no_security_groups=dict(default=False, type='bool'),
|
no_security_groups=dict(default=False, type='bool'),
|
||||||
port_security_enabled=dict(type='bool'),
|
is_port_security_enabled=dict(type='bool', aliases=['port_security_enabled']),
|
||||||
security_groups=dict(type='list', elements='str'),
|
security_groups=dict(type='list', elements='str'),
|
||||||
state=dict(default='present', choices=['absent', 'present']),
|
state=dict(default='present', choices=['absent', 'present']),
|
||||||
)
|
)
|
||||||
@ -655,7 +656,7 @@ class PortModule(OpenStackModule):
|
|||||||
'extra_dhcp_opts',
|
'extra_dhcp_opts',
|
||||||
'is_admin_state_up',
|
'is_admin_state_up',
|
||||||
'mac_address',
|
'mac_address',
|
||||||
'port_security_enabled',
|
'is_port_security_enabled',
|
||||||
'fixed_ips',
|
'fixed_ips',
|
||||||
'name']:
|
'name']:
|
||||||
if self.params[k] is not None:
|
if self.params[k] is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user