Hi,
We would like the ability to construct route maps to selectively apply an administrative distance to prefixes we receive. OSPF installs routes with a distance of 110 by default whilst BGP uses a default distance of 200. We have enabled MPLS label distribution and can subsequently install prefixes which target remote exits from our network.
Herewith a simple example:
VyOS configured to use OSPF as the interior gateway protocol (igp) to install a default gateway via directly connected next hop. OSPF only distributes loop back addresses and the network paths necessary to reach them, the default gateway subsequently has an administrative distance of 110. MPLS labels are exchanged via LDP so we wish to distribute additional default gateways via BGP targeting recursive next-hops where MPLS labels will then deliver those packets through the network to those remote gateways.
We would essentially like to either change the OSPF distance, only for the default gateway, from 110 to 210 so that the BGP default gateway takes precedence or reduce the BGP default gateway distance to 100.
FRRouting natively supports route-map rules that 'set distance' so it was trivial to enable this in VyOS. Opening the request so that it can be tied to a proposed patch.
Regards
David Herselman