#NEWLINE# def _verify_ip( self , session , ip_address ) : #NEWLINE# #INDENT# 'Verify whether IP address can be allocated on subnet.\n\n        :param session: database session\n        :param ip_address: String representing the IP address to verify\n        :raises: InvalidInput, IpAddressAlreadyAllocated\n        ' #NEWLINE# if ( not self . subnet_manager . check_unique_allocation ( session , ip_address ) ) : #NEWLINE# #INDENT# raise ipam_exc . IpAddressAlreadyAllocated ( subnet_id = self . subnet_manager . neutron_id , ip = ip_address ) #NEWLINE# #UNINDENT# if ( not ipam_utils . check_subnet_ip ( self . _cidr , ip_address ) ) : #NEWLINE# #INDENT# raise ipam_exc . InvalidIpForSubnet ( subnet_id = self . subnet_manager . neutron_id , ip = ip_address )