mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
loopback doesn't support passive_interface (#33252)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
b611c92626
commit
25a465ffcb
2 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue