Number of nexthops are not calculated properly
(were being calculated x-1 always) because of
wrong initial value resulting in alarm not getting
generated for the check when number of RDs are
less than number of nexthops.
Change-Id: Ie6875c95c42ab285fde765bae50b8f0e62a604a4
Signed-off-by: eswanit <swati.udhavrao.niture@ericsson.com>
String nextHop = route.getNexthop().stringValue();
List<String> nextHopList = new ArrayList<>();
nextHopList.add(nextHop);
- int nbNextHops = 0;
+ int nbNextHops = 1;
for (Routes routeTmp : routeList) {
String routeDest = routeTmp.getDestination().stringValue();
if (!destination.equals(routeDest)) {