CN105591807B - A kind of interface configuration emigration method and equipment - Google Patents
A kind of interface configuration emigration method and equipment Download PDFInfo
- Publication number
- CN105591807B CN105591807B CN201510651913.4A CN201510651913A CN105591807B CN 105591807 B CN105591807 B CN 105591807B CN 201510651913 A CN201510651913 A CN 201510651913A CN 105591807 B CN105591807 B CN 105591807B
- Authority
- CN
- China
- Prior art keywords
- configuration
- interface
- order
- network equipment
- source
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000012545 processing Methods 0.000 claims description 21
- 230000015654 memory Effects 0.000 claims description 14
- 230000008569 process Effects 0.000 abstract description 31
- 230000005012 migration Effects 0.000 abstract description 27
- 238000013508 migration Methods 0.000 abstract description 27
- 230000002567 autonomic effect Effects 0.000 abstract description 2
- 238000012790 confirmation Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 238000012217 deletion Methods 0.000 description 4
- 230000037430 deletion Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 230000004888 barrier function Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000000704 physical effect Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present application discloses a kind of interface configuration emigration method and equipment, pass through the technical solution proposed using the embodiment of the present application, arrangement reset can be carried out to source interface automatically, and the non-default configuration of source interface is added to purpose interface according to configuration sequence, realize the configuration Autonomic Migration Framework operation in interface switching process, to, not only by being automatically brought into operation replacement manual configuration, improve interface switching and configuration emigration efficiency, simultaneously, inverted order resets source interface, the mode of operation of the purpose that is arranged in order interface, in the case where guaranteeing interface configuration stability, avoid the leakage occurred in multi-configuration operating process, mismatch problems, improve the accuracy rate of configuration emigration.
Description
Technical field
This application involves field of communication technology, in particular to a kind of interface configuration emigration method and equipment.
Background technique
Under existing network system scene, needed between each physical network equipment with connection types such as cable, optical modules
Connection is established between mutual physical interface, is interconnected to realize.
And in some cases, the network user, administrator or other network controllers need replacing the object of access network
Interface is managed, such as: when event occurs in physical interface GE2/0 (GE is the abbreviation of Gigabit Ethernet, indicates gigabit Ethernet)
When barrier, specific operator, which needs cable, optical module reinserting another, does not have faulty interface, such as GE2/
1。
During being accessed to new interface, in addition to above-mentioned physical action (reinserts cable, optical module
GE2/1), it is also necessary to carry out corresponding software configuration operation (configuration that will originally fit on GE2/0, move on GE2/1).
For prior art, in network configuration transition process, corresponding software configuration operation substantially will armrest
Work migrates to complete.
During realizing the application, the inventor finds that the existing technology has at least the following problems:
Existing migration network configuration by hand, not only operating efficiency is low, but also is easy to appear mistake, the migration of network configuration
It is not simple duplicate copy, further relates to other business configurations of interface conjunctionn, such as the PBR (Policy based on interface
Based Routing, policybased routing), it should it configures under PBR view, rather than is configured under inter-face views, and manual configuration
It is exactly easy to miss these configurations.Also after more alias, some list items on former interface, such as MAC (Media Access
Control, media access control) address list, learn automatically dependent on the agreement after interface activation, such operating process consumption
When it is too long, influence efficiency.
Summary of the invention
The embodiment of the present application provides a kind of interface configuration emigration method and equipment, solves existing interface configuration emigration scheme
In, low efficiency hand-manipulated, the high problem of error rate.
In order to achieve the above objectives, on the one hand the embodiment of the present application provides a kind of interface configuration emigration method, the method
Include:
When the network equipment receives the instruction of interface configuration emigration, the network equipment refers to according to the interface configuration emigration
Show the source interface and purpose interface for determining and needing to carry out configuration emigration;
The network equipment judges whether the source interface and purpose interface are compatible with;
If it is judged that be it is yes, the network equipment inverted order traverses all with confidence of the source interface and purpose interface
Breath, saves all configuration informations of the source interface and purpose interface, and by all non-silent of the source interface and purpose interface
Recognize configuration to be deleted;
All configuration informations for the source interface that the network equipment order traversal saves, and according to the source interface
All non-default configurations configure the purpose interface.
On the other hand, the embodiment of the present application also provides a kind of network equipments, comprising:
Determining module, for indicating to determine according to the interface configuration emigration when receiving the instruction of interface configuration emigration
Need to carry out the source interface and purpose interface of configuration emigration;
Judgment module, for judging whether the source interface and purpose interface determined by the determining module are compatible with;
Memory module, for when the judgment result of the judgment module is yes, inverted order to traverse the source interface and purpose
All configuration informations of interface, save all configuration informations of the source interface and purpose interface, and by the source interface and mesh
All non-default configurations of interface deleted;
Configuration module, for all configuration informations for the source interface that memory module described in order traversal is saved, and according to
All non-default configurations of the source interface, configure the purpose interface.
Compared with prior art, the technical solution that the embodiment of the present application is proposed has the advantage that
By the technical solution proposed using the embodiment of the present application, arrangement reset can be carried out to source interface automatically, and
The non-default configuration of source interface is added to purpose interface according to configuration sequence, the configuration realized in interface switching process is automatic
Migration operation, thus, not only by being automatically brought into operation replacement manual configuration, interface switching and configuration emigration efficiency are improved, meanwhile,
Inverted order resets source interface, and the mode of operation of the purpose that is arranged in order interface is avoided in the case where guaranteeing interface configuration stability
The leakage occurred in multi-configuration operating process, mismatch problems improve the accuracy rate of configuration emigration.
Detailed description of the invention
A kind of flow diagram for interface configuration emigration method that Fig. 1 is proposed by the embodiment of the present application;
Fig. 2 is a kind of flow diagram of the configuration emigration treatment process for source interface side that the embodiment of the present application proposes;
Fig. 3 is a kind of flow diagram of the configuration emigration treatment process for purpose interface side that the embodiment of the present application proposes;
A kind of process for the interface configuration emigration method in concrete application scene that Fig. 4 is proposed by the embodiment of the present application is shown
It is intended to;
A kind of structural schematic diagram for network equipment that Fig. 5 is proposed by the embodiment of the present application.
Specific embodiment
As stated in the background art, it is automated if can realize interface configuration work, will undoubtedly greatly improve transport efficiency
The probability to go wrong with reduction, from the point of view of existing practice, configuration error of the most network failure all with user, administrator
Related, especially in interface switching process, the manual migration configuration largely configured results in higher error rate, and configuration is moved
The inefficiency of shifting can further result in interface switching not in time, to influence the normal operation of network.
In order to solve in existing interface configuration emigration scheme, low efficiency hand-manipulated, the high problem of error rate, the application
Embodiment proposes a kind of interface configuration emigration method, and the technology of automation migration is configured by interface, realizes the network equipment
Autonomic Migration Framework is configured, transport efficiency and stability are improved, reduces system risk.
As shown in Figure 1, a kind of flow diagram of the interface configuration emigration method proposed by the embodiment of the present application, the party
Method specifically includes the following steps:
Step S101, when the network equipment receives the instruction of interface configuration emigration, the network equipment is according to the interface
Configuration emigration instruction determines the source interface and purpose interface for needing to carry out configuration emigration.
In specific application scenarios, it should be pointed out that before the execution of this step, i.e., received in the network equipment
To before the instruction of interface configuration emigration, the technical solution that the application is proposed is that each interface all establishes corresponding configuration record,
Specific implementation is as follows:
The network equipment is that each interface included by itself creates corresponding configuration order list.
Wherein, had recorded in the configuration order list according to configuration sequence directly or indirectly configured for current interface it is each
The information of configuration order, and save each configuration order whether be default configuration mark.
By above-mentioned configuration order list, the network equipment is (successively suitable to the configuration sequence of the configuration order of each interface
Sequence), configuration mode (directly configuration or indirect configuration), configuration content and Configuration Type (whether being default configuration) all carry out
Record, so that convenient migrated in subsequent operation.
Wherein, the configuration order directly configured to the order management module of interface, such configuration order are directly configured to
It is the order management module for being directly allocated to interface, is participated in without other modules, and indirect configuration is then by other modules
The configuration order configured to the order management module of interface, triggering mode, which can be, directly configures accordingly other modules
Order, it is desirable that other modules configure corresponding configuration order to the order management module of interface, are also possible to the execution of other modules
When corresponding order, need to increase some corresponding configuration orders in interface, so, trigger order pipe of other modules to interface
Manage the operation that module carries out configuration order.
Certainly, it should be noted that above-mentioned configuration order list is a kind of concrete implementation mode, in addition to list it
It outside, by the way that configuration order library is pre-created, and is each configuration order matching identification information, to only remember in distribution configuration command
Recording the modes such as corresponding identification information can also apply in the technical solution of the application, in the configuration life for being able to record each interface
Under the premise of the configuring condition of order, corresponding various technical solutions all can serve as the protection scope of the technical solution of the application,
It will not enumerate herein.
Step S102, the described network equipment judges whether the source interface and purpose interface are compatible with.
If it is judged that being yes, execution step S103;
If it is judged that being no, it is determined that two interfaces are not same kind interfaces, cannot directly carry out configuration emigration, institute
Can not continue to execute the scheme of the application proposition, terminate the processing operation of this programme.
In actual processing scene, alarm or prompt information can be issued in subsequent processing, joined for network administrator
It examines, selects corresponding processing scheme, such processing is no longer the embodiment of the present application plan content of interest, no longer superfluous herein
It states.
Step S103, the described network equipment inverted order traverses all configuration informations of the source interface and purpose interface, saves
All configuration informations of the source interface and purpose interface, and by the source interface and purpose interface it is all it is non-default configure into
Row is deleted.
It should be noted that the processing of this step is executed in source interface and purpose interface side respectively, mutual configuration information
Backup and deletion process are independent of one another, still, if there is the case where failing is deleted, then need simultaneously to source interface and/or mesh
Interface carry out configuration recovery, i.e., configuration rollback.
In specific application scenarios, the backup of former configuration order is for the configuration design emphasis of source interface side and is answered
Bit manipulation, as shown in Fig. 2, the process signal of the configuration emigration treatment process for a kind of source interface side of the embodiment of the present application proposition
Figure, is described as follows:
Step S201, network equipment inverted order obtains the configuration order of all configuration informations of the source interface.
The purpose of such inverted order processing is preferentially to carry out the configuration order for being allocated to source interface after in configuration process
Backup and reset, reach the rear deletion first configured, the effect first deleted configured afterwards, because configuration order may be with other moulds
Block generates association, and the variation of operation order may result in operation failure, or generate operation confusion, causes mistake.
Step S202, the described network equipment saves the configuration order currently obtained.
Step S203, whether the configuration order that the described network equipment judgement currently obtains is default configuration.
If it is judged that being no, execution step S204;
If it is judged that be it is yes, then without being handled, the purpose of this step is to screen the configuration life for needing to migrate
It enables, therefore, can directly execute step S205.
The judgment basis of this step can be whether Configuration Type recorded in configuration order list above-mentioned (is default
Configuration) information, it is also possible to preconfigured default configuration recognition rule, it is such to change the protection that will not influence the application
Range.
Step S204, the described network equipment orders the configuration currently obtained in the configuration order list of source interface
Order is deleted.
After finding non-default configuration order, on the one hand its content is saved to carry out by way of backup
Subsequent migration (i.e. the processing of step S202), it is also desirable in source interface side (for example, in configuration order list) by the configuration
Order is deleted, to carry out arrangement reset to source interface, in doing so, executes step S205.
In this step it is further noted that the problems such as being limited due to configuration association and system operatio, it is possible to
There is the case where configuration order deletes failure, if continuing the migration of other configurations at this time, inevitably results in configuration and move
The mistake that interface operates after shifting, therefore, it is necessary to terminate to current migration operation.
Simultaneously as configuration emigration can not continue, then, in order to guarantee the normal operation of network system, need at least extensive
Therefore the multiple network configuration to before migration according to the configuration order having backed up, is restored the configuration order of deletion,
Complete operation below:
Firstly, when the operation that the network equipment deletes the configuration order currently obtained is unsuccessful, institute
The network equipment is stated according to the configuration information for the source interface being currently saved, source interface configuration is restored.
Then, after the completion of the network equipment restores the source interface, the network equipment feedback interface configuration emigration
Failure.At this point, if the processing that purpose interface had carried out or completed configuration information backup and deleted, also according to current
The configuration information for the purpose interface being saved restores purpose interface configuration, and feedback interface configuration emigration loses
It loses.
To which the configuration emigration for reminding network administrator current can not carry out, and network administrator can be according to the actual situation
Determination is to execute to migrate again, replaces purpose interface, is also to maintain status.
Step S205, the described network equipment judge in the configuration order list of the source interface it is current whether there is also not by
The configuration order of acquisition.
If it is judged that be it is yes, then follow the steps S201, carry out the backup of next configuration order and reset operation;
If it is judged that being no, then it represents that all configuration orders of current source interface all have been completed backup and answer
Bit manipulation, it is thus possible to terminate the processing to the source interface.
At the same time, also need to carry out above-mentioned processing configuration information backup and resetted in purpose interface side, herein
It is not repeated to illustrate.It should be noted that source interface side and purpose interface side carry out above-mentioned configuration information backup and reset
Processing can carry out simultaneously, can also be taken up in order of priority progress.
Step S104, all configuration informations for the source interface that network equipment order traversal saves, and according to the source
All non-default configurations of interface, configure the purpose interface.
It, can be as shown in figure 3, being described as follows for step S104:
Step S301, network equipment sequence obtains the configuration order of all configuration informations of the source interface.
The purpose of such sequential processes is to be matched according to the non-default of source interface saved in aforementioned step S103
It sets, is allocated to purpose interface according to the sequencing of command down-transmitting, reach the first addition first configured, the rear addition configured afterwards
Effect, guarantee purpose interface side configuration process and source interface side configuration process sequence consensus, configuration error will not be caused.
Step S302, whether the configuration order that the described network equipment judgement currently obtains is default configuration.
If it is judged that be no, execution step S303,
If it is judged that being yes, execution step S304;
If it is default configuration, then without being handled, the purpose of this step is to screen the configuration order for needing to replace.
The judgment basis of this step can be whether Configuration Type recorded in configuration order list above-mentioned (is default
Configuration) information, it is also possible to preconfigured default configuration recognition rule, it is such to change the protection that will not influence the application
Range.
Step S303, the configuration order currently obtained is configured to the configuration of the purpose interface by the described network equipment
In command list (CLIST).
After finding non-default configuration order, the network equipment is allocated to purpose interface, thus, keep purpose interface
With the source interface configuration consistency before migration;Wherein, for order management module that indirect configuration is by from other modules to interface
The configuration order configured.
In doing so, step S304 is executed.
Step S304, whether there is also do not match in the configuration information for the source interface that the described network equipment judgement is saved
The configuration information set.
The processing intent of this step is to judge whether to have or not the configuration information for completing migration, specific judgment mode
Whether the configuration order that can be the source interface saved according to abovementioned steps is not configured to the configuration life of purpose interface also
It enables
If so, thening follow the steps S301, next configuration order is handled;
If it is not, terminating the processing to the purpose interface.
It is further noted that in step S303, the problems such as limitation due to configuration association and system operatio, having can
The case where configuration order configuration failure can occur, if continuing the addition of other configurations at this time, inevitably result in configuration
The mistake that interface operates after migration, therefore, it is necessary to terminate to current migration operation.
Simultaneously as configuration emigration can not continue, then, in order to guarantee the normal operation of network system, need at least extensive
The multiple network configuration to before migration, therefore, it is also desirable to according to the configuration order having backed up, by source interface and purpose interface
It has occurred and that the configuration order of variation is restored in configuration, that is, completes operation below:
Firstly, when the network equipment orders the configuration that the configuration order currently obtained is configured to the purpose interface
When enabling the operation in list unsuccessful, the network equipment is matched according to the source interface and purpose interface being currently saved
Confidence breath, restores the configuration of the source interface and purpose interface.
Then, after the completion of the network equipment restores the configuration of the source interface and purpose interface, the network equipment
The failure of feedback interface configuration emigration.
To which the configuration emigration for reminding network administrator current can not carry out, and network administrator can be according to the actual situation
Determination is to execute to migrate again, replaces purpose interface, is also to maintain status.
In specific application scenarios, after the completion of all non-default configurations of the purpose interface are replaced, the net
The success of network equipment feedback interface configuration emigration.
Compared with prior art, the technical solution that the embodiment of the present application is proposed has the advantage that
By the technical solution proposed using the embodiment of the present application, arrangement reset can be carried out to source interface automatically, and
The non-default configuration of source interface is added to purpose interface according to configuration sequence, the configuration realized in interface switching process is automatic
Migration operation, thus, not only by being automatically brought into operation replacement manual configuration, interface switching and configuration emigration efficiency are improved, meanwhile,
Inverted order resets source interface, and the mode of operation of the purpose that is arranged in order interface is avoided in the case where guaranteeing interface configuration stability
The leakage occurred in multi-configuration operating process, mismatch problems improve the accuracy rate of configuration emigration.
In order to which the technical idea of the application is further described, now in conjunction with specific application scenarios, to the technical side of the application
Case is illustrated.
In the technical solution that the application is proposed, it is necessary first to be corresponded to for each interface creation included by the network equipment
Configuration order list, it is all with this interface related order, will be added in configuration order list corresponding to the interface,
To record the configuration order information of each interface.
In specific application scenarios, the configuration order list example that the embodiment of the present application provides an interface A is as follows:
The interface command list of 1 interface A of table
Each parameter in upper table is described as follows:
1, " serial number ": illustrating the configuration sequence of configuration order on interface A, and sequence number value is smaller, and configuration sequence is more preferential, i.e.,
" configuration sequence " mentioned in the related description of step S101.
2, " order ID " illustrates the ID mark of each configuration order configured on interface A, to distinguish different configurations
Order.
3, " command parameter " illustrates the content information of each configuration order configured on interface A, to indicate each configuration
The configuration content to interface A is ordered, i.e., " configuration content " mentioned in the related description of step S101.
4, " command module " illustrates the module I D of the relating module of each configuration order configured on interface A.
5, " whether default ", i.e. " Configuration Type " mentioned in the related description of step S101.
6, " attribute ", i.e. " configuration mode " mentioned in the related description of step S101.
In upper table, the configuration order of command sequence number 1,2 is directly configured in interface command management module, institute
With what is recorded in " attribute " column is directly to configure, and still, order 3 is in other module indirect configurations, it is also desirable to herein
Record, so, what is recorded in " attribute " column is indirect configuration.Each configuration order needs to follow configuration when record
The transmitting sequence of order.
In actual application scenarios, the adjustment of configuration order listings format can be carried out according to actual needs, it is such
Variation will not influence protection scope of the present invention.
And the content in above-mentioned configuration order list, it is adjusted according to the variation that configuration order on interface operates, such as
One policybased routing is increased newly to interface A, then is needed necessary informations such as the module I D of newly-increased order, order ID, command parameters all
It is recorded in the configuration order list of interface A.
Further, the configuration order list being had built up based on each interface, to subsequent interface shift operating process into
It goes and illustrates, as shown in figure 4, the interface configuration emigration method in a kind of concrete application scene proposed by the embodiment of the present application
Flow diagram, this method specifically includes the following steps:
Step S401, in the operating system view corresponding to the network equipment, the interface configuration that operating side is configured is received
Migration order.
In specific operating process, it is also possible to including operating process such as management identity registration, verifyings, details are not described herein,
Specific operating side can be network administrator, be also possible to specific management terminal, such variation will not influence this Shen
Protection scope please.
In the case where confirmation operation person's legal identity, corresponding operation instruction is received, when the content of operational order is to connect
When mouth configuration emigration order, triggering following operation.
For example, when the operational order received is interface configuration switch source-intf
When destination-intf, the configuration emigration of source-intf (source interface, source interface) is arrived in expression
On destination-intf (destination interface, purpose interface), thus, it triggers corresponding interface configuration and moves
Move operation.
In specific application scenarios, configuration emigration includes interface configuration and all other configurations associated therewith
Migration operation.
Step S402, system carries out configuration inspection, and whether confirmation purpose interface can be used as the migrating objects of source interface.
In actual operation, such confirmation operation is specially the verifying verifying source interface and purpose interface and whether being compatible with
Process.
Specifically, configuration emigration can be directly carried out, if source if source interface and purpose interface are same kind interfaces
Interface and purpose interface are different type interfaces, then need depending on concrete configuration, such as 100,000,000 Ethernet interfaces and gigabit Ethernet interface,
If only doing routing outlet configuration IP address, configuration emigration can also be carried out.
Further, before migration configuration, it is also necessary to confirm that the configuration of purpose interface will be to be purged.If purpose interface
Configuration have an impact to operation, also result in configuration emigration failure, therefore, this is also a part that this step is verified.
If verifying does not pass through, it is determined that two interfaces cannot directly carry out configuration emigration, so, this Shen can not be continued to execute
The scheme that please be proposed terminates the processing operation of this programme.
If the verification passes, i.e., when confirmation purpose interface can be used as the migrating objects of source interface, phase is fed back to management end
Then the prompt answered further executes step S403.
In case of need, management end can be required to whether carrying out subsequent operation and confirm.It is being connected to confirmation
In the case of, further execute step S403.
That is the operating process of the starting deletion non-default configuration of source interface.
Step S403, the configuration order list of inverted order traversal source interface and purpose interface respectively.
The reverse order of sequence recorded in configuration order list according to source interface handles each configuration life one by one
It enables.
It should be noted that inverted order traversal configuration is because interface configuration and other modules have successively configured with relevance
Sequence requirement.The configuration matched afterwards is first deleted, then may operation failure.
Step S404, whether the configuration order that judgement is currently handled is default configuration.
If it is not, then executing step S405;
If it is, step S407 is directly executed, because default interface configuration does not need subsequent delete without being operated
Except operation.
Step S405, backup saves the configuration order currently handled, and after the completion of backup, in corresponding configuration life
It enables and deletes corresponding configuration order record in list.
Step S406, judge whether delete operation succeeds.
If it succeeds, executing step S407;
If it fails, then need to restore source interface and the configuration of purpose interface, i.e. execution step S414.The present embodiment is with source
Interface and purpose interface are carried out simultaneously for the processing of configuration information backup and reset.
Step S407, whether judge the configuration order saved in the configuration order list of current source interface and purpose interface
Inverted order traversal finishes.
If so, thening follow the steps S408;
If it is not, then return step S403.
By aforesaid operations, the arrangement reset to source interface and purpose interface and the preservation to configuration information are completed
Journey, subsequent operation, which starts, issues the operating process of the non-default configuration of source interface in purpose interface.
Step S408, the configuration order list for the source interface that order traversal has saved.
Sequence recorded in configuration order list according to source interface, handles each configuration order one by one.
Step S409, whether the configuration order that judgement is currently handled is default configuration.
If it is not, then executing step S410;
If so, thening follow the steps S412.
Step S410, the configuration order currently obtained is configured in the configuration order list of the purpose interface.
By the processing of this step, the operation that non-default configuration order is configured to purpose interface is completed.
Step S411, judge configuration order whether configuration successful.
If it succeeds, executing step S412;
If it fails, thening follow the steps S414.
Step S412, currently to the configuration information of the source interface saved, whether order traversal is finished for judgement.
If so, thening follow the steps S413;
If it is not, then return step S408, continues the processing of next configuration order.
Step S413, confirmation interface configuration emigration success.
Confirm successful mode can be feedback to management end migration successfully prompt or other management end can be made true
Recognize the mode that migration operation is completed that is currently configured, it is such to change the protection scope that will not influence the application.
By above-mentioned confirmation operation, the network connection that can prompt management end that will be connected with interface (source interface) before
On interface (purpose interface) after to migration, so far, corresponding interface configuration emigration process successfully terminates.
Step S414, the configuration rollback of source interface and purpose interface is carried out.
The configuration of the interface of source interface and purpose interface is restored to state when step S401.
Step S415, confirmation interface configuration emigration failure.
Confirmation failure mode can be to management end feed back migration failure prompt or other management end can be made true
Recognize the impossible mode of migration operation that is currently configured, it is such to change the protection scope that will not influence the application.
Compared with prior art, the technical solution that the embodiment of the present application is proposed has the advantage that
By the technical solution proposed using the embodiment of the present application, arrangement reset can be carried out to source interface automatically, and
The non-default configuration of source interface is added to purpose interface according to configuration sequence, the configuration realized in interface switching process is automatic
Migration operation, thus, not only by being automatically brought into operation replacement manual configuration, interface switching and configuration emigration efficiency are improved, meanwhile,
Inverted order resets source interface, and the mode of operation of the purpose that is arranged in order interface is avoided in the case where guaranteeing interface configuration stability
The leakage occurred in multi-configuration operating process, mismatch problems improve the accuracy rate of configuration emigration.
In order to realize that the technical solution of the application, the application also proposed a kind of network equipment, as shown in figure 5, the network
The structure of equipment includes:
Determining module 51, for being indicated according to the interface configuration emigration true when receiving the instruction of interface configuration emigration
Surely need to carry out the source interface and purpose interface of configuration emigration;
Judgment module 52, for judging whether the source interface determined by the determining module 51 and purpose interface are simultaneous
Hold;
Memory module 53 is when being for the judging result in the judgment module 52, inverted order traverse the source interface and
All configuration informations of purpose interface, save all configuration informations of the source interface and purpose interface, and by the source interface
All non-default configurations with purpose interface are deleted;
Configuration module 54, for all configuration informations for the source interface that memory module 53 is saved described in order traversal, and
According to all non-default configurations of the source interface, the purpose interface is configured.
In specific application scenarios, the above-mentioned network equipment further include:
List management module 55, for creating corresponding configuration order column for each interface included by the network equipment
Table;
Wherein, had recorded in the configuration order list according to configuration sequence directly or indirectly configured for current interface it is each
The information of configuration order, and save each configuration order whether be default configuration mark.
In specific application scenarios, the memory module 53 is also used to:
When the operation that the memory module 53 deletes the configuration order currently obtained is unsuccessful, when, according to
The configuration information of the source interface and/or purpose interface that have currently been saved, matches the source interface and/or purpose interface
It sets and is restored;
Or,
The configuration module 54 arranges the configuration order that the configuration order currently obtained is configured to the purpose interface
When operation in table is unsuccessful, according to the configuration information of the source interface and purpose interface that have currently been saved, to the source
The configuration of interface and purpose interface is restored.
Further, which further includes feedback module 56, is specifically used for:
After the completion of the configuration module 54 is to all configurations of the purpose interface, the success of feedback interface configuration emigration;
Or,
After the completion of the memory module 53 restores the configuration of the source interface and purpose interface, feedback interface configuration is moved
Move failure.
Compared with prior art, the technical solution that the embodiment of the present application is proposed has the advantage that
By the technical solution proposed using the embodiment of the present application, arrangement reset can be carried out to source interface automatically, and
The non-default configuration of source interface is added to purpose interface according to configuration sequence, the configuration realized in interface switching process is automatic
Migration operation, thus, not only by being automatically brought into operation replacement manual configuration, interface switching and configuration emigration efficiency are improved, meanwhile,
Inverted order resets source interface, and the mode of operation of the purpose that is arranged in order interface is avoided in the case where guaranteeing interface configuration stability
The leakage occurred in multi-configuration operating process, mismatch problems improve the accuracy rate of configuration emigration.
Through the above description of the embodiments, those skilled in the art can be understood that the application can lead to
Hardware realization is crossed, the mode of necessary general hardware platform can also be added to realize by software.Based on this understanding, this Shen
Technical solution please can be embodied in the form of software products, which can store in a non-volatile memories
In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used so that a computer equipment (can be
Personal computer, server or network equipment etc.) execute method described in each implement scene of the application.
It will be appreciated by those skilled in the art that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, module in attached drawing or
Process is not necessarily implemented necessary to the application.
It will be appreciated by those skilled in the art that the module in device in implement scene can be described according to implement scene into
Row is distributed in the device of implement scene, can also be carried out corresponding change and is located at the one or more dresses for being different from this implement scene
In setting.The module of above-mentioned implement scene can be merged into a module, can also be further split into multiple submodule.
Above-mentioned the application serial number is for illustration only, does not represent the superiority and inferiority of implement scene.
Disclosed above is only several specific implementation scenes of the application, and still, the application is not limited to this, Ren Heben
What the technical staff in field can think variation should all fall into the protection scope of the application.
Claims (11)
1. a kind of interface configuration emigration method, which is characterized in that the described method includes:
When the network equipment receives the instruction of interface configuration emigration, the network equipment indicates true according to the interface configuration emigration
Surely need to carry out the source interface and purpose interface of configuration emigration;
The network equipment judges whether the source interface and purpose interface are compatible with;
If it is judged that be it is yes, the network equipment inverted order traverses all configuration informations of the source interface and purpose interface,
It saves all configuration informations of the source interface and purpose interface, and all of the source interface and purpose interface non-default is matched
It sets and is deleted;
All configuration informations for the source interface that the network equipment order traversal saves, and according to all of the source interface
Non-default configuration configures the purpose interface.
2. the method as described in claim 1, which is characterized in that the network equipment receives interface configuration emigration and indicates it
Before, further includes:
The network equipment is that each interface included by itself creates corresponding configuration order list;
Wherein, each configuration directly or indirectly configured for current interface is had recorded according to configuration sequence in the configuration order list
The information of order, and save each configuration order whether be default configuration mark.
3. method according to claim 2, which is characterized in that the network equipment inverted order traverses the source interface and purpose connects
Mouthful all configuration informations, save all configuration informations of the source interface and purpose interface, and by the source interface and purpose
All non-default configurations of interface are deleted, and are specifically included:
Step A, the described network equipment distinguish inverted order obtain in the configuration order list of the source interface and purpose interface it is included
Configuration order;
Step B, the described network equipment saves the configuration order currently obtained;
Step C, whether the configuration order that network equipment judgement currently obtains is default configuration, if it is judged that be it is no,
Step D is executed, if it is judged that being yes, execution step E;
Step D, the described network equipment is worked as by described in the configuration order list corresponding to the configuration order currently obtained
The configuration order of preceding acquisition is deleted;
Step E, the described network equipment judge in the configuration order list of the source interface and purpose interface it is current whether there is also
The configuration order not being acquired, if it is judged that be it is yes, execute step A, if it is judged that be it is no, then terminate to the source
The processing of interface and purpose interface.
4. method as claimed in claim 3, which is characterized in that the network equipment is in the configuration order institute currently obtained
The configuration order currently obtained is deleted in corresponding configuration order list, further includes:
When the operation that the network equipment deletes the configuration order currently obtained is unsuccessful, the network equipment
According to the configuration information of the source interface and/or purpose interface that have currently been saved, to the source interface and/or purpose interface
Configuration restored;
After the completion of the network equipment restores the configuration of the source interface and/or purpose interface, the network equipment feedback is connect
Mouth configuration emigration failure.
5. method according to claim 2, which is characterized in that the source interface that the network equipment order traversal saves
All configuration informations, and according to all non-default configurations of the source interface, the purpose interface is configured, is specifically included:
Step A, the described network equipment sequence obtains the configuration order of all configuration informations of the source interface saved;
Step B, whether the configuration order that network equipment judgement currently obtains is default configuration, if it is judged that be it is no,
Step C is executed, if it is judged that being yes, execution step D;
Step C, the described network equipment arranges the configuration order that the configuration order currently obtained is configured to the purpose interface
In table;
Step D, whether there is also what is be not configured to match in the configuration information for the source interface that the described network equipment judgement is saved
Confidence breath, if so, thening follow the steps A, is handled next configuration order, if it is not, terminating to the purpose
The processing of interface.
6. method as claimed in claim 5, which is characterized in that the network equipment matches the configuration order currently obtained
In the configuration order list for setting the purpose interface, further includes:
When the configuration order currently obtained is configured in the configuration order list of the purpose interface by the network equipment
Operation it is unsuccessful when, the network equipment according to the configuration information of the source interface and purpose interface being currently saved,
The configuration of the source interface and purpose interface is restored;
After the completion of the network equipment restores the configuration of the source interface and the purpose interface, the network equipment feedback is connect
Mouth configuration emigration failure.
7. a kind of network equipment characterized by comprising
Determining module, for being indicated to determine needs according to the interface configuration emigration when receiving the instruction of interface configuration emigration
Carry out the source interface and purpose interface of configuration emigration;
Judgment module, for judging whether the source interface and purpose interface determined by the determining module are compatible with;
Memory module, for when the judgment result of the judgment module is yes, inverted order to traverse the source interface and purpose interface
All configuration informations, save all configuration informations of the source interface and purpose interface, and the source interface and purpose are connect
All non-default configurations of mouth are deleted;
Configuration module, for all configuration informations for the source interface that memory module described in order traversal is saved, and according to described
All non-default configurations of source interface, configure the purpose interface.
8. the network equipment as claimed in claim 7, which is characterized in that further include:
List management module, for creating corresponding configuration order list for each interface included by the network equipment;
Wherein, each configuration directly or indirectly configured for current interface is had recorded according to configuration sequence in the configuration order list
The information of order, and save each configuration order whether be default configuration mark.
9. the network equipment as claimed in claim 8, which is characterized in that the memory module traverses the source interface for inverted order
With all configuration informations of purpose interface, all configuration informations of the source interface and purpose interface are saved, and the source is connect
All non-default configurations of mouth and purpose interface are specifically used for when being deleted:
Inverted order obtains configuration order included in the configuration order list of the source interface and purpose interface respectively;
Save the configuration order currently obtained;
Judge whether the configuration order currently obtained is default configuration;
If it is judged that be it is no, will be described current in the configuration order list corresponding to the configuration order currently obtained
The configuration order of acquisition is deleted;
If it is judged that be it is yes, judge in the configuration order list of the source interface and purpose interface current whether there is also not
The configuration order being acquired, if it is judged that be it is yes, execute the inverted order respectively and obtain the source interface and purpose interface
In configuration order list the step of included configuration order, if it is judged that be it is no, then terminate to the source interface and mesh
Interface processing.
10. the network equipment as claimed in claim 9, which is characterized in that the memory module is also used to:
When the operation that the memory module deletes the configuration order currently obtained is unsuccessful,
According to the configuration information of the source interface and/or purpose interface that have currently been saved, to the source interface and/or purpose
The configuration of interface is restored;
Or,
When the configuration order currently obtained is configured in the configuration order list of the purpose interface by the configuration module
Operation it is unsuccessful when, according to the configuration information of the source interface and purpose interface that have currently been saved, to the source interface
Configuration with purpose interface is restored.
11. the network equipment as claimed in claim 10, which is characterized in that further include feedback module, be specifically used for:
After the completion of the configuration module is to all configurations of the purpose interface, the success of feedback interface configuration emigration;Or,
After the completion of the memory module restores the configuration of the source interface and/or purpose interface, feedback interface configuration emigration
Failure.
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 CN105591807A (en) | 2016-05-18 |
| CN105591807B true 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) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| 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 | 北京奇虎科技有限公司 | Method and device for assisting system interface migration |
| CN109412846B (en) * | 2018-10-11 | 2021-08-24 | 杭州迪普科技股份有限公司 | Configuration rollback method and device |
| CN112187515B (en) * | 2020-09-03 | 2023-04-28 | 北京展心展力信息科技有限公司 | Network resource allocation 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 (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101178665A (en) * | 2007-12-06 | 2008-05-14 | 华为技术有限公司 | Method and device for realizing configuration transaction |
| CN101527652A (en) * | 2009-04-21 | 2009-09-09 | 杭州华三通信技术有限公司 | Method for resuming default interface configuration and device thereof |
| 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 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100464522C (en) * | 2007-05-17 | 2009-02-25 | 华为技术有限公司 | A process upgrade method and process upgrade system |
-
2015
- 2015-10-10 CN CN201510651913.4A patent/CN105591807B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101178665A (en) * | 2007-12-06 | 2008-05-14 | 华为技术有限公司 | Method and device for realizing configuration transaction |
| 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 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105591807A (en) | 2016-05-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105591807B (en) | A kind of interface configuration emigration method and equipment | |
| US8793456B2 (en) | Automated migration to a new target volume via merged bitmaps to maintain consistency | |
| CN105407117B (en) | The methods, devices and systems of distributed backup data | |
| CN105099786B (en) | The method and apparatus of business configuration in a kind of network cutover | |
| CN105354108A (en) | Data backup method and node | |
| CN106933967B (en) | Batch modification method and device for file contents | |
| CN108322329A (en) | Network collocating method, device and equipment are issued based on SDN network | |
| CN107770207A (en) | The method of data syn-chronization between multi-terminal equipment | |
| CN103761131B (en) | A kind of many board part automatic update methods and system based on memory sharing | |
| CN110633174A (en) | Disaster recovery switching method, device and computer readable storage medium | |
| CN105573788B (en) | Patch processing method and device and patch generation method and device | |
| CN106775481B (en) | Method for reading data and equipment | |
| CN110569231B (en) | Data migration method, device, equipment and medium | |
| CN104219084A (en) | Board/card starting method and device | |
| EP3503479B1 (en) | Flow entry management method and device | |
| CN115357262A (en) | Method for upgrading driver firmware in batch | |
| CN111680000B (en) | Field programmable logic gate array configuration system and method | |
| CN113377702A (en) | Method and device for starting two-node cluster, electronic equipment and storage medium | |
| CN104461709B (en) | The control method and device of task scheduling | |
| CN107391315A (en) | A kind of method and device of standby system file | |
| US20200374196A1 (en) | Grammar for configuration validation | |
| CN115933981A (en) | Data Migration Method, Device, Distributed System, and Computer-Readable Storage Medium | |
| CN114496056A (en) | Card opening method, device and computer readable storage medium for solid state hard disk | |
| CN109508259A (en) | A kind of method and apparatus of data storage | |
| CN111817894B (en) | Cluster node configuration method and system and readable storage medium |
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 |