CN105939205A - Configuration rollback method and device - Google Patents
Configuration rollback method and device Download PDFInfo
- Publication number
- CN105939205A CN105939205A CN201510540662.2A CN201510540662A CN105939205A CN 105939205 A CN105939205 A CN 105939205A CN 201510540662 A CN201510540662 A CN 201510540662A CN 105939205 A CN105939205 A CN 105939205A
- Authority
- CN
- China
- Prior art keywords
- order
- configuration
- forward configuration
- configuration order
- reverse
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a configuration rollback method and device. The method comprises the following steps of: executing a no command corresponding to a target forward configuration command while needing to cancel configuration corresponding to the target forward configuration command in current configuration; and executing pre-set target operation used for cancelling the configuration corresponding to the target forward configuration command if the no command corresponding to the target forward configuration command is failed to execute. By means of application of the embodiment of the invention, the rollback failure condition due to the fact that the no command corresponding to the forward configuration command does not exist can be avoided.
Description
Technical field
The present invention relates to technical field of the computer network, particularly relate to a kind of configuration rollback method and device.
Background technology
Equipment generally can be safeguarded by manager by command line mode.Order line is a kind of interactive
Terminal interface, manager can pass through console (manipulation), telnet (remote terminal protocol) etc. even
The mode of connecing accesses equipment, and under prompt, input order, safeguards equipment.
Along with network size is increasing, application becomes increasingly complex, and network equipments configuration also gets more and more.
The list items such as such as route, packet filtering, number of entries depends on up to 100,000 orders of magnitude, the configuration amount of this scale
Manually safeguard and become more and more unrealistic.Therefore the network equipment needs to support corresponding automated management hands
Section, it is achieved to operations such as quickly the adding, delete of equipment configuration, recoveries.Join to solve such batch
The problem put, configuration rollback function is supported in usual order provisional capital.
Configuration rollback refers to current configuration is rolled back to the configuration status in specified configuration file.Configure back
The configuration file of rolling use is carried out configuration save (configuration preserves) orders the one generated complete
The .cfg file that portion is made up of order line executable command.This document support derives from equipment, imports,
Editor.The configuration file of generation can be derived laggard edlin from equipment by manager, by required
Configuration file is imported equipment after adding in configuration file by configuration order, and re-using configuration rollback function will
Equipment is currently configured in the configuration file rolling back to import the configuration status specified, and can realize setting with this
Standby batch configuration.
In configuration rollback flow process, system can process, (corresponding device is current to compare current configuration file
Configuration) with rollback configuration file in difference:
1, for current configuration file and the same commands in rollback configuration file, rolling back action does not processes;
2, being not present in the order in rollback configuration file for being present in current configuration file, rollback is grasped
Make the configuration order that will cancel in current configuration file, i.e. perform the no order that this configuration order is corresponding;
3, for being present in rollback configuration file, but it is not present in the order of current configuration file, rollback
Operation will perform these orders;
4, for the order differed in current configuration file and rollback configuration file, configuration rollback will first take
Disappear these configurations, then performs the corresponding command in rollback configuration file.
But practice finds, in above-mentioned configuration rollback scheme, when certain forward configuration order pair cancelled by needs
During the configuration answered, as this forward configuration order is present in current configuration file but it is not present in rollback configuration literary composition
Time in part, need to perform the no order that this forward configuration order is corresponding, i.e. add before forward configuration order
Keyword no performs.If the reverse configuration order adding keyword no composition before forward configuration order does not exists,
System nonrecognition, it is possible to cause configuring rollback failure.Such as, order A B STRING (wherein A,
B is command keyword, and STRING is command parameter), corresponding reverse configuration order is no A B, but
The when of being configuration rollback, system can go automatically to perform no A B STRING, and now system can be because not
Support that no A B STRING causes configuration A B STRING rollback failure.
Summary of the invention
The present invention provides a kind of configuration rollback method and device, to solve to perform in existing configuration rollback scheme
When no order corresponding to forward configuration order is to cancel configuration corresponding to forward configuration order, owing to forward is joined
The no order putting order corresponding does not exists and causes the problem that rollback is failed.
First aspect according to embodiments of the present invention, it is provided that a kind of configuration rollback method, including:
When the configuration that the target forward configuration order in needing cancellation to be currently configured is corresponding, perform described mesh
The no order that mark forward configuration order is corresponding;
If no order corresponding to described target forward configuration order performs failure, then being used for of performing to preset takes
The object run of the configuration that the described target forward configuration order that disappears is corresponding.
Second aspect according to embodiments of the present invention, it is provided that a kind of configuration rollback device, including:
First performance element is corresponding for the target forward configuration order in needing cancellation to be currently configured
During configuration, perform the no order that described target forward configuration order is corresponding;
Second performance element, if performing failure for the no order that described target forward configuration order is corresponding,
Then perform the object run for cancelling configuration corresponding to described target forward configuration order preset.
The application embodiment of the present invention, by pre-setting for cancelling target corresponding the joining of forward configuration order
The object run put, orders when needing the target forward configuration cancelling in being currently configured in configuration rollback flow process
The configuration that order is corresponding, and perform no order corresponding to this target forward configuration order failed time, can perform
This object run for cancelling configuration corresponding to target forward configuration order preset, just to cancel target
To the configuration that configuration order is corresponding, it is to avoid owing to no order that forward configuration order is corresponding does not exists and lead
Cause the failed situation of rollback to occur.
Accompanying drawing explanation
Fig. 1 is a kind of schematic flow sheet configuring rollback method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of configuration rollback method that the embodiment of the present invention provides;
Fig. 3 is a kind of hardware structure diagram of the configuration rollback device place equipment that the embodiment of the present invention provides;
Fig. 4 is a kind of structural representation configuring rollback device that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the another kind of configuration rollback device that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the another kind of configuration rollback device that the embodiment of the present invention provides.
Detailed description of the invention
For the technical scheme making those skilled in the art be more fully understood that in the embodiment of the present invention, and make
The above-mentioned purpose of the embodiment of the present invention, feature and advantage can become apparent from understandable, the most right
In the embodiment of the present invention, technical scheme is described in further detail.
Refer to Fig. 1, a kind of schematic flow sheet configuring rollback method provided for the embodiment of the present invention,
As it is shown in figure 1, this configuration rollback method may comprise steps of:
Step 101, when needing configuration corresponding to target forward configuration order cancelling in being currently configured,
Perform the no order that this target forward configuration order is corresponding.
In the embodiment of the present invention, said method can apply to include but not limited to router, switch etc.
The network equipment, for ease of describing, the executive agent of following method described above is that the network equipment illustrates.
In the embodiment of the present invention, during the network equipment carries out configuring rollback, when needs are cancelled current
During configuration corresponding to target forward configuration order in configuration, the network equipment can first be attempted performing this target
The no order that forward configuration order is corresponding, i.e. plus keyword " no " before this target forward configuration order,
And perform.
For example, it is assumed that forward configuration order is telnet enable, the no order of its correspondence is no telnet
enable;Assuming that forward configuration order is password WORD, the no order of its correspondence is no
password WORD。
Wherein, this target forward configuration order can include but not limited to that arbitrary being present in is currently configured correspondence
Configuration file in, but the forward configuration order being not present in rollback configuration file;Or, arbitrary existence
Configuration order in the configuration file being currently configured correspondence and corresponding from rollback configuration file is different
Forward configuration order.
If no order corresponding to this target forward configuration order of step 102 performs failure, then perform to preset
For cancelling the object run that target forward configuration order is corresponding.
In the embodiment of the present invention, in order to avoid corresponding due to forward configuration order in configuration rollback process
No order does not exists and causes rollback failure, can be anti-for being currently configured in the configuration file of correspondence in advance
It not the forward configuration order adding key word " no " before forward configuration order to configuration order, set and use
In the object run cancelling configuration corresponding to this forward configuration order.
Correspondingly, when the no order failure that network equipment performance objective forward configuration order is corresponding, network
Equipment can perform the object run of the configuration for cancelling this target forward configuration order preset, to take
The object run of the configuration of this target forward configuration order that disappears.
As a kind of implementation, in above-mentioned steps 102, being used for of performing to preset is cancelled target forward and joins
Put the object run of configuration corresponding to order, can specifically include:
Reverse configuration Status Flag is set on state, and performs this target forward configuration order;Its
In, when reverse configuration status indicator is opening, performance objective forward configuration order will cancel mesh
The configuration that mark forward configuration order is corresponding.
In this embodiment, it not to be added pass by before forward configuration order for reverse configuration order in system
The situation that key word " no " is constituted, by the execution flow process of this forward configuration order by original forward configuration stream
Journey is set to two parts: normal configuration flow process and cancel configuration flow.These two flow processs are anti-by one
Distinguish to configuration status mark, when this reverse configuration Status Flag opening, perform forward configuration
Order is the cancellation configuration flow performing its correspondence, i.e. cancels the configuration that this forward configuration order is corresponding;
When this reverse configuration Status Flag is closed mode, performs forward configuration order and be its correspondence of execution
Normal configuration flow process, i.e. configures the network equipment according to this forward configuration order.Wherein, above-mentioned instead
It is closed mode to the init state of configuration status mark.
It should be noted that for reverse configuration order in system it is to be added keyword by before forward configuration order
The situation that " no " is constituted, forward configuration flow and reverse configuration flow process are respectively belonging to forward configuration order
With reverse configuration order, the two is separate, and its flow process all need not be revised, and it is embodied in this no longer
Repeat.
Correspondingly, when the no order failure of network equipment performance objective forward order, this network equipment can
Reverse configuration Status Flag to be set on state, and perform this target forward configuration order;Now,
Owing to reverse configuration Status Flag is opening, therefore, the network equipment performs this forward configuration order i.e.
The cancellation configuration order flow process corresponding for performing this forward configuration order, i.e. the network equipment just will cancel this
To the configuration that configuration order is corresponding.
Further, in this embodiment, reverse configuration Status Flag is set on state, and
After performance objective forward configuration order, it is also possible to including:
Reverse configuration Status Flag is set to off closed state.
In this embodiment, other configuration order is affected in order to avoid the state of reverse configuration Status Flag
Execution, when the network equipment under reverse configuration state flag bit opening performance objective forward configuration life
After order, it is also possible to reverse configuration Status Flag is set to off closed state, and then, when the network equipment is held
During other forward configuration order of row, it will perform the normal configuration flow process of its correspondence.
It should be noted that in embodiments of the present invention, it is also possible to by being configured, make the network equipment
Automatically trigger reversely after reverse configuration Status Flag performs a forward configuration order in the on state
Configuration status mark switches to closed mode, without carrying out special setting;Or, it is also possible to logical
Cross and reverse configuration Status Flag is set is in the duration threshold of opening, when reverse configuration state mark
Will be in opening persistent period arrive preset duration threshold time, will automatically switch to closedown
State;Wherein, this duration threshold can perform the set of time of configuration order according to the network equipment,
This is repeated no more by the embodiment of the present invention.
What deserves to be explained is, in embodiments of the present invention, above-mentioned control is performed forward configuration order corresponding
Named " the reverse configuration shape of the mark that flow process is " normal configuration flow process " or " cancellation configuration flow "
State mark " it is only a kind of concrete example of the name to this mark, those skilled in the art can also be to it
Carrying out other name, on the basis of the embodiment of the present invention, those skilled in the art are not paying creativeness
On the premise of work, any modification naming above-mentioned mark all should belong to protection scope of the present invention.
Visible, in the method flow described by Fig. 1, join for cancelling target forward by pre-setting
Put the object run of configuration corresponding to order, in needing to cancel and be currently configured in configuration rollback flow process
The configuration that target forward configuration order is corresponding, and perform the no order mistake that this target forward configuration order is corresponding
When losing, this object run for cancelling configuration corresponding to target forward configuration order preset can be performed,
Cancelling configuration corresponding to target forward configuration order, it is to avoid due to the no that forward configuration order is corresponding
Order does not exists and causes the situation that rollback is failed to occur.
Refer to Fig. 2, a kind of schematic flow sheet configuring rollback method provided for the embodiment of the present invention,
As in figure 2 it is shown, this configuration rollback method may comprise steps of:
Step 201, when the reverse configuration order that forward configuration order is corresponding corresponding with this forward configuration order
No order different time, register, for this forward configuration order, the no order that this forward configuration order is corresponding.
In the embodiment of the present invention, it is contemplated that in configuration rollback process, when the network equipment needs just cancelling certain
When the configuration that configuration order is corresponding, this network equipment can first carry out the no that this forward configuration order is corresponding
Order, i.e. adds keyword " no " before this forward configuration order, and performs;If this forward configuration order
The no order that corresponding reverse configuration order is corresponding from this forward configuration order is different, i.e. this forward configuration life
Reverse configuration order corresponding to order is not to constitute by adding keyword " no " before this forward configuration order, then net
The no order that network equipment performs this forward configuration order corresponding will be failed, it is impossible to cancels this forward configuration life
The configuration that order is corresponding, therefore, is not by forward configuration life for reverse configuration order corresponding in system
Forward configuration order (i.e. this corresponding reversely joining of forward configuration order that keyword " no " is constituted is added before order
The no order putting order corresponding from this forward configuration order is different), the network equipment can be the configuration of this forward
The no order that Ordered Registration is corresponding, configures no order corresponding for this forward configuration order as this forward
Order the reverse configuration order used when configuring rollback.
Such as, as a example by forward configuration order is for A B STRING, the reverse configuration order of its correspondence is (general
Logical reverse configuration order) it is no A B;Corresponding no order (corresponding reversely joining during configuration rollback
Put order) be no A B STRING, it is seen then that reverse configuration order corresponding to this forward configuration order with
The no order difference that this forward configuration order is corresponding, for the forward configuration order of the type, can be it
The no order that registration is corresponding, i.e. this forward configuration order register with three orders, a forward configuration life altogether
Order, such as A B STRING, a reverse configuration order, such as no A B, a no order no A B
STRING。
In the embodiment of the present invention, for registering with the forward configuration order of no order, perform forward configuration life
The function of the reverse configuration order that the function of the no order that order is corresponding is corresponding with performing this forward configuration order
Identical.
Such as, still as a example by above-mentioned forward configuration order no A B STRING, when registering correspondence for it
After no order, the network equipment performs the function of the no order (i.e. no A B STRING) of its correspondence
Identical with the function performing its corresponding reverse configuration order (i.e. no A B), it is this forward of cancellation and joins
Put the configuration that order is corresponding.
In one embodiment, it is contemplated that order line exists common reverse configuration order and configuration simultaneously
Manager can be caused puzzlement by the reverse configuration order that rollback uses, for configuring reversely joining of rollback use
Putting Ordered Registration is hidden command, and wherein, hidden command is invisible to user, and configures stream normally
Cheng Zhong, hidden command also will not be performed, and can normally perform hidden command in configuration rollback process.
Step 202, when needing configuration corresponding to target forward configuration order cancelling in being currently configured,
The no order that performance objective forward configuration order is corresponding.
In the embodiment of the present invention, during the network equipment carries out configuring rollback, when needs are cancelled current
During configuration corresponding to target forward configuration order in configuration, the network equipment can first be attempted performing this target
The no order that forward configuration order is corresponding, i.e. plus keyword " no " before this target forward configuration order,
And perform.
For example, it is assumed that forward configuration order is telnet enable, the no order of its correspondence is no telnet
enable;Assuming that forward configuration order is password WORD, the no order of its correspondence is no
password WORD。
Wherein, this target forward configuration order can include but not limited to that arbitrary being present in is currently configured correspondence
Configuration file in, but the forward configuration order being not present in rollback configuration file;Or, arbitrary existence
Configuration order in the configuration file being currently configured correspondence and corresponding from rollback configuration file is different
Forward configuration order.
If no order corresponding to this target forward configuration order of step 203 performs failure, then perform to preset
For cancelling the object run that target forward configuration order is corresponding.
In the embodiment of the present invention, it is by adding " no " structure before forward configuration order for reverse configuration order
Configuration order (the forward configuration life that i.e. corresponding reverse configuration order is identical with corresponding no order become
Make), and reverse configuration order is not to be constituted plus " no " by before forward configuration order, but registered
The configuration order (configuration order described in step 201) of corresponding no order, performs this forward and joins
The object run that this forward configuration order is corresponding can be directly cancelled in the no order putting order.
And be not by constituting plus " no " before forward configuration order for reverse configuration order, and unregistered
The configuration order of corresponding no order, in order to avoid in configuring rollback process due to forward configuration order pair
The no order answered does not exists and causes rollback failure, can preset for cancelling this forward configuration order
The object run of corresponding configuration.
Correspondingly, when the no order failure that network equipment performance objective forward configuration order is corresponding, network
Equipment can perform the object run of the configuration for cancelling this target forward configuration order preset, to take
The object run of the configuration of this target forward configuration order that disappears.
As a kind of implementation, in above-mentioned steps 203, being used for of performing to preset is cancelled target forward and joins
Put the object run of configuration corresponding to order, can specifically include:
Reverse configuration Status Flag is set on state, and performs this target forward configuration order;Its
In, when reverse configuration status indicator is opening, performance objective forward configuration order will cancel mesh
The configuration that mark forward configuration order is corresponding.
In this embodiment, it not to be added pass by before forward configuration order for reverse configuration order in system
The situation that key word " no " is constituted, by the execution flow process of this forward configuration order by original forward configuration stream
Journey is set to two parts: normal configuration flow process and cancel configuration flow.These two flow processs are anti-by one
Distinguish to configuration status mark, when this reverse configuration Status Flag opening, perform forward configuration
Order is the cancellation configuration flow performing its correspondence, i.e. cancels the configuration that this forward configuration order is corresponding;
When this reverse configuration Status Flag is closed mode, performs forward configuration order and be its correspondence of execution
Normal configuration flow process, i.e. configures the network equipment according to this forward configuration order.Wherein, above-mentioned instead
It is closed mode to the init state of configuration status mark.
Correspondingly, when the no order failure of network equipment performance objective forward order, this network equipment can
Reverse configuration Status Flag to be set on state, and perform this target forward configuration order;Now,
Owing to reverse configuration Status Flag is opening, therefore, the network equipment performs this forward configuration order i.e.
The cancellation configuration order flow process corresponding for performing this forward configuration order, i.e. the network equipment just will cancel this
To the configuration that configuration order is corresponding.
Further, in this embodiment, reverse configuration Status Flag is set on state, and
After performance objective forward configuration order, it is also possible to including:
Reverse configuration Status Flag is set to off closed state.
In this embodiment, other configuration order is affected in order to avoid the state of reverse configuration Status Flag
Execution, when the network equipment under reverse configuration state flag bit opening performance objective forward configuration life
After order, it is also possible to reverse configuration Status Flag is set to off closed state, and then, when the network equipment is held
During other forward configuration order of row, it will perform the normal configuration flow process of its correspondence.
It should be noted that in embodiments of the present invention, in configuration rollback process, the network equipment travels through
With compare the concrete handling process of the configuration file and the rollback configuration file that are currently configured correspondence, according to current
The configuration file that configuration is corresponding does not exists, and present in rollback configuration file, configuration-direct configures
May refer to the relevant treatment flow process in existing configuration rollback scheme etc. relevant treatment flow process, the present invention implements
Example does not repeats them here.
Visible, in the method flow described by Fig. 2, by the reverse configuration order for correspondence with corresponding
No order corresponding to the different forward configuration order registration of no order, it is to avoid owing to forward configuration is ordered
The no order of order correspondence does not exists and causes the situation that rollback is failed to occur.
By above description it can be seen that the embodiment of the present invention provide technical scheme in, by advance
It is provided for cancelling the object run of configuration corresponding to target forward configuration order, when in configuration rollback flow process
Middle needs cancels the configuration that the target forward configuration order in being currently configured is corresponding, and performs this target forward
Configuration order corresponding no order failure time, can perform this preset for cancel target forward configuration life
The object run of the configuration that order is corresponding, the configuration corresponding to cancel target forward configuration order, it is to avoid by
Do not exist in the no order that forward configuration order is corresponding and cause the situation that rollback is failed to occur.
Corresponding with aforementioned arrangements rollback method embodiment, present invention also offers the reality of configuration rollback device
Execute example.
In the embodiment of the present invention, configuration rollback device can apply to include but not limited to router, exchange
The network equipments such as machine.Device embodiment can be realized by software, it is also possible to by hardware or software and hardware
In conjunction with mode realize.As a example by implemented in software, as the device on a logical meaning, it is by it
Computer program instructions corresponding in nonvolatile memory is read in internal memory by the processor of place equipment
Run formation.For hardware view, as it is shown on figure 3, the configuration for embodiment of the present invention offer is returned
A kind of hardware structure diagram of rolling device place equipment, except the processor shown in Fig. 3, network interface, interior
Depositing and outside nonvolatile memory, in embodiment, the equipment at device place generally can also include other
Hardware, such as the forwarding chip etc. of responsible process message;This equipment from the point of view of from hardware configuration it is also possible that
Distributed equipment, potentially includes multiple interface card, in order to carry out the extension of Message processing at hardware view.
Refer to Fig. 4, a kind of structural representation configuring rollback device provided for the embodiment of the present invention,
Wherein, described device can apply to the network equipment in said method embodiment, such as figure
Shown in 4, this configuration rollback device may include that
First performance element 410, for the target forward configuration order pair in needing cancellation to be currently configured
During the configuration answered, perform the no order that described target forward configuration order is corresponding;
Second performance element 420, if performing mistake for the no order that described target forward configuration order is corresponding
Lose, then perform the object run for cancelling configuration corresponding to described target forward configuration order preset.
Please also refer to Fig. 5, the another kind of structure configuring rollback device provided for the embodiment of the present invention is shown
Be intended to, this embodiment on the basis of aforementioned embodiment illustrated in fig. 4, the second performance element in described device
420 may include that and arrange subelement 421 and perform subelement 422.Wherein:
Subelement 421 is set, for reverse configuration Status Flag is set on state;
Perform subelement 422, be used for performing described target forward configuration order;Wherein, in reverse configuration
When status indicator is opening, performs described target forward configuration order and will cancel described target forward
The configuration that configuration order is corresponding.
In one embodiment, described subelement 421 is set, it is also possible to for when described execution subelement 422
After performing described target forward configuration-direct, described reverse configuration Status Flag is set to off closed state.
Please also refer to Fig. 6, the another kind of structure configuring rollback device provided for the embodiment of the present invention is shown
Being intended to, this embodiment is on the basis of aforementioned embodiment illustrated in fig. 4, and described device can also include: note
Volume unit 430;Wherein:
Registering unit 430, for joining with described forward when the reverse configuration order that forward configuration order is corresponding
Put no order corresponding to order different time, register described forward configuration order pair for described forward configuration order
The no order answered;Wherein, for registering with the forward configuration order of no order, perform described forward and join
Put the reverse configuration order that the function of no order corresponding to order is corresponding with performing described forward configuration order
Function identical.
In one embodiment, the no order that described forward configuration order is corresponding is hidden command.
In said apparatus, the function of unit and the process that realizes of effect specifically refer in said method corresponding
Step realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part ginseng
See that the part of embodiment of the method illustrates.Device embodiment described above is only schematically,
The wherein said unit illustrated as separating component can be or may not be physically separate, makees
The parts shown for unit can be or may not be physical location, i.e. may be located at a place,
Or can also be distributed on multiple NE.Can select according to the actual needs part therein or
The whole module of person realizes the purpose of the present invention program.Those of ordinary skill in the art are not paying creativeness
In the case of work, i.e. it is appreciated that and implements.
As seen from the above-described embodiment, by pre-setting for cancelling target corresponding the joining of forward configuration order
The object run put, orders when needing the target forward configuration cancelling in being currently configured in configuration rollback flow process
The configuration that order is corresponding, and perform no order corresponding to this target forward configuration order failed time, can perform
This object run for cancelling configuration corresponding to target forward configuration order preset, just to cancel target
To the configuration that configuration order is corresponding, it is to avoid owing to no order that forward configuration order is corresponding does not exists and lead
Cause the failed situation of rollback to occur.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to this
Other embodiment of invention.The application is intended to any modification, purposes or the adaptability of the present invention
Change, these modification, purposes or adaptations are followed the general principle of the present invention and include this
Bright undocumented common knowledge in the art or conventional techniques means.Description and embodiments only by
Being considered as exemplary, true scope and spirit of the invention are pointed out by claim below.
It should be appreciated that the invention is not limited in described above and illustrated in the accompanying drawings accurately
Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present invention is only by institute
Attached claim limits.
Claims (10)
1. a configuration rollback method, it is characterised in that including:
When the configuration that the target forward configuration order in needing cancellation to be currently configured is corresponding, perform described mesh
The no order that mark forward configuration order is corresponding;
If no order corresponding to described target forward configuration order performs failure, then being used for of performing to preset takes
The object run of the configuration that the described target forward configuration order that disappears is corresponding.
Method the most according to claim 1, it is characterised in that what described execution was preset is used for cancelling
The object run of the configuration that described target forward configuration order is corresponding, including:
Reverse configuration Status Flag is set on state, and performs described target forward configuration order;
Wherein, when reverse configuration status indicator is opening, performing described target forward configuration order will
Cancel the configuration that described target forward configuration order is corresponding.
Method the most according to claim 2, it is characterised in that described by reverse configuration Status Flag
It is set on state, and after performing described target forward configuration order, also includes:
Described reverse configuration Status Flag is set to off closed state.
Method the most according to claim 1, it is characterised in that described method also includes:
When the no life that the reverse configuration order that forward configuration order is corresponding is corresponding with described forward configuration order
When order is different, register, for described forward configuration order, the no order that described forward configuration order is corresponding;Wherein,
For registering with the forward configuration order of no order, perform the no order that described forward configuration order is corresponding
Function identical with the function performing reverse configuration order corresponding to described forward configuration order.
Method the most according to claim 4, it is characterised in that described forward configuration order is corresponding
No order is hidden command.
6. a configuration rollback device, it is characterised in that including:
First performance element is corresponding for the target forward configuration order in needing cancellation to be currently configured
During configuration, perform the no order that described target forward configuration order is corresponding;
Second performance element, if performing failure for the no order that described target forward configuration order is corresponding,
Then perform the object run for cancelling configuration corresponding to described target forward configuration order preset.
Device the most according to claim 6, it is characterised in that described second performance element includes:
Subelement is set, for reverse configuration Status Flag is set on state;
Perform subelement, be used for performing described target forward configuration order;Wherein, in reverse configuration state
When being designated opening, perform described target forward configuration order and will cancel the configuration of described target forward
The configuration that order is corresponding.
Device the most according to claim 7, it is characterised in that
Described subelement is set, is additionally operable to when described execution subelement performs described target forward configuration-direct
Afterwards, described reverse configuration Status Flag is set to off closed state.
Device the most according to claim 6, it is characterised in that described device also includes:
Registering unit, for ordering with the configuration of described forward when reverse configuration order corresponding to forward configuration order
When the no order of order correspondence is different, register described forward configuration order for described forward configuration order corresponding
No order;Wherein, for registering with the forward configuration order of no order, perform described forward configuration life
The merit of the reverse configuration order that the function of the no order that order is corresponding is corresponding with performing described forward configuration order
Can be identical.
Device the most according to claim 9, it is characterised in that described forward configuration order is corresponding
No order be hidden command.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510540662.2A CN105939205B (en) | 2015-08-28 | 2015-08-28 | A kind of configuration rollback method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510540662.2A CN105939205B (en) | 2015-08-28 | 2015-08-28 | A kind of configuration rollback method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105939205A true CN105939205A (en) | 2016-09-14 |
CN105939205B CN105939205B (en) | 2019-02-19 |
Family
ID=57152781
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510540662.2A Active CN105939205B (en) | 2015-08-28 | 2015-08-28 | A kind of configuration rollback method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105939205B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109067574A (en) * | 2018-07-27 | 2018-12-21 | 烽火通信科技股份有限公司 | A kind of processing router control remaining method of planar configuration |
CN111478801A (en) * | 2020-03-27 | 2020-07-31 | 烽火通信科技股份有限公司 | Communication equipment configuration management method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101977127A (en) * | 2010-11-26 | 2011-02-16 | 迈普通信技术股份有限公司 | SNMP (Simple Network Management Protocol) based equipment configuration roll back method and SNMP network management equipment |
US20110231532A1 (en) * | 2010-03-19 | 2011-09-22 | Fujitsu Limited | Network management apparatus, network management method and network management program |
CN102255761A (en) * | 2011-08-19 | 2011-11-23 | 迈普通信技术股份有限公司 | File-based configuration rollback system and configuration rollback method |
-
2015
- 2015-08-28 CN CN201510540662.2A patent/CN105939205B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110231532A1 (en) * | 2010-03-19 | 2011-09-22 | Fujitsu Limited | Network management apparatus, network management method and network management program |
CN101977127A (en) * | 2010-11-26 | 2011-02-16 | 迈普通信技术股份有限公司 | SNMP (Simple Network Management Protocol) based equipment configuration roll back method and SNMP network management equipment |
CN102255761A (en) * | 2011-08-19 | 2011-11-23 | 迈普通信技术股份有限公司 | File-based configuration rollback system and configuration rollback method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109067574A (en) * | 2018-07-27 | 2018-12-21 | 烽火通信科技股份有限公司 | A kind of processing router control remaining method of planar configuration |
CN109067574B (en) * | 2018-07-27 | 2022-03-25 | 烽火通信科技股份有限公司 | Method for processing configuration residue of router control plane |
CN111478801A (en) * | 2020-03-27 | 2020-07-31 | 烽火通信科技股份有限公司 | Communication equipment configuration management method and system |
Also Published As
Publication number | Publication date |
---|---|
CN105939205B (en) | 2019-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Moreira et al. | How to make a fragile network robust and vice versa | |
CN104750063B (en) | For configuring the system and industrial safety system collocation method of industry security relay | |
CN104749993B (en) | System and method for configuring industry security relay | |
EP3282642A1 (en) | Flow control method and equipment | |
JP6361837B2 (en) | Training apparatus, training method, and training program | |
US10379671B2 (en) | Touch event processing method and apparatus, and terminal device | |
JP2015532748A5 (en) | ||
US10778508B2 (en) | Bypass switch with evaluation mode for in-line monitoring of network traffic | |
CN112464497B (en) | Fault drilling method, device, equipment and medium based on distributed system | |
CN110515871A (en) | A kind of interrupt method, device and FPGA and storage medium | |
CN105939205A (en) | Configuration rollback method and device | |
CN108804915A (en) | Virus method for cleaning, storage device and electric terminal | |
CN104205745B (en) | Method and device for processing message | |
WO2017086990A1 (en) | Determining violation of a network invariant | |
CN107391283A (en) | A kind of message treatment method and device | |
CN103873303B (en) | A kind of equipment configuration method and system | |
CN109411034A (en) | Regular integrity verification method and device, the computer readable storage medium of medical inspection project | |
CN105959128A (en) | Fault processing method and device and network device | |
US20180091415A1 (en) | Inline processing of learn actions in a virtual switch | |
CN105991428B (en) | Method and device for processing switch routing conflict | |
CN107333286B (en) | Wifi hotspot connection management method, apparatus and terminal device | |
CN104410517A (en) | Backspace configuring method and device | |
EP3503479A1 (en) | Flow entry management method and device | |
CN106648911A (en) | Method and device for keystroke buffeting elimination | |
CN105591813B (en) | Control method, control device and the equipment for surfing the net of online |
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 | ||
CB02 | Change of applicant information |
Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant after: Hangzhou Dipu Polytron Technologies Inc Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant before: Hangzhou Dipu Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |