'is ospf nexthop change'

def is_nexthop_change(self):

    if (not self.ospf_info):
        return True
    for nexthop in self.ospf_info['nexthops']:
        if (nexthop['ipAddress'] == self.nexthop_addr):
            if (nexthop['weight'] == self.nexthop_weight):
                return False
            else:
                return True
    return True
