CN105591807A - Interface configuration migration method and device - Google Patents

Interface configuration migration method and device Download PDF

Info

Publication number
CN105591807A
CN105591807A CN201510651913.4A CN201510651913A CN105591807A CN 105591807 A CN105591807 A CN 105591807A CN 201510651913 A CN201510651913 A CN 201510651913A CN 105591807 A CN105591807 A CN 105591807A
Authority
CN
China
Prior art keywords
configuration
interface
order
network equipment
source interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510651913.4A
Other languages
Chinese (zh)
Other versions
CN105591807B (en
Inventor
王厚雪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201510651913.4A priority Critical patent/CN105591807B/en
Publication of CN105591807A publication Critical patent/CN105591807A/en
Application granted granted Critical
Publication of CN105591807B publication Critical patent/CN105591807B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses an interface configuration migration method and device. Through adoption of the technical scheme provided by the embodiment of the invention, the interface configuration migration method and device Interface configuration migration method and device are able to automatically configure and reset a source interface, add the non-default configuration of the source interface to an object interface according to the configuration order and realize configuration automatic migration operation in the process of interface switching, so that the manual configuration is replaced by automatic operation, the efficiencies of interface switching and configuration migration are improved; and moreover, the problems of missed matching and mismatching in the process of multi-configuration operation are avoided and the accuracy of configuration migration is improved by the operation mode of resetting the source interface in an inverted order and configuring the object interface in order in the condition of ensured configuration stability of the interface.

Description

A kind of interface configuration moving method and equipment
Technical field
The application relates to communication technical field, particularly a kind of interface configuration moving method and equipment.
Background technology
Under existing network system scene, between each physical network equipment, need with netting twine, optical module etc.Connected mode connects between physical interface each other, interconnects thereby realize.
And in some cases, the network user, keeper or other network control persons need to change accessThe physical interface of network, such as: when physical interface GE2/0 (abbreviation that GE is GigabitEthernet, tableShow gigabit Ethernet) when breaking down, concrete operating personnel need to be by netting twine, optical module againInsert another and do not have out of order interface, such as GE2/1.
In the process that new interface is accessed, except above-mentioned physical action is (by netting twine, optical modePiece reinserts GE2/1), also need to carry out corresponding software configuration operation and (will originally fit on GE2/0Configuration, move on GE2/1).
For prior art scheme, in network configuration transition process, corresponding software configuration operation is basicAll to lean on manual migration.
In the process that realizes the application, inventor finds that prior art at least exists following problem:
Existing manual migration network configuration, not only operating efficiency is low, and easily occurs mistake, networkThe migration of configuration is not simple duplicate copy, also relates to other business configuration of interface conjunctionn, such as baseIn the PBR of interface (PolicyBasedRouting, tactful route), should under PBR view, configure,Instead of configure under interface view, and manual configuration is exactly easy to miss these configurations. Also have and changeAfter interface, some list items on former interface, such as MAC (MediaAccessControl, media interviewsControl) address list, depend on the agreement automatic learning after interface activates, such operating process is consuming timeLong, affect efficiency.
Summary of the invention
The embodiment of the present application provides a kind of interface configuration moving method and equipment, solves existing interface configurationIn migration scheme, efficiency hand-manipulated is low, the problem that error rate is high.
For achieving the above object, the embodiment of the present application provides a kind of interface configuration moving method on the one hand,Described method comprises:
In the time that the network equipment receives interface configuration migration instruction, the described network equipment is joined according to described interfacePut migration instruction and determine source interface and the object interface that need to be configured migration;
The described network equipment judges that whether described source interface and object interface is compatible;
If judged result is yes, described network equipment inverted order travels through the institute of described source interface and object interfaceThere is configuration information, preserve all configuration informations of described source interface and object interface, and by described source interfaceDelete with all non-default configuration of object interface;
All configuration informations of the described source interface that described network equipment order traversal is preserved, and according to describedThe all non-default configuration of source interface, configures described object interface.
On the other hand, the embodiment of the present application also provides a kind of network equipment, comprising:
Determination module, in the time receiving interface configuration migration instruction, according to described interface configuration migrationSource interface and the object interface that need to be configured migration are determined in instruction;
Whether judge module, for judging the determined described source interface of described determination module and object interfaceCompatible;
Memory module, in the judged result of described judge module when being, inverted order travels through described source and connectsMouthful and all configuration informations of object interface, preserve all configuration informations of described source interface and object interface,And all non-default configuration of described source interface and object interface is deleted;
Configuration module, travels through all configuration informations of the source interface that described memory module preserves for order,And according to all non-default configuration of described source interface, configure described object interface.
Compared with prior art, the technical scheme that the embodiment of the present application proposes has the following advantages:
The technical scheme proposing by application the embodiment of the present application, can be configured source interface automaticallyReset, and add the non-default configuration of source interface to object interface according to configuration sequence, realized interfaceConfiguration Autonomic Migration Framework operation in handoff procedure, thereby, not only replace manual configuration by automatic operation,Improve interface and switched and configuration emigration efficiency, meanwhile, inverted order reset source interface, arranged in order object connectsThe mode of operation of mouth, in the situation that ensureing interface configuration stability, has avoided putting operating process at polygamyThe leakage of middle appearance is joined, and mispairing problem has improved the accuracy rate of configuration emigration.
Brief description of the drawings
The schematic flow sheet of a kind of interface configuration moving method that Fig. 1 proposes for the embodiment of the present application;
Fig. 2 is that the flow process of the configuration emigration processing procedure of a kind of source interface side of the embodiment of the present application proposition is shownIntention;
Fig. 3 is the flow process of the configuration emigration processing procedure of a kind of object interface side of the embodiment of the present application propositionSchematic diagram;
Interface configuration moving method in a kind of concrete application scenarios that Fig. 4 proposes for the embodiment of the present applicationSchematic flow sheet;
The structural representation of a kind of network equipment that Fig. 5 proposes for the embodiment of the present application.
Detailed description of the invention
As stated in the Background Art, if interface configuration work can be realized to automation, will greatly improve undoubtedlyTransport efficiency and reduce the probability that goes wrong, from existing practice, most network failure all andUser, keeper's configuration error is relevant, and especially at interface switching process, the craft of a large amount of configurations is movedMove configuration and caused higher error rate, and the inefficiency of configuration emigration, interface can further be causedSwitch not in time, thereby affect the normal operation of network.
In order to solve in existing interface configuration migration scheme, efficiency hand-manipulated is low, and what error rate was high asksTopic, the embodiment of the present application has proposed a kind of interface configuration moving method, moves by interface configuration automationTechnology, realize the configuration Autonomic Migration Framework of the network equipment, improve transport efficiency and stability, reduction systemRisk.
The flow process of a kind of interface configuration moving method proposing for the embodiment of the present application as shown in Figure 1, is shownIntention, the method specifically comprises the following steps:
Step S101, receive interface configuration when instruction migration, described network equipment basis when the network equipmentSource interface and the object interface that need to be configured migration are determined in described interface configuration migration instruction.
In concrete application scenarios, it is pointed out that before this step is carried out, at described netBefore network equipment receives interface configuration migration instruction, the technical scheme that the application proposes be each interface allSet up corresponding configuration record, specific implementation is as follows:
The described network equipment is that self included each interface creates corresponding configuration order list.
Wherein, in described configuration order list, recorded as current interface is directly with indirect according to configuration sequenceThe information of each configuration order of configuration, and whether preserve each configuration order be the mark of default configuration.
By above-mentioned configuration order list, the configuration sequence of the configuration order of the network equipment to each interface (firstRear order), configuration mode (directly configuration or indirect configuration), deploy content, and Configuration Type (isNo is default configuration) all carry out record, thus conveniently in subsequent operation, move.
Wherein, be directly configured to the directly configuration order of configuration of order management module of docking port, suchConfiguration order is directly configuration to the order management module of interface, participates in without other modules, and indirectlyConfiguration is the configuration order configuring to the order management module of interface by other modules, its triggering sideFormula can be directly other block configuration to be ordered accordingly, requires the order management of other modules to interfaceThe corresponding configuration order of block configuration, can be also that other modules are carried out while order accordingly, need to connectMouth increases some corresponding configuration orders, so, trigger other modules and enter to the order management module of interfaceThe operation of row configuration order.
Certainly, it should be noted that, above-mentioned configuration order list is a kind of concrete implementation,Except list, by being pre-created configuration order storehouse, and be each configuration order matching identification information,Thereby in the time of distribution configuration command, only record the modes such as corresponding identification information and also can be applied in the application'sIn technical scheme, under the prerequisite of configuring condition of configuration order that can record each interface, each accordinglyPlant technical scheme and can serve as the protection domain of the application's technical scheme, will not enumerate at this.
Step S102, the described network equipment judge that whether described source interface and object interface is compatible.
If judged result is yes, execution step S103;
If judged result is no, determine that two interfaces are not same kind interfaces, can not directly joinPut migration, so, cannot continue to carry out the scheme that the application proposes, finish the processing operation of this programme.
In actual processing scene, can in subsequent treatment, send alarm or information, for networkKeeper's reference, selects corresponding processing scheme, and such processing is no longer that the embodiment of the present application is paid close attention toScheme content, do not repeat them here.
Step S103, described network equipment inverted order travel through all configuration letters of described source interface and object interfaceBreath, preserves all configuration informations of described source interface and object interface, and described source interface and object is connectThe all non-default configuration of mouth is deleted.
It should be noted that, the processing of this step is carried out at source interface and object interface side respectively, mutualConfiguration information backup and delete procedure are independent of one another, still, if there is deleting failed situation, needTo be configured recovery to source interface and/or object interface simultaneously, configure rollback.
In concrete application scenarios, focus on former configuration order for the configuration process of source interface sideBackup and reset operation, as shown in Figure 2, a kind of configuration of source interface side proposing for the embodiment of the present applicationThe schematic flow sheet of migration process process, is described as follows:
Step S201, network equipment inverted order are obtained the configuration order of all configuration informations of described source interface.
The object of such inverted order processing is excellent to the configuration order of source interface rear configuration in layoutprocedureFirst back up and reset, reaching the first rear deletion of configuration, the effect of first deleting of rear configuration, because joinPut order and may produce association with other modules, the variation of operating sequence may cause operation failure,Or it is chaotic to produce operation, causes mistake.
Step S202, the described network equipment are preserved the described current configuration order of obtaining.
Step S203, the described network equipment judge whether the current configuration order of obtaining is default configuration.
If judged result is no, execution step S204;
If judged result is yes, without processing, the object of this step is that screening needs migrationConfiguration order, therefore, can directly perform step S205.
The basis for estimation of this step can be that the Configuration Type recording in aforesaid configuration order list (isNo is default configuration) information, can be also pre-configured default configuration recognition rule, such variationCan't affect the application's protection domain.
Step S204, the described network equipment are in the configuration order list of source interface, by described current obtainingConfiguration order delete.
Finding after non-default configuration order, will preserve its content by the mode of backup on the one handTo carry out follow-up migration (being the processing of step S202), meanwhile, also need to be in source interface side (for example,In configuration order list) this configuration order is deleted, thus source interface is configured to reset, completeAfter aforesaid operations, execution step S205.
Need in this step to be further pointed out that, due to problems such as configuration association and system performance constraints,Likely occur that configuration order deletes failed situation, if now proceed the migration of other configurations,Will inevitably cause the mistake of configuration emigration rear port running, therefore, need to enter current migration operationRow stops.
Meanwhile, because configuration emigration cannot continue, so, in order to ensure the normal operation of network system,Need at least return to migration network configuration before, therefore, according to the configuration order having backed up, rightThe configuration order of deleting is recovered, and completes following operation:
The operation of first, when the described network equipment, the described current configuration order of obtaining can not be deletedWhen merit, the described network equipment is according to the configuration information of the current described source interface of having preserved, to described sourceInterface configuration is recovered.
Then, after the described network equipment has recovered described source interface, described network equipment feedback interfaceConfiguration emigration failure. Now, if object interface has carried out or has completed configuration information backup and deletedProcessing, same according to the configuration information of the current object interface of having preserved, to described object interfaceConfiguration recovers, and the failure of feedback interface configuration emigration.
Thereby, remind the current configuration emigration of network manager to carry out, network manager can basisActual conditions determine it is to carry out migration again, change object interface, still keep present situation.
Step S205, the described network equipment judge in the configuration order list of described source interface current whether alsoThere is the configuration order not being acquired.
If judged result is yes, perform step S201, carry out the backup of next configuration order and answerBit manipulation;
If judged result is no, represent that all configuration orders of current source interface have all completedBackup and reset operation, thereby, the processing to described source interface can be finished.
Meanwhile, need to carry out equally locating of above-mentioned configuration information backup and reset at object interface sideReason, is not repeated. It should be noted that, source interface side and object interface side carry out above-mentionedConfiguration information backup and the processing resetting can be carried out simultaneously, also can be taken up in order of priority and carry out.
Step S104, all configuration informations of the described source interface that network equipment order traversal is preserved, and rootAccording to all non-default configuration of described source interface, configure described object interface.
For step S104, can as shown in Figure 3, be described as follows:
Step S301, network equipment order are obtained the configuration order of all configuration informations of described source interface.
The object of such sequential processes is non-according to the source interface of preserving in aforesaid step S103Default configuration, configures to object interface according to the sequencing of command down-transmitting, reaches the first elder generation of configurationAdd, the effect of the rear interpolation of rear configuration, ensures the layoutprocedure of object interface side and joining of source interface sidePut procedural order consistent, can not cause configuration error.
Step S302, the described network equipment judge whether the current configuration order of obtaining is default configuration.
If judged result is no, execution step S303,
If judged result is yes, execution step S304;
If default configuration, without processing, the object of this step is what screening need to be replacedConfiguration order.
The basis for estimation of this step can be that the Configuration Type recording in aforesaid configuration order list (isNo is default configuration) information, can be also pre-configured default configuration recognition rule, such variationCan't affect the application's protection domain.
Step S303, the described network equipment are configured to described object by the described current configuration order of obtaining and connectIn the configuration order list of mouth.
Finding after non-default configuration order, the network equipment will be configured to object interface, thereby, protectHold the source interface configuration consistency before object interface and migration; Wherein, be by other moulds for indirect configurationThe configuration order that piece configures to the order management module of interface.
Complete after aforesaid operations execution step S304.
Also whether step S304, the described network equipment judge in the configuration information of the described source interface of preservingThere is the not configuration information of configuration.
The processing intent of this step is to judge whether to have had or not the configuration information of migration, concreteJudgment mode can be whether the configuration order of the source interface preserved according to abovementioned steps is not configured in additionGive the configuration order of object interface
If had, perform step S301, next configuration order is processed;
If no, finish the processing to described object interface.
Need to further be pointed out that, in step S303, due to configuration association and system performance constraint etc., likely there is the situation of configuration order configuration failure in problem, if now proceed other configurationsAdd, will inevitably cause the mistake of configuration emigration rear port running, therefore, need to be to current migrationOperation stops.
Meanwhile, because configuration emigration cannot continue, so, in order to ensure the normal operation of network system,Need at least return to migration network configuration before, therefore, also need according to the configuration life having backed upOrder, recovers the configuration order having changed in the configuration of source interface and object interface, completeBecome following operation:
First, when the described current configuration order of obtaining is configured to described object interface by the described network equipmentConfiguration order list in operation when unsuccessful, the described network equipment according to current preserved described inThe configuration information of source interface and object interface, recovers the configuration of described source interface and object interface.
Then, after the described network equipment completes the configuration restore of described source interface and object interface, described inThe failure of network equipment feedback interface configuration emigration.
Thereby, remind the current configuration emigration of network manager to carry out, network manager can basisActual conditions determine it is to carry out migration again, change object interface, still keep present situation.
In concrete application scenarios, after all non-default configuration of described object interface has all been replaced,Described network equipment feedback interface configuration emigration success.
Compared with prior art, the technical scheme that the embodiment of the present application proposes has the following advantages:
The technical scheme proposing by application the embodiment of the present application, can be configured source interface automaticallyReset, and add the non-default configuration of source interface to object interface according to configuration sequence, realized interfaceConfiguration Autonomic Migration Framework operation in handoff procedure, thereby, not only replace manual configuration by automatic operation,Improve interface and switched and configuration emigration efficiency, meanwhile, inverted order reset source interface, arranged in order object connectsThe mode of operation of mouth, in the situation that ensureing interface configuration stability, has avoided putting operating process at polygamyThe leakage of middle appearance is joined, and mispairing problem has improved the accuracy rate of configuration emigration.
In order further to set forth the application's technological thought, existing in conjunction with concrete application scenarios, to the applicationTechnical scheme describe.
In the technical scheme proposing in the application, first need the each interface included for the network equipmentCreate corresponding configuration order list, all and this interface related order, all will add this interface institute toIn corresponding configuration order list, thereby record the configuration order information of each interface.
In concrete application scenarios, the embodiment of the present application provides the configuration order list of an interface A and showsFor example, under:
The interface command list of table 1 interface A
Each parameter in upper table is described as follows:
1, " sequence number ": represented the configuration sequence of the upper configuration order of interface A, sequence number value is less, configures suitableOrder is more preferential, i.e. mentioned " configuration sequence " in the related description of step S101.
2, " order ID ", has represented that the ID of the each configuration order configuring on interface A identifies, in order to districtNot different configuration orders.
3, " command parameter ", has represented the content information of the each configuration order configuring on interface A, in order toRepresent the deploy content of each configuration order docking port A, i.e. mentioned " joining in the related description of step S101Put content ".
4, " command module ", has represented the module of the relating module of the each configuration order configuring on interface AID。
5, " whether give tacit consent to ", i.e. mentioned " Configuration Type " in the related description of step S101.
6, " attribute ", i.e. mentioned " configuration mode " in the related description of step S101.
In upper table, the configuration order of command sequence number 1,2, is all direct in interface command administration moduleConfiguration, so what record in " attribute " hurdle is direct configuration, still, order 3 is at other mouldsBlock indirection configuration, also need record here, so what record in " attribute " hurdle is indirect configuration.Each configuration order need to be followed the transmitting sequence of configuration order in record.
In actual application scenarios, can be configured according to actual needs the tabular adjustment of command line,Such variation can't affect protection scope of the present invention.
And content in above-mentioned configuration order list is adjusted according to the variation of configuration order operation on interfaceWhole, such as the newly-increased tactful route of docking port A, need by the module I D of newly-increased order, order ID,The necessary informations such as command parameter are all recorded in the configuration order list of interface A.
Further, the configuration order list of having set up based on each interface, to follow-up interface shift behaviourDescribe as flow process, as shown in Figure 4, the concrete application scenarios of one proposing for the embodiment of the present applicationIn the schematic flow sheet of interface configuration moving method, the method specifically comprises the following steps:
Step S401, in the corresponding operating system view of the network equipment, receive operating side and configureInterface configuration migration order.
In concrete operating process, also may comprise the operating process such as management identity registration, checking, at thisRepeat no more, concrete operating side can be network manager, can be also concrete office terminal, thisThe variation of sample can't affect the application's protection domain.
In the situation that confirming operator legal identity, receive corresponding operational order, when operational orderWhen content is interface configuration migration order, triggering following operation.
Such as, when the operational order receiving is interfaceconfigurationswitchsource-intfWhen destination-intf, represent the configuration emigration of source-intf (sourceinterface, source interface)Upper to destination-intf (destinationinterface, object interface), thereby, trigger and connect accordinglyThe operation of mouth configuration emigration.
In concrete application scenarios, configuration emigration comprise interface configuration and all associated therewith itsThe migration operation of his configuration.
Step S402, system are configured inspection, confirm whether object interface can be used as moving of source interfaceMove object.
In actual operation, such confirmation operation is specially checking source interface and whether object interface holds concurrentlyThe proof procedure holding.
Concrete, if source interface and object interface are same kind interfaces, can be directly configured and moveMove, if source interface and object interface are dissimilar interfaces, need depending on concrete configuration, such as100000000 Ethernet interfaces and gigabit Ethernet interface, if only do route outlet configuration of IP address, also can joinPut migration.
Further, before migration configuration, also need the configuration of confirming object interface to be eliminated. AsThe configuration of fruit object interface has impact to operation, also can cause configuration emigration failure, and therefore, this is also thisThe part that step is verified.
If checking is not passed through, determine that two interfaces can not directly be configured migration, so, Wu FajiThe scheme that the continuous the application of execution proposes, finishes the processing operation of this programme.
If the verification passes, while confirming that object interface can be used as the migrating objects of source interface, give managementThe corresponding prompting of end feedback, then, further performs step S403.
The in the situation that of needs, can require management end to confirm whether carrying out subsequent operation. ConnecingIn situation about confirming, further perform step S403.
Start the operating process of deleting the non-default configuration of source interface.
The configuration order list of step S403, respectively inverted order ergodic source interface and object interface.
According to the reverse order of institute's record order in the configuration order list of source interface, process one by one eachConfiguration order.
It should be noted that, the configuration of inverted order traversal is because of interface configuration property relevant to other block configuration,There is sequencing requirement. After the configuration of joining first delete, may operation failure.
Step S404, judge whether the current configuration order of processing is default configuration.
If not, perform step S405;
If so, directly perform step S407, because default interface configuration is without operating, do not needWant follow-up deletion action.
The current configuration order of processing is preserved in step S405, backup, and after backup completes, in phaseIn the configuration order list of answering, delete corresponding configuration order record.
Step S406, judge whether success of deletion action.
If success, performs step S407;
If unsuccessful, need to recover source interface and object interface configuration, perform step S414. ThisEmbodiment is configured the example that is treated to of information back-up and reset simultaneously with source interface and object interface.
Step S407, judge the configuration of preserving in the configuration order list of current source interface and object interfaceOrder whether inverted order traversal is complete.
If so, perform step S408;
If not, return to step S403.
By aforesaid operations, complete arrangement reset to source interface and object interface and to configuration informationPreservation process, subsequent operation is enabled in object interface and issues the operating process of the non-default configuration of source interface.
The configuration order list of the source interface that step S408, order traversal have been preserved.
According to institute's record order in the configuration order list of source interface, process one by one each configuration order.
Step S409, judge whether the current configuration order of processing is default configuration.
If not, perform step S410;
If so, perform step S412.
Step S410, the described current configuration order of obtaining is configured to the configuration order of described object interfaceIn list.
By the processing of this step, complete the operation to the non-default configuration order of object interface configuration.
Step S411, judge whether configuration successful of configuration order.
If success, performs step S412;
If unsuccessful, perform step S414.
Step S412, judge current to the configuration information of preserved source interface whether order travel through complete.
If so, perform step S413;
If not, return to step S408, continue the processing of next configuration order.
Step S413, confirmation interface configuration are moved successfully.
Confirm that successful mode can be to successfully prompting of management end feedback migration, or other can makeManagement end is confirmed the mode that current configuration emigration has operated, and such variation can't affect the application'sProtection domain.
Operate by above-mentioned confirmation, can point out management end to be connected with interface (source interface) beforeNetwork to be connected to interface (object interface) after migration upper, so far, corresponding interface configuration was movedCheng Chenggong finishes.
Step S414, carry out the configuration rollback of source interface and object interface.
The state when interface configuration of source interface and object interface is returned to step S401.
Step S415, confirmation interface configuration are moved unsuccessfully.
Confirm that failed mode can be to the failed prompting of management end feedback migration, or other can makeManagement end confirms that current configuration emigration operates the mode that cannot complete, and such variation can't affect this ShenProtection domain please.
Compared with prior art, the technical scheme that the embodiment of the present application proposes has the following advantages:
The technical scheme proposing by application the embodiment of the present application, can be configured source interface automaticallyReset, and add the non-default configuration of source interface to object interface according to configuration sequence, realized interfaceConfiguration Autonomic Migration Framework operation in handoff procedure, thereby, not only replace manual configuration by automatic operation,Improve interface and switched and configuration emigration efficiency, meanwhile, inverted order reset source interface, arranged in order object connectsThe mode of operation of mouth, in the situation that ensureing interface configuration stability, has avoided putting operating process at polygamyThe leakage of middle appearance is joined, and mispairing problem has improved the accuracy rate of configuration emigration.
In order to realize the application's technical scheme, the application has also proposed a kind of network equipment, as Fig. 5 instituteShow, the structure of this network equipment comprises:
Determination module 51, in the time receiving interface configuration migration instruction, moves according to described interface configurationMove instruction and determine source interface and the object interface that need to be configured migration;
Judge module 52, for judging the determined described source interface of described determination module 51 and object interfaceWhether compatible;
Memory module 53, in the judged result of described judge module 52 when being, described in inverted order traversalAll configuration informations of source interface and object interface, all configurations of preserving described source interface and object interfaceInformation, and all non-default configuration of described source interface and object interface is deleted;
Configuration module 54, travels through all configurations of the source interface that described memory module 53 preserves for orderInformation, and according to all non-default configuration of described source interface, configure described object interface.
In concrete application scenarios, the above-mentioned network equipment also comprises:
List management module 55, is used to the included each interface of the described network equipment to create corresponding joiningPut command list (CLIST);
Wherein, in described configuration order list, recorded as current interface is directly with indirect according to configuration sequenceThe information of each configuration order of configuration, and whether preserve each configuration order be the mark of default configuration.
In concrete application scenarios, described memory module 53, also for:
When the operation that described memory module 53 is deleted the described current configuration order of obtaining unsuccessful,Time, according to the configuration information of the current described source interface of having preserved and/or object interface, described source is connectThe configuration of mouth and/or object interface recovers;
Or,
Described configuration module 54 is configured to the described current configuration order of obtaining the configuration of described object interfaceWhen operation in command list (CLIST) is unsuccessful, according to the current described source interface of having preserved and object interfaceConfiguration information, recovers the configuration of described source interface and object interface.
Further, this network equipment also comprises feedback module 56, specifically for:
After described configuration module 54 completes all configurations of described object interface, feedback interface configuration is movedMove into merit; Or,
After described memory module 53 completes the configuration restore of described source interface and object interface, feedback connectsThe failure of mouth configuration emigration.
Compared with prior art, the technical scheme that the embodiment of the present application proposes has the following advantages:
The technical scheme proposing by application the embodiment of the present application, can be configured source interface automaticallyReset, and add the non-default configuration of source interface to object interface according to configuration sequence, realized interfaceConfiguration Autonomic Migration Framework operation in handoff procedure, thereby, not only replace manual configuration by automatic operation,Improve interface and switched and configuration emigration efficiency, meanwhile, inverted order reset source interface, arranged in order object connectsThe mode of operation of mouth, in the situation that ensureing interface configuration stability, has avoided putting operating process at polygamyThe leakage of middle appearance is joined, and mispairing problem has improved the accuracy rate of configuration emigration.
Through the above description of the embodiments, those skilled in the art can be well understood to this ShenPlease realize by hardware, the mode that also can add necessary general hardware platform by software realizes.Based on such understanding, the application's technical scheme can embody with the form of software product, and this is softPart product can be stored in a non-volatile memory medium, and (can be CD-ROM, USB flash disk, moves hardDish etc.) in, comprise that some instructions are in order to make a computer equipment (can be personal computer, takeBusiness device, or the network equipment etc.) each implements the method described in scene to carry out the application.
It will be appreciated by those skilled in the art that accompanying drawing is a schematic diagram of preferably implementing scene, in accompanying drawingModule or flow process might not be implement the application necessary.
It will be appreciated by those skilled in the art that the module in the device of implementing in scene can be according to implementing sceneDescription is distributed in to be implemented in the device of scene, also can carry out respective change and be positioned at and be different from this enforcementIn one or more devices of scene. The module of above-mentioned enforcement scene can be merged into a module, also canFurther to split into multiple submodules.
Above-mentioned the application's sequence number, just to describing, does not represent the quality of implementing scene.
Disclosed is above only the application's several concrete enforcement scene, and still, the application is not limited toThis, the changes that any person skilled in the art can think of all should fall into the application's protection domain.

Claims (10)

1. an interface configuration moving method, is characterized in that, described method comprises:
In the time that the network equipment receives interface configuration migration instruction, the described network equipment is joined according to described interfacePut migration instruction and determine source interface and the object interface that need to be configured migration;
The described network equipment judges that whether described source interface and object interface is compatible;
If judged result is yes, described network equipment inverted order travels through the institute of described source interface and object interfaceThere is configuration information, preserve all configuration informations of described source interface and object interface, and by described source interfaceDelete with all non-default configuration of object interface;
All configuration informations of the described source interface that described network equipment order traversal is preserved, and according to describedThe all non-default configuration of source interface, configures described object interface.
2. the method for claim 1, is characterized in that, the described network equipment receives interface and joinsBefore putting migration instruction, also comprise:
The described network equipment is that self included each interface creates corresponding configuration order list;
Wherein, in described configuration order list, recorded as current interface is directly with indirect according to configuration sequenceThe information of each configuration order of configuration, and whether preserve each configuration order be the mark of default configuration.
3. method as claimed in claim 2, is characterized in that, described in described network equipment inverted order travels throughAll configuration informations of source interface and object interface, all configurations of preserving described source interface and object interfaceInformation, and all non-default configuration of described source interface and object interface is deleted, specifically comprise:
Steps A, the described network equipment respectively inverted order obtain the configuration order of described source interface and object interfaceIncluded configuration order in list;
Step B, the described network equipment are preserved the described current configuration order of obtaining;
Step C, the described network equipment judge whether the current configuration order of obtaining is default configuration, ifJudged result is no, execution step D, if judged result is yes, and execution step E;
Step D, the described network equipment are at the corresponding configuration order row of the described current configuration order of obtainingIn table, the described current configuration order of obtaining is deleted;
Step e, the described network equipment judge in the configuration order list of described source interface and object interface currentWhether also have the configuration order not being acquired, if judged result is yes, execution step A, if sentencedDisconnected result is no, finishes the processing to described source interface and object interface.
4. method as claimed in claim 3, is characterized in that, the described network equipment is described current obtainingIn the corresponding configuration order list of configuration order of getting, the described current configuration order of obtaining is deletedRemove, also comprise:
When the operation of the described current configuration order of obtaining being deleted when the described network equipment is unsuccessful,The described network equipment is according to the configuration information of the current described source interface of having preserved and/or object interface, rightThe configuration of described source interface and/or object interface recovers;
After the described network equipment completes the configuration restore of described source interface and/or object interface, described networkThe failure of equipment feedback interface configuration emigration.
5. method as claimed in claim 2, is characterized in that, described network equipment order traversal is preservedAll configuration informations of described source interface, and according to all non-default configuration of described source interface, configurationDescribed object interface, specifically comprises:
Steps A, described network equipment order is obtained the joining of all configuration informations of the described source interface of preservationPut order;
Step B, the described network equipment judge whether the current configuration order of obtaining is default configuration, ifJudged result is no, execution step C, if judged result is yes, and execution step D;
The described current configuration order of obtaining is configured to described object interface by step C, the described network equipmentConfiguration order list in;
Step D, the described network equipment judge in the configuration information of the described source interface of preserving whether also depositAt the configuration information not configuring, if had, perform step A, next configuration order is processed,If no, finish the processing to described object interface.
6. method as claimed in claim 5, is characterized in that, the described network equipment is by described current obtainingThe configuration order of getting is configured in the configuration order list of described object interface, also comprises:
When the described network equipment is configured to the described current configuration order of obtaining the configuration of described object interfaceWhen operation in command list (CLIST) is unsuccessful, the described network equipment is according to the current described source interface of having preservedWith the configuration information of object interface, the configuration of described source interface and object interface is recovered;
After the described network equipment completes the configuration restore of described source interface and described object interface, described netThe failure of network equipment feedback interface configuration emigration.
7. a network equipment, is characterized in that, comprising:
Determination module, in the time receiving interface configuration migration instruction, according to described interface configuration migrationSource interface and the object interface that need to be configured migration are determined in instruction;
Whether judge module, for judging the determined described source interface of described determination module and object interfaceCompatible;
Memory module, in the judged result of described judge module when being, inverted order travels through described source and connectsMouthful and all configuration informations of object interface, preserve all configuration informations of described source interface and object interface,And all non-default configuration of described source interface and object interface is deleted;
Configuration module, travels through all configuration informations of the source interface that described memory module preserves for order,And according to all non-default configuration of described source interface, configure described object interface.
8. the network equipment as claimed in claim 7, is characterized in that, also comprises:
List management module, is used to the included each interface of the described network equipment to create corresponding configurationCommand list (CLIST);
Wherein, in described configuration order list, recorded as current interface is directly with indirect according to configuration sequenceThe information of each configuration order of configuration, and whether preserve each configuration order be the mark of default configuration.
9. the network equipment as claimed in claim 7, is characterized in that, described memory module, also for:
When the operation of the described current configuration order of obtaining being deleted when described memory module is unsuccessful,
According to the configuration information of the current described source interface of having preserved and/or object interface, described source is connectThe configuration of mouth and/or object interface recovers:
Or,
When described configuration module is configured to the described current configuration order of obtaining the configuration of described object interfaceWhen operation in command list (CLIST) is unsuccessful, according to the current described source interface of having preserved and object interfaceConfiguration information, recovers the configuration of described source interface and object interface.
10. the network equipment as claimed in claim 9, is characterized in that, also comprises feedback module, toolBody is used for:
After described configuration module completes all configurations of described object interface, feedback interface configuration emigrationSuccess; Or,
After described memory module completes the configuration restore of described source interface and/or object interface, feedback connectsThe failure of mouth configuration emigration.
CN201510651913.4A 2015-10-10 2015-10-10 A kind of interface configuration emigration method and equipment Active CN105591807B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510651913.4A CN105591807B (en) 2015-10-10 2015-10-10 A kind of interface configuration emigration method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510651913.4A CN105591807B (en) 2015-10-10 2015-10-10 A kind of interface configuration emigration method and equipment

Publications (2)

Publication Number Publication Date
CN105591807A true CN105591807A (en) 2016-05-18
CN105591807B CN105591807B (en) 2019-05-07

Family

ID=55931066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510651913.4A Active CN105591807B (en) 2015-10-10 2015-10-10 A kind of interface configuration emigration method and equipment

Country Status (1)

Country Link
CN (1) CN105591807B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878052A (en) * 2016-12-21 2017-06-20 新华三技术有限公司 A kind of customer shift method and device
CN109344100A (en) * 2018-08-17 2019-02-15 北京奇虎科技有限公司 A kind of method and device of auxiliary system interface shift
CN109412846A (en) * 2018-10-11 2019-03-01 杭州迪普科技股份有限公司 A kind of configuration rollback method and device
CN110069471A (en) * 2017-12-07 2019-07-30 航天信息软件技术有限公司 A kind of moving method and system of data
CN112187515A (en) * 2020-09-03 2021-01-05 北京展心展力信息科技有限公司 Network resource configuration method and device, electronic equipment and readable storage medium
CN114124670A (en) * 2021-11-03 2022-03-01 中盈优创资讯科技有限公司 STN network equipment port migration method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178665A (en) * 2007-12-06 2008-05-14 华为技术有限公司 Method and apparatus for realizing configuring affair
CN101527652A (en) * 2009-04-21 2009-09-09 杭州华三通信技术有限公司 Method for resuming default interface configuration and device thereof
US20100058315A1 (en) * 2007-05-17 2010-03-04 Huawei Technologies Co., Ltd. Method and system for process upgrade
CN102368836A (en) * 2011-09-23 2012-03-07 烽火通信科技股份有限公司 Method for realizing flexible configuration transference between passive optical network (PON) ports
CN102369713A (en) * 2011-08-29 2012-03-07 华为技术有限公司 Automatic removing method and device of system configuration items
CN102760047A (en) * 2012-06-21 2012-10-31 杭州华三通信技术有限公司 Method for virtualizing migration of equipment port and port plate

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100058315A1 (en) * 2007-05-17 2010-03-04 Huawei Technologies Co., Ltd. Method and system for process upgrade
CN101178665A (en) * 2007-12-06 2008-05-14 华为技术有限公司 Method and apparatus for realizing configuring affair
CN101527652A (en) * 2009-04-21 2009-09-09 杭州华三通信技术有限公司 Method for resuming default interface configuration and device thereof
CN102369713A (en) * 2011-08-29 2012-03-07 华为技术有限公司 Automatic removing method and device of system configuration items
CN102368836A (en) * 2011-09-23 2012-03-07 烽火通信科技股份有限公司 Method for realizing flexible configuration transference between passive optical network (PON) ports
CN102760047A (en) * 2012-06-21 2012-10-31 杭州华三通信技术有限公司 Method for virtualizing migration of equipment port and port plate

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878052A (en) * 2016-12-21 2017-06-20 新华三技术有限公司 A kind of customer shift method and device
CN106878052B (en) * 2016-12-21 2020-04-03 新华三技术有限公司 User migration method and device
CN110069471A (en) * 2017-12-07 2019-07-30 航天信息软件技术有限公司 A kind of moving method and system of data
CN109344100A (en) * 2018-08-17 2019-02-15 北京奇虎科技有限公司 A kind of method and device of auxiliary system interface shift
CN109412846A (en) * 2018-10-11 2019-03-01 杭州迪普科技股份有限公司 A kind of configuration rollback method and device
CN109412846B (en) * 2018-10-11 2021-08-24 杭州迪普科技股份有限公司 Configuration rollback method and device
CN112187515A (en) * 2020-09-03 2021-01-05 北京展心展力信息科技有限公司 Network resource configuration method and device, electronic equipment and readable storage medium
CN114124670A (en) * 2021-11-03 2022-03-01 中盈优创资讯科技有限公司 STN network equipment port migration method and device

Also Published As

Publication number Publication date
CN105591807B (en) 2019-05-07

Similar Documents

Publication Publication Date Title
CN105591807A (en) Interface configuration migration method and device
US9559897B2 (en) Device ID assignment in a system of devices
US20180113680A1 (en) Enabling local development of microservices for hosting in remote orchestration engines
CN105407117B (en) The methods, devices and systems of distributed backup data
US20140059003A1 (en) Automated migration to a new target volume via merged bitmaps to maintain consistency
CN103761131B (en) A kind of many board part automatic update methods and system based on memory sharing
CN103984309A (en) Cigarette production system with disaster tolerance function and disaster tolerance exercise method thereof
CN103916320A (en) Method and device for message processing after cross-network relocation of VM device
CN105573788B (en) The method and apparatus of patch processing and the method and apparatus for generating patch
US10652326B2 (en) Pointing device router for smooth collaboration between devices
CN103516667A (en) System, method and apparatus used for safety information data disaster recovery backup
CN112395836B (en) Method and device for editing document, computer storage medium and terminal
CN104915462A (en) File management method and system
CN110633174A (en) Disaster recovery switching method, device and computer readable storage medium
US8990619B1 (en) Method and systems to perform a rolling stack upgrade
CN107924397A (en) A kind of file editing method and file editor
US8385359B2 (en) Information communication system, connection setting apparatus and non-transitory computer-readable storage medium storing connection setting program
US10693731B2 (en) Flow entry management method and device
CN104219084B (en) A kind of startup method and apparatus of board
US10897397B2 (en) Grammar for configuration validation
CN108846085A (en) A kind of ID generation method, device, electronic equipment and system
CN104022896A (en) Configuration management method and device and network equipment
CN105744010A (en) Method and device for realizing network address translation and access control list rule polymerization
CN101329688A (en) Database system and method for external backup
US9013822B2 (en) Creating a single library image from multiple independent tape libraries

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant