ensure ipv4 and ipv6 are update only if network is available + migrate to new rspec syntax