Fix route selection IDs (#1890)

This commit is contained in:
Viktor Liu
2024-04-29 18:43:14 +02:00
committed by GitHub
parent fd26e989e3
commit e435e39158
3 changed files with 28 additions and 8 deletions

View File

@@ -107,6 +107,12 @@ func (r *Route) Copy() *Route {
// IsEqual compares one route with the other
func (r *Route) IsEqual(other *Route) bool {
if r == nil && other == nil {
return true
} else if r == nil || other == nil {
return false
}
return other.ID == r.ID &&
other.Description == r.Description &&
other.NetID == r.NetID &&