Someone has tried Mininet and NFV(Network Function Virtualization)?
Specifically running hosts, switches and VNFs(Virtual Network Function) on a Mininet network.
The idea is that all the traffic from a host-source to a host-destination pass through a VNF (can be a generic network function) before reach the destination.