diff options
| author | G. Paul Ziemba <paulz@labn.net> | 2018-04-11 10:58:03 -0700 |
|---|---|---|
| committer | G. Paul Ziemba <paulz@labn.net> | 2018-04-11 12:14:27 -0700 |
| commit | 513bf8d6c987fea03cb75a2e533cf55ade538a85 (patch) | |
| tree | e7f767d1b5eb70b2ee1f3e2c3f7aec8cee4df99b /lib/command_graph.c | |
| parent | 08097fedd0da7d2e6183ab0adb8bc5b2175deac0 (diff) | |
bgpd: bugfix vpn->vrf leak: unicast-originated routes are local non-LSP
In general, routes leaked from the vpn rib to a vrf include any
labels that might have been attached to the vpn route. VRF routes
that have labels attached require a label-switched path and therefore
require nexthops with labels in order to be marked valid by the
nexthop-tracking logic.
However, some routes in the vpn RIB originated in vrfs local to this
router. Even though they may have labels, we must omit the labels
when leaking to a vrf because traffic using those resulting routes
will be carried by this router via IP routing and not label switching.
The nexthops of these routes do not need to indicate a label-switched
path, and thus the routes should be marked valid even when their nexthops
do not have labels.
This changeset omits labels from vpn->vrf leaked routes when the ultimate
source of the vpn route was a local vrf.
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
Diffstat (limited to 'lib/command_graph.c')
0 files changed, 0 insertions, 0 deletions
