def _delete_service_nwk(self, tenant_id, tenant_name, direc):
net_dict = {}<EOL>if direc == '<STR_LIT>':<EOL><INDENT>seg, vlan = self.get_in_seg_vlan(tenant_id)<EOL>net_dict['<STR_LIT>'] = None<EOL><DEDENT>else:<EOL><INDENT>seg, vlan = self.get_out_seg_vlan(tenant_id)<EOL>net_dict['<STR_LIT>'] = fw_const.SERV_PART_NAME<EOL><DEDENT>net_dict['<STR_LIT>'] = seg<EOL>net_dict['<STR_LIT>'] = vlan<EOL>net = utils.Dict2Obj(net_dict)<EOL>ret = True<EOL>try:<EOL><INDENT>self.dcnm_obj.delete_service_network(tenant_name, net)<EOL><DEDENT>except dexc.DfaClientRequestFailed:<EOL><INDENT>LOG.error("<STR_LIT>", direc)<EOL>ret = False<EOL><DEDENT>return ret<EOL>
Function to delete the service in network in DCNM.