add when condition for network.yml