Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
pull/58705/head
Sumit Jaiswal 7 years ago committed by GitHub
parent 1eb3fba51f
commit 8b844b67b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -280,10 +280,11 @@ def main():
state = module.params['state'] state = module.params['state']
tenant = module.params['tenant'] tenant = module.params['tenant']
if 'eigrp' in l3protocol and asn is None: if l3protocol:
module.fail_json(msg="Parameter 'asn' is required when l3protocol is 'eigrp'") if 'eigrp' in l3protocol and asn is None:
if 'eigrp' not in l3protocol and asn is not None: module.fail_json(msg="Parameter 'asn' is required when l3protocol is 'eigrp'")
module.warn("Parameter 'asn' is only applicable when l3protocol is 'eigrp'. The ASN will be ignored") if 'eigrp' not in l3protocol and asn is not None:
module.warn("Parameter 'asn' is only applicable when l3protocol is 'eigrp'. The ASN will be ignored")
enforce_ctrl = '' enforce_ctrl = ''
if enforceRtctrl is not None: if enforceRtctrl is not None:

Loading…
Cancel
Save