def delete_service_network(self, tenant_name, network):
network_info = {}<EOL>part_name = network.part_name<EOL>if not part_name:<EOL><INDENT>part_name = self._part_name<EOL><DEDENT>seg_id = str(network.segmentation_id)<EOL>if network.vlan:<EOL><INDENT>vlan_id = str(network.vlan)<EOL>if network.mob_domain_name is not None:<EOL><INDENT>mob_domain_name = network.mob_domain_name<EOL><DEDENT>else:<EOL><INDENT>if self._default_md is None:<EOL><INDENT>self._set_default_mobility_domain()<EOL><DEDENT>mob_domain_name = self._default_md<EOL><DEDENT>network_info = {<EOL>'<STR_LIT>': tenant_name,<EOL>'<STR_LIT>': part_name,<EOL>'<STR_LIT>': mob_domain_name,<EOL>'<STR_LIT>': vlan_id,<EOL>'<STR_LIT>': seg_id,<EOL>}<EOL><DEDENT>else:<EOL><INDENT>network_info = {<EOL>'<STR_LIT>': tenant_name,<EOL>'<STR_LIT>': part_name,<EOL>'<STR_LIT>': seg_id,<EOL>}<EOL><DEDENT>LOG.debug("<STR_LIT>", network_info)<EOL>res = self._delete_network(network_info)<EOL>if res and res.status_code in self._resp_ok:<EOL><INDENT>LOG.debug("<STR_LIT>", network_info)<EOL><DEDENT>else:<EOL><INDENT>LOG.error("<STR_LIT>",<EOL>network_info)<EOL>raise dexc.DfaClientRequestFailed(reason=self._failure_msg(res))<EOL><DEDENT>
Delete service network on the DCNM.

        :param tenant_name: name of tenant the network belongs to
        :param network: object that contains network parameters