led blinking based on interface status

I have a vrrp setup and want to have the current master to blink the LED … (Routerboard 1000)

My idea is:

Run a scheduler job every minute to check the status of the vrrp interface and blink the led for 60 seconds .. so it will blink permanently while the vrrp interface has running status ..

will that be possible? does it make sense? any other ideas?

How will i get this to work (example)?

Thanks!

Best regards,

Joerg

Simplest form:

:if ([/interface vrrp get 0 master]) do={
  :for step from=1 to=29 do={ 
    :led user-led=yes;
    :delay 1s; 
    :led user-led=no;
    :delay 1s; 
  }
}

Untested but hopefully that will get you started.