From 3137f4d825299b627d906d39497b9c2eedfefa37 Mon Sep 17 00:00:00 2001
From: Daniel Czerwonk <czerwonk@users.noreply.github.com>
Date: Fri, 11 May 2018 23:14:02 +0200
Subject: [PATCH] Update loc_rib.go

added fixme
---
 routingtable/locRIB/loc_rib.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/routingtable/locRIB/loc_rib.go b/routingtable/locRIB/loc_rib.go
index 73a6a2ff..6e030de3 100644
--- a/routingtable/locRIB/loc_rib.go
+++ b/routingtable/locRIB/loc_rib.go
@@ -51,7 +51,8 @@ func (a *LocRIB) AddPath(pfx net.Prefix, p *route.Path) error {
 		oldRoute = r.Copy()
 		routeExisted = true
 	}
-
+	
+	// FIXME: in AddPath() we assume that the same reference of route (r) is modified (not responsibility of locRIB). If this implementation changes in the future this code will break.
 	a.rt.AddPath(pfx, p)
 	if !routeExisted {
 		r = a.rt.Get(pfx)
-- 
GitLab