mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Filter: Allow setting the 'onlink' route attribute in filters
Add static route attribute to set onlink flag for route next hop. Can be used to build a dynamically routed IP-in-IP overlay network. Usage: ifname = "tunl0"; onlink = true; gw = bgp_next_hop;
This commit is contained in:
committed by
Ondrej Zajicek
parent
928a1cb034
commit
7144c9ca46
@@ -1816,6 +1816,14 @@ Common route attributes are:
|
||||
creation/removal. Zero is returned for routes with undefined outgoing
|
||||
interfaces. Read-only.
|
||||
|
||||
<tag><label id="rta-onlink"><m/bool/ onlink</tag>
|
||||
Onlink flag means that the specified nexthop is accessible on the
|
||||
interface regardless of IP prefixes configured on the interface.
|
||||
The attribute can be used to configure such next hops by first setting
|
||||
<cf/onlink = true/ and <cf/ifname/, and then setting <cf/gw/. Possible
|
||||
use case for setting this flag is to automatically build overlay IP-IP
|
||||
networks on linux.
|
||||
|
||||
<tag><label id="rta-weight"><m/int/ weight</tag>
|
||||
Multipath weight of route next hops. Valid values are 1-256. Reading
|
||||
returns the weight of the first next hop, setting it sets weights of all
|
||||
|
Reference in New Issue
Block a user