#NEWLINE# def remove_subnet( self , subnet_id ) : #NEWLINE# #INDENT# 'Remove data structures for a given subnet.\n\n        IPAM-related data has no foreign key relationships to neutron subnet,\n        so removing ipam subnet manually\n        ' #NEWLINE# count = ipam_db_api . IpamSubnetManager . delete ( self . _context . session , subnet_id ) #NEWLINE# if ( count < 1 ) : #NEWLINE# #INDENT# LOG . error ( _LE ( 'IPAM subnet referenced to Neutron subnet %s does not exist' ) , subnet_id ) #NEWLINE# raise n_exc . SubnetNotFound ( subnet_id = subnet_id )