def delete_network(self, name, tenant_id, subnet_id, net_id):
try:<EOL><INDENT>self.neutronclient.delete_subnet(subnet_id)<EOL><DEDENT>except Exception as exc:<EOL><INDENT>LOG.error("<STR_LIT>",<EOL>{'<STR_LIT>': subnet_id, '<STR_LIT>': str(exc)})<EOL>return<EOL><DEDENT>try:<EOL><INDENT>self.neutronclient.delete_network(net_id)<EOL><DEDENT>except Exception as exc:<EOL><INDENT>LOG.error("<STR_LIT>",<EOL>{'<STR_LIT:name>': name, '<STR_LIT>': str(exc)})<EOL><DEDENT>
Delete the openstack subnet and network.