I am trying to reuse virtual networks(made of virtual linux network devices) across customers. I am facing issue where we are not able to find if there is any network packet from previous customer is stuck in any of virtual network devices queue or network stack? And If so how can we flush the devices without re-creation.
What I am trying to add some cool down period of say 1 second before re-use (But not sure If that would be sufficient in worst cases). Also I am trying to clear of NAT entries and all opened sockets for the Ip associated with IP.