Hi checho88,
Thank you for posting your sample code, it makes the issue much easier to diagnose. The quick answer is that the OFPMP_AGGREGATE message type is not something that is currently supported by the HPE VAN libraries. If it was supported, you'd use code like this:
OfmMutableMultipartRequest req =
(OfmMutableMultipartRequest) MessageFactory.create(PV, MessageType.MULTIPART_REQUEST);
req.type(MultipartType.AGGREGATE);
MultipartBody body = MpBodyFactory.createRequestBody(PV, MultipartType.AGGREGATE);
// ... fill in body contents
req.body(body);The MpBodyFactory.createRequestBody() method will throw a NotYetImplementedException to indicate that the specific multipart type (AGGREGATE) is not yet implemented. We do support all other multi-part types.
It sounds like this functionality is needed, so your only option would be to perform the aggregation in your module's manager. Are you wanting to use aggregation for coding convenience (ie: only gathering the data you need, nothing more), or do you think you'll need it for scaling efficiency (ie: gathering stats on thousands of flows)?