create tenant networks in fucntion