/system routerboard usb power-reset duration=9999d

Hello, I’m having issue with ROS 7.6 regarding to

/system routerboard usb power-reset duration=9999d

In ROS 6 I was able to issue

/system routerboard usb power-reset duration=9999d
/system routerboard usb power-reset duration=0

and didn’t get any error, but in ROS 7 if I do the same, I’m getting “ERROR: reset in progress”
Moreover, entire script using this code is halted with the same error and even do { } on-error={} construction dosn’t help to catch the error.
And after duration=9999d (this is more than 27 years) the only way to reset USB in ROS 7 is to reboot router

This was a VERY USEFUL feature in ROS 6 and it’s broken in ROS 7.
Consider the following scenario:
primary link to internet is wired connection
backup link to internet is an LTE usb modem connection with pay-for-connection-per-day subscription (if you have your modem on during the day, you pay, next day - off – no payment)

Monitoring script can do
/system routerboard usb power-reset duration=9999d
to turn USB modem off until primary link goes down, after that the script issues /system routerboard usb power-reset duration=0 and LTE modem is up and running until primary link is back so monitoring script issues /system routerboard usb power-reset duration=9999d to turn modem off again, and so on…

But in ROS 7 this is no more possible.

Tested at least on two different devices running ROS 7.6

Any comments regarding this issue are appreciated.
Screenshot.jpg
Screenshot_1.jpg

I totally agree! There was a convenient function to disable and enable the USB port using the script, now it is broken =(
Please add the ability to cancel the reset process.

Stupid fix for the problem:

# Deactivate USB for a "normal" time
/system/routerboard/usb/ power-reset duration=604800s

# Reactivate USB
/system/routerboard/usb/ power-reset bus=1

[quote=dreamlinker77 post_id=1088113 time=1722162606 user_id=245447]
If I want to keep off an LTE modem for e.g. 10 days and I want to check if usb connection is working every 12 hours turning on usb and then turning it off again for 10 days
[/quote]

Maybe you have a “wrong” example.

What if you make the USB power-reset have a duration of 11:59:50, then you have a script that runs every 12:00 that “renews” the 11:59:50 duration?