Skip to content
Snippets Groups Projects
Commit bd16679d authored by Christoph Petrausch's avatar Christoph Petrausch
Browse files

compare also nexthop

parent 392543c6
No related branches found
No related tags found
No related merge requests found
......@@ -77,6 +77,14 @@ func (b *BGPPath) Compare(c *BGPPath) int8 {
return -1
}
if c.NextHop < b.NextHop {
return 1
}
if c.NextHop > b.NextHop {
return -1
}
return 0
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment