|
|
|
|
@ -40,6 +40,7 @@ options:
|
|
|
|
|
ipv4_range:
|
|
|
|
|
description:
|
|
|
|
|
- the IPv4 address range in CIDR notation for the network
|
|
|
|
|
this parameter is not mandatory when you specified existing network in name parameter, but when you create new network, this parameter is mandatory
|
|
|
|
|
required: false
|
|
|
|
|
aliases: ['cidr']
|
|
|
|
|
fwname:
|
|
|
|
|
@ -212,7 +213,7 @@ def main():
|
|
|
|
|
# user wants to create a new network that doesn't yet exist
|
|
|
|
|
if name and not network:
|
|
|
|
|
if not ipv4_range:
|
|
|
|
|
module.fail_json(msg="Missing required 'ipv4_range' parameter",
|
|
|
|
|
module.fail_json(msg="Network '" + name + "' is not found. To create network, 'ipv4_range' parameter is required",
|
|
|
|
|
changed=False)
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|