mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-04 12:22:45 +00:00
Attempt to detect and abort when 'fex-fabric' is present (#28342)
This commit is contained in:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user