In Juniper, there is an option when creating route-maps to define the source of prefix. Example:
set policy-options policy-statement bgp-out term 1 from protocol static
set policy-options policy-statement bgp-out term 1 from protocol direct
set policy-options policy-statement bgp-out term 1 then accept
I’m just looking for a counterpart commands of that in VYOS. My goal is, before the export policy advertises a prefix, I want it to lookup at the route table (of that protocol) if it exists.
For instance, I want to advertise 0.0.0.0 to an iBGP peer, only if 0.0.0.0 exists in my BGP routing table.