From 33f342435ae09391abe5b16668e132b75a3203de Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Fri, 18 Aug 2017 16:13:12 -0400 Subject: [PATCH] Attempt to detect and abort when 'fex-fabric' is present (#28342) --- lib/ansible/modules/network/nxos/nxos_interface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/network/nxos/nxos_interface.py b/lib/ansible/modules/network/nxos/nxos_interface.py index 07e5d03a213..093e62185ed 100644 --- a/lib/ansible/modules/network/nxos/nxos_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_interface.py @@ -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'):