Commit 455c13dc authored by James Lu's avatar James Lu Committed by Ondrej Zajicek (work)
Browse files

Nest: Read Babel metric as IGP metric

(Minor syntactic changes by committer)
parent ea3c6c1a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2878,6 +2878,11 @@ rt_get_igp_metric(rte *rt)
  }
#endif

#ifdef CONFIG_BABEL
  if (a->source == RTS_BABEL)
    return rt->u.babel.metric;
#endif

  if (a->source == RTS_DEVICE)
    return 0;