mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Various small fixes for f5 ansible modules (#49492)
This commit is contained in:
parent
6200d32c0d
commit
138690519d
10 changed files with 148 additions and 184 deletions
|
@ -64,10 +64,11 @@ EXAMPLES = r'''
|
|||
description: Route to TACACS
|
||||
gateway: 10.10.10.10
|
||||
network: 11.11.11.0/24
|
||||
password: secret
|
||||
server: lb.mydomain.com
|
||||
state: present
|
||||
user: admin
|
||||
provider:
|
||||
user: admin
|
||||
password: secret
|
||||
server: lb.mydomain.com
|
||||
delegate_to: localhost
|
||||
'''
|
||||
|
||||
|
@ -214,6 +215,8 @@ class Difference(object):
|
|||
def network(self):
|
||||
if self.want.network is None:
|
||||
return None
|
||||
if self.want.network == '0.0.0.0/0' and self.have.network == 'default':
|
||||
return None
|
||||
if self.want.network != self.have.network:
|
||||
raise F5ModuleError(
|
||||
"'network' cannot be changed after it is set."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue