loopback doesn't support passive_interface (#33252)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2017-11-27 22:56:16 +05:30 committed by GitHub
commit 25a465ffcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -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: