Cisco smartport macros

Hi,

I’ve tried to configure Cisco smartport macros via ansible mit ios_config/cli_config.
Both failed with an timeout.

It looks like this on the serial console:

TN_00sw03(config)#macro auto execute TEST1_CISCO_SWITCH { {..} > if [[ $LINKUP == YES ]] then.else.fi> then then.else.fi> conf t then.else.fi> interface $INTERFACE then.else.fi> description linkupmacro then.else.fi> exit then.else.fi> end then.else.fi> fi {..} > if [[ $LINKUP == NO ]] then.else.fi> then then.else.fi> conf t then.else.fi> interface $INTERFACE then.else.fi> description linkdownmacro then.else.fi> exit then.else.fi> end then.else.fi> fi {..} >} TN_00sw03(config)#exit

My Playbook:
`