Fix RibImpl global comparison by compare Ipv4
by comparing value instead of both obj
Change-Id: I922219085662baa7f99f77d1e4797c5d84f640b1
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
(cherry picked from commit
b9c848cd7bc1270ed64c36006d27c22a04e4ec54)
final AsNumber globalAs = global.getConfig().getAs();
final Ipv4Address globalRouterId = global.getConfig().getRouterId();
return this.afiSafi.containsAll(globalAfiSafi) && globalAfiSafi.containsAll(this.afiSafi)
- && globalAs.equals(this.asNumber) && globalRouterId.equals(this.routerId);
+ && globalAs.equals(this.asNumber) && globalRouterId.getValue().equals(this.routerId.getValue());
}
@Override