Notification on failover

I've got failover working and mwan3.user is being invoked but only on ifup, ifdown, connected and disconnected.

So right now when "wan" goes down I get a disconnected but when there is no ACTION when the failover to "wanb" occurs.

So is there an ACTION when a failover actually happens and I just missed it?

Switching to wanb happens right when you see ACTION=disconnected (no additional actions are logged).

You can check the current status using mwan3 policies and
iptables -t mangle -nvL mwan3_policy_<policy_name> .

The active interface in the policy should change as well as the firewall mark in the iptables rule.

# wan up
wan_to_wanb:
 wan (100%)

Chain mwan3_policy_wan_to_wanb (1 references)
 pkts bytes target     prot opt in     out     source               destination
   19  1694 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0x3f00 /* wan 2 2 */ MARK xset 0x100/0x3f00

# wan down
wan_to_wanb:
 wanb (100%)

Chain mwan3_policy_wan_to_wanb (1 references)
 pkts bytes target     prot opt in     out     source               destination
    2   139 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0x3f00 /* wanb 2 2 */ MARK xset 0x200/0x3f00

Thanks for the explanation!