Hello.
I am trying to configure failover for my main and back-up connections. My main connecion (`eth0`) has a /32 IP address, while the back-up one (`eth1.11`) has a /24 IP.
Here my the configuration snippet:
```
failover {
route 0.0.0.0/0 {
next-hop xxx.xxx.167.0 {
check {
target 1.1.1.1
timeout 5
type icmp
}
interface eth0
metric 1
}
next-hop xxx.xxx.11.1 {
check {
target 1.0.0.1
timeout 5
type icmp
}
interface eth1.11
metric 254
}
}
}
```
The `xxx.xxx.167.0` is the gateway of the main connection, while `xxx.xxx.11.1` is the gateway of the back-up conection.
The IP address of the main connection is `45.xxx.xxx.xxx/32`.
The reported configuration does not work for `eth0`, failing to add the route complaining about invalid gateway.
I have also tried to add a static route for the `eth0` gateway:
```
static {
route xxx.xxx.167.0/32 {
interface eth0 {
}
}
}
````
but that does not fix the issue.
The only solution I have found, is to add the ```onlink``` option to the ```vyos-failover.py```: https://github.com/vyos/vyos-1x/blob/b7ff6f81e2bda8ff31436eced2be5be112bbd23f/src/helpers/vyos-failover.py#L210C85-L210C85