looping over upstream hash in default template to assign upstream ips