1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Attempt to detect and abort when 'fex-fabric' is present (#28342)

This commit is contained in:
Nathaniel Case 2017-08-18 16:13:12 -04:00 committed by GitHub
parent 4f54d6cea1
commit 33f342435a

View file

@ -279,6 +279,8 @@ def get_interface(intf, module):
if body:
interface_table = body['TABLE_interface']['ROW_interface']
if interface_table['eth_mode'] == 'fex-fabric':
module.fail_json(msg='nxos_interface does not support interfaces with mode "fex-fabric"')
intf_type = get_interface_type(intf)
if intf_type in ['portchannel', 'ethernet']:
if not interface_table.get('eth_mode'):