def get_ipaddress(self, name, retries=<NUM_LIT:3>, delay=<NUM_LIT:3>):
for rr in range(retries):<EOL><INDENT>instances = self._get_instances()<EOL>for instance in instances['<STR_LIT>']:<EOL><INDENT>if instance['<STR_LIT:name>'] == name:<EOL><INDENT>for network in instance['<STR_LIT>']:<EOL><INDENT>if network['<STR_LIT:name>'] == '<STR_LIT>':<EOL><INDENT>for subnet in network['<STR_LIT>']:<EOL><INDENT>if subnet['<STR_LIT:name>'] == '<STR_LIT>':<EOL><INDENT>if '<STR_LIT>' in subnet:<EOL><INDENT>return subnet['<STR_LIT>']<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>sleep(delay) <EOL><DEDENT>bot.warning('<STR_LIT>')<EOL>
get the ip_address of an inserted instance. Will try three times with
       delay to give the instance time to start up.

       Parameters
       ==========
       name: the name of the instance to get the ip address for.
       retries: the number of retries before giving up
       delay: the delay between retry

       Note from @vsoch: this function is pretty nasty.