]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Nest: Read Babel metric as IGP metric
authorJames Lu <james@overdrivenetworks.com>
Tue, 29 Dec 2020 01:23:54 +0000 (02:23 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 29 Dec 2020 01:25:21 +0000 (02:25 +0100)
(Minor syntactic changes by committer)

nest/rt-table.c

index 23cbe0f9100ae9278cd45b20614a3b54b6c3bded..298320d917a10ecd4ef4f33e1e8c5692638da7f8 100644 (file)
@@ -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;