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:
parent
4f54d6cea1
commit
33f342435a
1 changed files with 2 additions and 0 deletions
|
@ -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'):
|
||||
|
|
Loading…
Reference in a new issue