is safe set comments by script ?

Hello,

I did a check script that is working what I expected. It was convenient for me using [/ip address comment] storing some data for every address.

is this safe ? in logs appears address changed. is there any interruption in operating of that ip on comment change ? when address changes dynamic routes are deleted and then created also, but is this true for comment change ? if it is true, even for infinitely small time, for the script running every some seconds, it is unacceptable

thanks in advance

Personally, I have been using Netwatch for years with scripts to change almost all the WLAN configuration, on boards that I will not see for a long time, and remotely only the software behind them is reported. I’ve never had problems. During development it was imperative to adjust the time intervals.

thank you sharing your experience.

but I am a little afraid using comment field in something like this:

foreach i
:if someconditionistrue
[/ip address set [find address=$i] comment "yes"]

because it is the uplink. If the address $i becomes nonoperational, even for a very small amount of time, it is not acceptable, and I must find another way than using comments.

when comment changes it is reported to log.
it is more reasonable not affecting, but I would prefer a confirm by an expert that knowledges ROS by inside

From what you say, your script only modifies the comment, not the configuration. It shouldn’t give you problems. In any case, you can always set up virtual CHRs and simulate tests, much harder than in production, and see how it works.