|
|
@ -45,23 +45,23 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- CIDR (full notation) to be used for firewall rule.
|
|
|
|
- CIDR (full notation) to be used for firewall rule.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: '0.0.0.0\0'
|
|
|
|
default: '0.0.0.0/0'
|
|
|
|
start_port
|
|
|
|
start_port:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Start port for this rule. Considered if C(protocol=tcp) or C(protocol=udp).
|
|
|
|
- Start port for this rule. Considered if C(protocol=tcp) or C(protocol=udp).
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: null
|
|
|
|
default: null
|
|
|
|
end_port
|
|
|
|
end_port:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- End port for this rule. Considered if C(protocol=tcp) or C(protocol=udp).
|
|
|
|
- End port for this rule. Considered if C(protocol=tcp) or C(protocol=udp).
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: null
|
|
|
|
default: null
|
|
|
|
icmp_type
|
|
|
|
icmp_type:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Type of the icmp message being sent. Considered if C(protocol=icmp).
|
|
|
|
- Type of the icmp message being sent. Considered if C(protocol=icmp).
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: null
|
|
|
|
default: null
|
|
|
|
icmp_code
|
|
|
|
icmp_code:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Error code for this icmp message. Considered if C(protocol=icmp).
|
|
|
|
- Error code for this icmp message. Considered if C(protocol=icmp).
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
@ -106,9 +106,6 @@ EXAMPLES = '''
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
RETURN = '''
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
from cs import CloudStack, CloudStackException, read_config
|
|
|
|
from cs import CloudStack, CloudStackException, read_config
|
|
|
|
has_lib_cs = True
|
|
|
|
has_lib_cs = True
|
|
|
|