code: def delete_network(self, tenant_name, network):
          
          seg_id = network.segmentation_id
          network_info = {
              'organizationName': tenant_name,
              'partitionName': self._part_name,
              'segmentId': seg_id,
          }
          LOG.debug("Deleting %s network in DCNM.", network_info)
  
          res = self._delete_network(network_info)
          if res and res.status_code in self._resp_ok:
              LOG.debug("Deleted %s network in DCNM.", network_info)
          else:
              LOG.error("Failed to delete %s network in DCNM.",
                        network_info)
              raise dexc.DfaClientRequestFailed(reason=res)
docs: Delete network on the DCNM.
  
          :param tenant_name: name of tenant the network belongs to
          :param network: object that contains network parameters