Use updated pyroute2 API: * NSPopen import from the root * NDB instead of IPDB No logic changes, only translated obsoleted API calls. No code formatting.