Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 21565

General • Re: Problem: Removing routes to fast breaks routing table?

$
0
0
Your header (removing routes too fast) -- is problem I'm coping now.

But i'ts not your problem. Really, when i removing routes in script -- it hangs, routes in table duplicated (numbers duplicated). And it gets impossible to remove such duplicated records with error message
Code:
no such item (4)
Until I kill routing process (ROS7)
Code:
/routing/stats/process/kill 0
Bit it is only in ROS7. In ROS6 all ok.

Try add some logging in your scripts, like
/log info message="interface bound"
and for unbound respectively. And you will see the real problem.
Also, to see more, add error catching (: do {...} on-error={...}) with logging. In ROS6 there no way to find error message, in ROS7 it's possible to catch error message.

In my case (In ROS7 too) unbounding happens just before bounding in case of rebinding lease:
when host (android phone on wifi) leaving -- nothing happens until lease expired (there will be no problems).
But when host come back -- lease unbond and bound immediately. And it looks like scripts executing almost in parallel. So I solve it by add 1 second delay before bound code. This way running unbond code can finish.

Statistics: Posted by tarasfilatov — Mon Dec 30, 2024 10:54 pm



Viewing all articles
Browse latest Browse all 21565

Trending Articles