mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
loopback doesn't support passive_interface (#33252)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -296,6 +296,8 @@ def state_present(module, existing, proposed, candidate):
|
||||
if existing_commands[key] == proposed_commands[key]:
|
||||
continue
|
||||
|
||||
if key == 'ip ospf passive-interface' and module.params.get('interface').upper().startswith('LO'):
|
||||
module.fail_json(msg='loopback interface does not support passive_interface')
|
||||
if value is True:
|
||||
commands.append(key)
|
||||
elif value is False:
|
||||
|
||||
Reference in New Issue
Block a user