The content of the invention
In view of the above problems, the present invention proposes the one kind for overcoming above mentioned problem or solving the above problems at least in part
VNF bags and its image file delet method quoted and equipment.
For this purpose, in a first aspect, the present invention proposes a kind of VNF bags and image file delet method of its reference,
S101, the VNF bag titles according to corresponding to the first mark VNFP_id, search the image file for including the VNF bag titles in content
Record B;
If S102, image file record B are not sky, in database, being deleted from image file record B content should
VNF bag titles;
S103, inquiry database obtain the image file M not quoted by any VNF bags, inquire about image file M in database
Whether it has been instantiated, if having instantiated, according to the second of the image file M mark Imgae_file_id inquiry examples
Mirror image N, delete the mirror image N of instantiation, and delete corresponding records of the mirror image N in database of instantiation;
S104, inquiry database obtain image file M address, and image file M is deleted according to image file M address,
And delete image file M corresponding records in database.
Optionally, the VNF bag titles in step according to corresponding to the first mark VNFP_id, search in content and include the VNF
Before the image file record B of bag title, in addition to:
Receive and delete instruction, delete in instruction comprising the first mark VNFP_id for indicating VNF bags to be deleted;
According to the state of the first corresponding VNF bags of mark VNFP_id inquiries;
If the state of VNF bags is Disable, the VNFD records A according to corresponding to being to look for the first mark VNFP_id;
Whether the VNF according to corresponding to VNFD records the first mark of A confirmations VNFP_id has instantiated;
It is corresponding according to the first mark VNFP_id inquiries if VNF bags corresponding to the first mark VNFP_id are not instantiated
The address of VNF bags;
Delete the VNF bags indicated by the address of VNF bags.
Optionally, the step inquiry database obtains the image file M not quoted by any VNF bags, inquires about database
Whether middle image file M has been instantiated, including:
Image file information table is inquired about, obtains the image file M VIM name list fields issued, if the field
Value is not sky, represents that image file corresponding to this record has instantiated;
The step is deleted according to the mirror image N of the second of the image file M mark Imgae_file_id inquiry examples
The mirror image N of instantiation, including:
Mirror Info table is inquired about, the record C that association mirror image field value is the second mark Imgae_file_id is obtained, records C
It is the record corresponding to the mirror image N of instantiation;According to the value that URI field of the mirror image in VIM is indicated in record C, delete real
The mirror image N of exampleization.
Optionally, it is described delete instantiation mirror image N database corresponding record, including:
Delete records of the mirror image N of instantiation in the Mirror Info table of database;
Deletion image file M corresponding records in database, including:
Delete records of the image file M in database in image file information table.
Optionally, in the deletion image file M in database after corresponding record, in addition to:
Show the deletion action result to image file M and/or the mirror image N of instantiation.
Optionally, in the deletion image file M in database after corresponding record, in addition to:
Delete the VNFD records of the VNF bags corresponding to the first mark VNFP_id.
Second aspect, the present invention provide a kind of computer-readable recording medium, are stored thereon with computer program, the program
The step of as above any methods described is realized when being executed by processor.
The third aspect, the present invention provide a kind of computer equipment, including memory, processor and are stored in the storage
As above any institute is realized on device and the computer program that can perform on the processor, during the computing device described program
The step of stating method.
As shown from the above technical solution, the present invention of the invention is by designing a series of logic judgment and processing step,
Operator is realized while VNF bags are deleted, all image files that system can be quoted automatically are deleted in the lump, greatly letter
Change manual operation process, improve treatment effeciency, and various artificial judgments and operational error during can reducing.
Above it is to provide the simplified summary of the understanding to some aspects of the present invention.This part neither the present invention and
The detailed statement of its various embodiment is nor the statement of exhaustion.It is both not used in identification the present invention important or key feature or
Do not limit the scope of the present invention, but the selected principle of the present invention provided with a kind of reduced form, as to it is given below more
The brief introduction specifically described.It should be appreciated that either alone or in combination using one for being set forth above or being detailed below or
Multiple features, other embodiments of the invention are also possible.
Embodiment
The present invention is described below in conjunction with exemplary communication system.
Herein by taking the database comprising following table structure as an example, illustrate the application is how to obtain corresponding data, but
It is those skilled in the art, it should be understood that target data can also be other table structures or be stored in different databases that it also can
Realize equivalent effect.
In one embodiment of the invention, table 1- tables 4 are included in database, wherein, table 1 is a kind of possible for remembering
The table structure of VNF package informatins is recorded, table 2 is a kind of possible table structure for being used to record VNFD information, and table 3 is a kind of possible use
In the table structure of record image file information;Table 4 is a kind of possible table structure for being used to record image instance information.
In embodiment, for convenience, the Int_ID fields or the field of table 1 are represented for example with VNF.Int_ID
Value, Image_File.Vendor represent image file supplier's field or the field value.
Table 1, VNF package informatin tables
Attribute Chinese name |
Attribute English name |
Field type |
System unique identifier |
Int_ID |
Integer |
VNF bag titles |
Name |
Character string |
Creation time |
Created_At |
Time type |
Whether image file is included |
Is_Image |
Boolean type |
VNF bags URL |
URL_Address |
Character string |
State |
Status |
Enumerate |
Table 2, VNFD information tables
Attribute Chinese name |
Attribute English name |
Field type |
System unique identifier |
Int_ID |
Integer |
Network element ID |
Product |
Character string |
VNFD file names |
Name |
Character string |
Provider |
Vendor |
Character string |
Network element version |
Version |
Character string |
Software version |
VNF_Version |
Character string |
The VNF bags at place |
VNF_Package_ID |
Integer |
The proprietary spreading parameters of VNF |
Extension |
Character string |
The image file title of reference |
Ref_Image_File_Name |
Character string |
The image file URL of reference |
Ref_Image_File_Url |
Character string |
Table 3, Image_File information tables
Table 4, Image_Instance information tables
Attribute Chinese name |
Attribute English name |
Field type |
System unique identifier |
Int_ID |
Integer |
Title |
Name |
Character string |
The image file of association |
Image_File_ID |
Integer |
Affiliated VIM |
VIM_ID |
Integer |
ID of the mirror image in VIM |
Image_Instance_ID |
Character string |
Mirrored state |
Status |
Enumerate |
Creation time |
Created_At |
Time type |
Renewal time |
Updated_At |
Time type |
Mirror image size (M) |
Image_Size |
Numeral |
URI of the mirror image in VIM |
Self |
Character string |
The VNFR information tables of table 5
VNF.Status (state), shows VNF package current state, and the value of the parameter can for example include
Enabled (activation) and disabled (un-activation).If the parameter value is enabled, show that the VNF package can be with
Being used, the parameter in the record information of the VNF package can be changed, if the parameter value is disabled, table
The bright VNFpackage can not be used, and the parameter in the record information of the VNFpackage can not be changed.Image instance
It is present in VIM, it is according to caused by image file, and image instance herein is also referred to as mirror image.
For this purpose, the present invention proposes a kind of VNF bags and its image file delet method quoted, including step:
S101, the VNF bag titles according to corresponding to the first mark VNFP_id, search and the VNF bag titles are included in content
Image file records B;
If S102, image file record B are not sky, in database, being deleted from image file record B content should
VNF bag titles;
S103, inquiry database obtain the image file M not quoted by any VNF bags, inquire about image file M in database
Whether it has been instantiated, if having instantiated, according to the second of the image file M mark Imgae_file_id inquiry examples
Mirror image N, delete the mirror image N of instantiation, and delete corresponding records of the mirror image N in database of instantiation;
S104, inquiry database obtain image file M address, and image file M is deleted according to image file M address,
And delete image file M corresponding records in database.
Image file M can be the multiple image files of acute pyogenic infection of finger tip rather than one, and the mirror image N similarly instantiated similarly can be with
It is the multiple image files of acute pyogenic infection of finger tip rather than one.
Step S101 includes, according to the first mark VNFP_id, VNF.Int_ID in VNF package informatin tables being searched in database
Value be equal to first mark VNFP_id record, the VNF.Name of record value is corresponding to the first mark VNFP_id
VNF bag titles.S101 is select VNF.Name from table VNF where VNF.Int_ID=VNFP_id.
In one embodiment of the invention, the image file of VNF bags association can by following method, be obtained:Search
In VNFD information tables, VNFD.VNF_Package_ID is equal to VNFP_id record, in the result of lookup, obtains
VNFD.Ref_Image_File_Name value, the value are the Image_ of the cited image file of VNF bags corresponding to VNFP_id
File.Int_ID set.Image_File information tables are inquired about according to the VNFD.Ref_Image_File_Name values of acquisition, obtained
Obtain the record of the image file related to above-mentioned VNF bags.And by Image_File.Vnf_Package_Name corresponding to the record
Field is updated, i.e., above-mentioned VNF bags title, the value are deleted in the Image_File.Vnf_Package_Name fields of the record
Indicate that image file corresponding to the record is not quoted by the VNF bags.
In one embodiment of the invention, if VNF bag titles are unique in NVFO, following method can also be passed through
Obtain the image file of VNF bags association:The VNF bag titles obtained according to searching, Image_File information tables are searched, obtained
Image_File.Vnf_Package_Name, which is included, states the records of VNF bag titles, and by Image_ corresponding to the record
The VNF bag titles are deleted in File.Vnf_Package_Name, or are set to other values, the value indicates mirror image corresponding to the record
File is not quoted by the VNF bags.That is S102 includes database and performs update table Image_File set
Image_File.Vnf_Package_Name=" " where Image_File.Vnf_Package_Name like VNF bag names
Claim;
With reference to the embodiment with above-mentioned database table structure, illustrate step S103:The step inquiry database obtains
The image file M not quoted by any VNF bags, including inquiry Image_File information tables, obtain Image_File.Vnf_
Package_Name value indicates the record that the image file is not quoted by any VNF bags.If Image_File.Vnf_
Package_Name value is not sky, then illustrates image file also cited in other VNF bags, it is impossible to delete.The record is
Image file records B.That is S102 also includes database and performs select (Image_File.Int_ID, Image_File.VIM_
Name, Image_File.Image_File_Ref) from table Image_File where Image_File.Vnf_
Package_Name like " ", the sentence obtain image file record B;
Judge that whether be instantiated can be by searching VNFD information tables by image file M corresponding to image file record B
In, VNFD records corresponding with VNFP_id, should if Query Result is not sky according to record queries VNFR information tables
VNF bags corresponding to VNFP_id are to be instantiated.
If image file record B Image_File.VIM_Name value is not sky, recording B according to image file searches
Image_Instance information tables, that is, inquire about in Image_Instance information tables, Image_Instance.Image_File_
ID is equal to the record of image file record B Image_File.Int_ID values, and the record of acquisition is the mirror image N of corresponding instance
Record, according to the Image_instance.Self of the record of acquisition value call NFVO relevant interfaces delete these into VIM
Designated mirror.
It is determined that image file record B Image_File.VIM_Name for sky, or image file record B Image_
File.VIM_Name is not sky, but after the image instance and the corresponding record of image instance in VIM corresponding to having deleted,
Then according to corresponding to image file records B Image_File.Image_File_Ref values deletion in VNF bags or outside NVF bags
Image file.Image file record B Image_File.Int_ID is above-mentioned second mark Imgae_file_id.
Finally according to corresponding to VNF package informatin tables find the first mark VNFP_id VNF bags URL addresses, so as to according to this
Delete VNF bags in address, it is to be appreciated that the address of VNF bags can have been obtained according to S101, those skilled in the art can be
Deleted in either step after S101.
The present invention realizes operator and is deleting the same of VNF bags by designing a series of logic judgment and processing step
When, all image files that system can be quoted automatically are deleted in the lump, greatly simplify manual operation process, improve processing
Efficiency, and various artificial judgments and operational error during can reducing.
The first above-mentioned mark VNFP_id is obtained after instruction is deleted in reception, is included in deletion instruction and is indicated to wait to delete
First mark VNFP_id of the VNF bags removed;
After deletion instruction is received, or after inquiry VNF bag-like state is Disable, it is true to record A always according to VNFD
Whether VNF corresponding to recognizing the first mark VNFP_id has instantiated;
It is corresponding according to the first mark VNFP_id inquiries if VNF bags corresponding to the first mark VNFP_id are not instantiated
The address of VNF bags;
Delete the VNF bags indicated by the address of VNF bags.
Whether VNF corresponding to the first mark VNFP_id has instantiated;Including:Inquiry is obtained in VNFD tables
VNFD.VNF_Package_ID=VNFP_id record, and the record according to VNFD.id to VNFR tables.If record can be found
Then VNF corresponding to the VNFP_id is to have instantiated, and does not allow now to delete the VNF bags.
It is appreciated that judge VNF bag-like state for Disable and judge VNF bags whether be instantiated be can be simultaneously
Perform, or substep order performs, but execution sequence has no effect on the result for whether deleting VNF bags, i.e., it is only full at the same time
When sufficient VNF bag-like state is that Disable and VNF bags are not instantiated, the operation for deleting VNF bags is just performed.
In some embodiments of the invention, in the mirror image N for deleting instantiation in the corresponding record of database, bag
Include:
Records of the mirror image N of instantiation in the Mirror Info table of database is deleted, that is, is deleted in image file information table
Image_Instance.Int_ID records with image file N identicals;
Deletion image file M corresponding records in database, including:
Corresponding records of the image file M in database in image file information table is deleted, that is, deletes image file letter
Image_File.Int_ID in table is ceased to record with image file M identicals.
In the deletion image file M in database after corresponding record, in addition to:
Show the deletion action result to image file M and/or the mirror image N of instantiation.To facilitate user's cross-check information.
In the deletion image file M in database after corresponding record, in addition to:
Delete the record in VNF information tables and VNFD information tables of the VNF bags corresponding to the first mark VNFP_id.
The present invention provides a kind of computer-readable recording medium, is stored thereon with computer program, the program is by processor
The step of as above any methods described is realized during execution.
The present invention provides a kind of computer equipment, including memory, processor and is stored on the memory and can
The computer program performed on the processor, as above any methods described is realized during the computing device described program
Step.
" at least one " used herein, " one or more " and "and/or" are open statements, when in use
It can be united and separate.For example, " at least one in A, B and C ", " at least one in A, B or C ", " in A, B and C
One or more " and " one or more of A, B or C " refer to only A, only B, only C, A and B together, A and C together,
B and C together or A, B and C together.
"one" entity of term refers to one or more entities.Thus term "one", " one or more " and " extremely
It is few one " it is herein defined as what is be interchangeable.It should also be noted that term " comprising ", "comprising" and " having " and can be mutual
Change what is used.
Term " automatic " used herein and its modification refer to not have when performing processing or operation tangible artificial
Any processing or operation completed in the case of input.However, the execution place is used when processing or operation is performed
The substantive or immaterial artificial input received before reason or operation, the processing or operation can also be automatic.If
Input influences how the processing or operation will be carried out, then is substantive depending on the artificial input.The processing or operation are not influenceed
The artificial input carried out is not to be taken as substantive.
Term " computer-readable medium " used herein refers to participate in providing instructions to any of computing device
Tangible storage device and/or transmission medium.Computer-readable medium can be in network transmission (such as SOAP) on ip networks
The serial command collection of coding.Such medium can take many forms, and including but not limited to non-volatile media, volatibility is situated between
Matter and transmission medium.Non-volatile media includes such as NVRAM or magnetically or optically disk.Volatile media includes such as main storage
Dynamic memory (such as RAM).The common form of computer-readable medium includes such as floppy disk, flexible disk, hard disk, tape or appointed
What its magnetizing mediums, magnet-optical medium, CD-ROM, any other optical medium, punched card, paper tape, any other there is hole shape pattern
Physical medium, RAM, PROM, EPROM, FLASH-EPROM, the solid state medium of such as storage card, any other storage chip or
Any other medium that cassette, the carrier wave described below or computer can be read.The digital file attachment of Email or
Other self-contained news files or archive set are considered as the distribution medium equivalent to tangible media.Work as computer-readable medium
When being configured as database, it should be appreciated that the database can be any kind of database, such as relational database, number of levels
According to storehouse, OODB Object Oriented Data Base etc..Correspondingly, it is believed that the present invention includes tangible media or distribution medium and existing skill
Equivalent known to art and the medium of following exploitation, the software implementation of the present invention is stored in these media.
Term used herein " it is determined that ", " computing " and " calculating " and its modification be interchangeable, and including appointing
Method, processing, mathematical operation or the technology of what type.
Term " module " used herein or " instrument " refer to hardware that is any of or developing later, software, consolidated
Part, artificial intelligence, fuzzy logic or be able to carry out the function related to the element hardware and software combination.In addition, though
The present invention is described with illustrative embodiments, it is to be understood that each aspect of the present invention can individually be claimed.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability includes, so that process, method, article or terminal device including a series of elements not only include those
Key element, but also the other element including being not expressly set out, or it is this process, method, article or end also to include
The intrinsic key element of end equipment.In the absence of more restrictions, limited by sentence " including ... " or " including ... "
Key element, it is not excluded that other key element in the process including the key element, method, article or terminal device also be present.This
Outside, herein, " being more than ", " being less than ", " exceeding " etc. are interpreted as not including this number;" more than ", " following ", " within " etc. understand
It is to include this number.
Although the various embodiments described above are described, those skilled in the art once know basic wound
The property made concept, then other change and modification can be made to these embodiments, so embodiments of the invention are the foregoing is only,
Not thereby the scope of patent protection of the present invention, every equivalent structure made using description of the invention and accompanying drawing content are limited
Or equivalent flow conversion, or other related technical areas are directly or indirectly used in, similarly it is included in the patent of the present invention
Within protection domain.