Reset namespace stack entering an interface/router

Fix error handling when an illegal change is detected
Distinguish between ipv4 and ipv6 chains we created