def _get_interface_ip(self, interface_name):
ios_cfg = self._get_running_config()<EOL>parse = HTParser(ios_cfg)<EOL>children = parse.find_children("<STR_LIT>" % interface_name)<EOL>for line in children:<EOL><INDENT>if '<STR_LIT>' in line:<EOL><INDENT>ip_address = line.strip().split('<STR_LIT:U+0020>')[<NUM_LIT:2>]<EOL>LOG.debug("<STR_LIT>", ip_address)<EOL>return ip_address<EOL><DEDENT><DEDENT>LOG.warning("<STR_LIT>", interface_name)<EOL>return None<EOL>
Get the ip address for an interface.

        :param interface_name: interface_name as a string
        :return: ip address of interface as a string