User can configure two physical ports or two LAGs as Flex Links or one physical port and one LAG as Flex Links.
set interface aggregate-ethernet <lag_name> backup-port interface <interface_number>
To return the configuration enter:
delete interface aggregate-ethernet <lag_name> backup-port interface
• <lag_name> Name of a configured LAG interface.
• <interface_number> Set backup port of an interface, which will disable RSTP/MSTP.
This example is to set Flex links between a physical port and a LAG :