Changed logic in network.sls due to jinja namespace limitations.