Only register attach/detach event handlers if the current vnet is vnet0.
Submitted by: Nikos Vassiliadis <nvass gmx.com>
Committed as part of D1309