sanitize network cfg