For dual-stack clustered routers, the cluster surely can have two ocf:heartbeat:Route resources with destination=default, one with family=ip4, and another one with family=ip6. Current implementation does not allow this, as Route declares the destination parameter with unique=1:
https://github.com/ClusterLabs/resource-agents/blob/main/heartbeat/Route#L111
To reproduce:
# pcs resource create defgw6 Route destination=default device=uplink gateway=fe80::1 family=ip6
# pcs resource create defgw4 Route destination=default device=uplink gateway=10.0.0.1 family=ip4
Error: Value 'default' of option 'destination' is not unique across 'ocf:heartbeat:Route' resources. Following resources are configured with the same value of the instance attribute: 'defgw6', use --force to override
It is of course possible to use the --force option, which converts the above error to a warning, or to use 0.0.0.0/0 or ::/0 instead of one or both default values.
For dual-stack clustered routers, the cluster surely can have two
ocf:heartbeat:Routeresources withdestination=default, one withfamily=ip4, and another one withfamily=ip6. Current implementation does not allow this, asRoutedeclares thedestinationparameter withunique=1:https://github.com/ClusterLabs/resource-agents/blob/main/heartbeat/Route#L111
To reproduce:
It is of course possible to use the
--forceoption, which converts the above error to a warning, or to use0.0.0.0/0or::/0instead of one or bothdefaultvalues.