setup: Fix KeyError: 'ipv4_secondaries' (issue #6274)