Skip to content

Commit

Permalink
Merge "Best path for service chain route must be BGP or XMPP"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and Gerrit Code Review committed Oct 7, 2014
2 parents d4b170c + 9a21c4c commit e25bcb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bgp/routing-instance/service_chaining.cc
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ bool ServiceChain::Match(BgpServer *server, BgpTable *table,
!connected_table_unregistered() &&
is_connected_route(route)) {
if (!deleted) {
if (route->BestPath() == NULL || !route->BestPath()->IsFeasible()) {
if (!route->IsValid() ||
route->BestPath()->GetSource() != BgpPath::BGP_XMPP) {
deleted = true;
}
}
Expand Down

0 comments on commit e25bcb2

Please sign in to comment.