More basic config validation, and fix crash when no uplinks are configured. spotted by fgs