CN110134467A - Processing method, device, storage medium and the processor of parameter configuration - Google Patents

Processing method, device, storage medium and the processor of parameter configuration Download PDF

Info

Publication number
CN110134467A
CN110134467A CN201810129569.6A CN201810129569A CN110134467A CN 110134467 A CN110134467 A CN 110134467A CN 201810129569 A CN201810129569 A CN 201810129569A CN 110134467 A CN110134467 A CN 110134467A
Authority
CN
China
Prior art keywords
data file
attribute
data
configuration
parameter configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810129569.6A
Other languages
Chinese (zh)
Other versions
CN110134467B (en
Inventor
王辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201810129569.6A priority Critical patent/CN110134467B/en
Priority to PCT/CN2019/073150 priority patent/WO2019154121A1/en
Publication of CN110134467A publication Critical patent/CN110134467A/en
Application granted granted Critical
Publication of CN110134467B publication Critical patent/CN110134467B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of processing method of parameter configuration, device, storage medium and processors, this method comprises: getting parms according to determining general data model configures the first instance data in the controller and the second instance data in a device, wherein, parameter configuration is for the corresponding business in Management Controller and equipment;The first instance data and the second instance data are converted into the first data file and the second data file respectively using the structured documents of determining parameter configuration, wherein the attribute of parameter configuration is defined in structured documents;First data file and the second data file are compared, and comparison result is generated to the Audit Report of parameter configuration.Through the invention, it solves the problems, such as the case where cannot knowing parameter configuration in the prior art, and then has achieved the effect that be easy to understand parameter configuration situation.

Description

Processing method, device, storage medium and the processor of parameter configuration
Technical field
The present invention relates to the communications fields, in particular to a kind of processing method of parameter configuration, device, storage medium And processor.
Background technique
The common structure of software defined network (Soft Defined Network, referred to as SDN) as shown in Figure 1, using Software (Application, referred to as APP) is by user in graphic user interface (Graphical User Interface, abbreviation Configuration (corresponding to parameter configuration among the above) to edit on GUI) is issued to controller, and configuration is stored in this by controller Ground, while also by configuration distributing to each equipment.If user safeguards configuration by APP, the configuration saved on controller and Configuration should be always consistent in equipment.However in actual operation environment, often there is the configuration saved in controller and equipment In the inconsistent situation of configuration, the reason is that multiplicity, it may be possible to system failure itself, operation of mistake of maintenance personnel etc., Having no idea in a word can be with the desired consistency of absolute guarantee user.But it is in the related technology and inconsistent there is no how to know The case where configuration, causes user not know explicitly inconsistent configured with which, causes the complexity of configuring maintenance.
Aiming at the problem that above-mentioned the case where cannot knowing parameter configuration, effective solution is not yet proposed in the related technology Certainly scheme.
Summary of the invention
The embodiment of the invention provides a kind of processing method of parameter configuration, device, storage medium and processors, at least Solve the problems, such as the case where cannot knowing parameter configuration in the related technology.
According to one embodiment of present invention, a kind of processing method of parameter configuration is provided, comprising: lead to according to determining Data model, which gets parms, configures the first instance data in the controller and the second instance data in a device, In, the parameter configuration is used to manage the corresponding business in the controller and the equipment;Utilize determining parameter configuration Structured documents respectively by first instance data and second instance data be converted to the first data file and second number According to document, wherein define the attribute of the parameter configuration in the structured documents;By first data file and described Two data files are compared, and comparison result is generated to the Audit Report of the parameter configuration.
Optionally, first instance data and second instance data are converted to respectively using the structured documents First data file and second data file include: the category of the parameter configuration defined according to the structured documents First instance data and second instance data are converted to first data file and institute respectively by property hierarchical relationship State the second data file.
Optionally, first data file and second data file are compared, and comparison result is generated The Audit Report of the parameter configuration includes: instance data and the institute of the parameter configuration in traversal first data file State the instance data of the parameter configuration in the second data file;By the attribute of the instance data in first data file Value is compared with the attribute value of the instance data in second data file;Instance number in first data file According to attribute value situation identical with the attribute value of instance data in second data file under, by first data text Shelves and second data file are added to example in list;The attribute value of instance data in first data file In the case where different from the attribute value of instance data in second data file, first data file is added to In one example list, second data file is added in the second example list;First example list is filled up to In the single configuration Audit Report data file of determining first;Second example list is filled up to the single configuration of determining second to examine It counts in data reporting document;The example is filled up to determining examine according to the attribute hierarchies relationship of the parameter configuration to list It counts in data reporting document;By described first determining single configuration Audit Report data file, second single configuration audit report It accuses data file and the Audit Report data file forms the Audit Report of the parameter configuration.
Optionally, first example list is filled up in the single configuration Audit Report data file of determining described first It include: that the node attribute values in first example list are filled up in described first single configuration Audit Report data file In left sibling attribute value, set empty for the right node attribute values in described first single configuration Audit Report data file, if It is set as no in equal attribute.
Optionally, second example list is filled up in the single configuration Audit Report data file of determining described second It include: that the node attribute values in second example list are filled up in described second single configuration Audit Report data file In right node attribute values, set empty for the left sibling attribute value in described first single configuration Audit Report data file, if It is set as no in equal attribute.
Optionally, by the example to list according to the attribute hierarchies relationship of the parameter configuration be filled up to it is determining described in It include: that attribute value of the example to the first data file in list is filled up to the audit in Audit Report data file In left sibling attribute value in data reporting document, the attribute value of second data file is filled up to the Audit Report number According in the right node attribute values in document.
Optionally, the method also includes: in first data file and second data file there is no attribute When value, the child node in first data file is compared with the child node in second data file;Described In the child node of first data file situation identical with the child node of second data file, by the example in list Whether equal attribute is configured as;In the child node and the child node phase of second data file of first data file With in the case where, by the example, in list, whether equal attribute is set as no.
Optionally, the structured documents of the parameter configuration include at least one of: including the single of the parameter configuration The structured documents of attribute;The structured documents of complex attribute including the parameter configuration.
According to another embodiment of the invention, a kind of processing unit of parameter configuration is also provided, comprising: determining module, For determining the structured documents of parameter configuration according to determining general structural model, wherein defined in the structured documents The attribute of the parameter configuration, the parameter configuration is for the corresponding business in Management Controller and equipment;Module is obtained, is used In obtaining the parameter configuration the first instance data in the controller according to determining general data model and in institute State the second instance data in equipment;Conversion module, for using the structured documents respectively will first instance data with Second instance data is converted to the first data file and the second data file;Generation module is used for first data Document and second data file are compared, and comparison result is generated to the Audit Report of the parameter configuration.
Optionally, the conversion module includes: converting unit, and the parameter for defining according to the structured documents is matched First instance data and second instance data are converted to the first data text respectively by the attribute hierarchies relationship set Shelves and second data file.
Optionally, the acquisition module includes: acquiring unit, described in obtaining according to determining general data model The first instance data of parameter configuration in the controller and the second instance data in a device.
Optionally, the structured documents are determined at least one in the following manner: the node configured based on the parameter The attribute structure of attribute hierarchies relationship and node constructs the structured documents;It is default described using the general structural model Structured documents.
Optionally, the type of the attribute of the parameter configuration includes following one: the attribute of single Configuration Type;Complex configuration The attribute of type.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, the storage medium includes storage Program, wherein described program executes method described in any of the above embodiments when running.
According to still another embodiment of the invention, a kind of processor is additionally provided, the processor is used to run program, In, described program executes method described in any of the above embodiments when running.
Through the invention, since APP is in configuration the first instance data in the controller and in a device of getting parms After second instance data, wherein parameter configuration is for the corresponding business in Management Controller and equipment;By the first instance number It is compared according to the second instance data, and comparison result is generated to the Audit Report of the parameter configuration.I.e. by controller and Parameter configuration in equipment is compared, and can explicitly search parameter configuration in controller using the comparison result user of generation It is whether consistent in equipment.Therefore, the problem of can solve the case where cannot knowing parameter configuration reaches and is easy to understand parameter and matches Set the effect of situation.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the structural schematic diagram of SDN network in the related technology;
Fig. 2 is a kind of hardware block diagram of the mobile terminal of the processing method of parameter configuration of the embodiment of the present invention;
Fig. 3 is the flow chart of the processing method of parameter configuration according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of the Audit Report generated in the embodiment of the present invention;
Fig. 5 is the structural block diagram of the processing unit of parameter configuration according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune It calculates and is executed in device.For running on mobile terminals, Fig. 2 is a kind of processing method of parameter configuration of the embodiment of the present invention Mobile terminal hardware block diagram.As shown in Fig. 2, mobile terminal 20 may include that one or more (only shows one in Fig. 2 It is a) (processor 202 can include but is not limited to the processing of Micro-processor MCV or programmable logic device FPGA etc. to processor 202 Device), memory 204 for storing data and the transmitting device 206 for communication function.Ordinary skill people Member does not cause to limit it is appreciated that structure shown in Fig. 2 only signal to the structure of above-mentioned electronic device.For example, mobile Terminal 20 may also include than shown in Fig. 2 more perhaps less component or with the configuration different from shown in Fig. 2.
Memory 204 can be used for storing the software program and module of application software, such as the parameter in the embodiment of the present invention Corresponding program instruction/the module of the processing method of configuration, the software journey that processor 202 is stored in memory 204 by operation Sequence and module realize above-mentioned method thereby executing various function application and data processing.Memory 204 may include High speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or its His non-volatile solid state memory.In some instances, memory 204 can further comprise remotely setting relative to processor 202 The memory set, these remote memories can pass through network connection to mobile terminal 20.The example of above-mentioned network includes but not It is limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 206 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of mobile terminal 20 provide.In an example, transmitting device 206 includes a Network adaptation Device (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments to It can be communicated with internet.In an example, transmitting device 206 can for radio frequency (Radio Frequency, referred to as RF) module is used to wirelessly be communicated with internet.
A kind of processing method of parameter configuration is provided in the present embodiment, and Fig. 3 is parameter according to an embodiment of the present invention The flow chart of the processing method of configuration, as shown in figure 3, the process includes the following steps:
Step S302 gets parms configuration the first instance data in the controller according to determining general data model The second instance data in a device, wherein above-mentioned parameter is configured to pair in management above controller and above equipment The business answered;
Step S304, using the structured documents of determining parameter configuration respectively by above-mentioned first instance data and above-mentioned second Instance data is converted to the first data file and the second data file, wherein defines above-mentioned parameter in above structure document and matches The attribute set;
Above-mentioned first data file and above-mentioned second data file are compared by step S306, and comparison result is raw The Audit Report configured at above-mentioned parameter.
Through the above steps, since APP is in configuration the first instance data in the controller and in a device of getting parms The second instance data after, wherein parameter configuration is for the corresponding business in Management Controller and equipment;By the first example Data and the second instance data are compared, and comparison result is generated to the Audit Report of above-mentioned parameter configuration.I.e. by controller It is compared with the parameter configuration in equipment, can explicitly search parameter configuration using the comparison result user of generation and control Whether device is consistent in equipment.Therefore, the problem of can solve the case where cannot knowing parameter configuration, reaches and is easy to understand parameter The effect of configuring condition.
Optionally, the executing subject of above-mentioned steps can be terminal etc., but not limited to this.
In the present embodiment, general structural model can be by preset, i.e., all parameter configurations are unified The structural model of format, i.e., all parameter configurations can use, and the structured documents of parameter configuration are to general structure mould The finer description of type.Each attribute node of parameter configuration is contained in structured documents.It can by general structural model All parameter configurations are unified into identical format, facilitate subsequent comparison.General data pattern with it is general among the above Structural model effect it is identical, be that instance data is unified into identical format, facilitate the comparison of data.First is implemented Data and the second instance data are converted to unified format (the first data file, the second data file) and are compared, and improve The efficiency compared.
In an alternative embodiment, the structured documents of above-mentioned parameter configuration include at least one of: including above-mentioned The structured documents of the single attribute of parameter configuration;The structured documents of complex attribute including above-mentioned parameter configuration.In the present embodiment In, it may include multiple single attributes and multiple complex attributes, the category for including in the structured documents of parameter configuration in complex attribute Property quantity can be determined by the actual disposition data on controller or equipment, increase the diversity of parameter configuration.
In an alternative embodiment, using above structure document respectively by the first instance data and the second instance data It is converted to the first data file and the second data file includes: the attribute of the above-mentioned parameter configuration defined according to above structure document First instance data and the second instance data are converted to the first data file and the second data file respectively by hierarchical relationship.At this In embodiment, the operation that the above-mentioned attribute hierarchies relationship according to parameter configuration converts instance data increases conversion Accuracy.
In an alternative embodiment, above-mentioned first data file and the second data file are compared, and will compared The Audit Report that relatively result generates above-mentioned parameter configuration includes: the instance number for traversing the above-mentioned parameter configuration in the first data file According to the instance data with the above-mentioned parameter configuration in the second data file;By the category of the instance data in above-mentioned first data file Property value is compared with the attribute value of the instance data in the second data file;The category of instance data in the first data file Property value situation identical with the attribute value of instance data in the second data file under, by the first data file and the second data text Shelves are added to example in list;Example in the attribute value and the second data file of the instance data in the first data file In the case that the attribute value of data is different, the first data file is added in the first example list, the second data file is added It is added in the second example list;First example list is filled up in the single configuration Audit Report data file of determining first;It will Second example list is filled up in the single configuration Audit Report data file of determining second;By examples detailed above to list according to parameter The attribute hierarchies relationship of configuration is filled up in determining Audit Report data file;By determining first single configuration Audit Report number According to examining for document, second single configuration Audit Report data file and the composition above-mentioned parameter configuration of above-mentioned Audit Report data file Meter report.In the present embodiment, different example lists is generated according to different comparison results, and by different example list groups At Audit Report, so that covering a possibility that different in Audit Report, the convenience of later period lookup is increased.
In an alternative embodiment, above-mentioned first example list is filled up to the single configuration Audit Report of determining first It include: that the node attribute values in the first example list are filled up to above-mentioned first single configuration Audit Report data text in data file In left sibling attribute value in shelves, sets empty for the right node attribute values in first single configuration Audit Report data file, be It is set as no in no equal attribute.
In an alternative embodiment, above-mentioned second example list is filled up to the single configuration Audit Report of determining second It include: that the node attribute values in the second example list are filled up in second single configuration Audit Report data file in data file Right node attribute values in, set empty for the left sibling attribute value in first single configuration Audit Report data file, if phase Deng attribute in be set as no.
In an alternative embodiment, examples detailed above fills out the attribute hierarchies relationship that list is configured according to above-mentioned parameter Writing includes: attribute value by examples detailed above to the first data file in list in determining above-mentioned Audit Report data file It is filled up in the left sibling attribute value in above-mentioned Audit Report data file, the attribute value of the second data file is filled up to above-mentioned In right node attribute values in Audit Report data file.
In an alternative embodiment, the above method further include: in above-mentioned first data file and the second data file In when there is no attribute value, the child node in the first data file is compared with the child node in the second data file;? In the child node of one data file situation identical with the child node of the second data file, by example to whether equal in list Attribute is configured as;It, will be above-mentioned in the child node situation identical with the child node of the second data file of the first data file To in list, whether equal attribute is set as no to example.In the present embodiment, in the first data file and the second data file In when there is no attribute value, example can be added to in list, if equal attribute is then needed according to the son in data file The case where node, is filled in.
In an alternative embodiment, above structure document is determined at least one in the following manner: being based on above-mentioned ginseng The attribute hierarchies relationship of the node of number configuration and the attribute structure of node construct above structure document;Utilize above-mentioned general knot Structure model presets above structure document.
In an alternative embodiment, the type of the attribute of above-mentioned parameter configuration includes following one: single Configuration Type Attribute;The attribute of complex configuration type.
The present invention is described in detail combined with specific embodiments below:
Specific embodiment 1:
The present embodiment provides configure in the configuration and equipment that save in a kind of audit controller and export Audit Report Method.The method allows user in time, clearly to recognize that the configuration in controller (is matched corresponding to parameter among the above Set) and the configuration in equipment consistency situation, for user solve problem of inconsistency foundation is provided.
The present embodiment configuration definition model that be first different types of configuration definition general is (logical corresponding among the above Structural model) and profile instance data model (corresponding to general data model among the above);According to general configuration Definition Model, each type of configuration need to provide a configuration definition structured documents (corresponding to parameter configuration among the above Structured documents) accurately to describe the structure of the data model of such configuration;According to configuration definition structured documents, APP will be from control Device obtains or is converted into corresponding configuration data document (corresponding to first among the above from the configuration that equipment obtains by controller Data file, the second data file), after finally this two parts of documents being compared by APP export Audit Report.
SDN network: compared with traditional network, interchanger or router based on SDN network only exist forwarding surface (number According to face) logic, mainly according to the logic of controller complete forward, pass through Openflow agreement (or other agreements) realize With SDN controller intercommunication described in this method.
Controller:, which realizing forwarding logic, issues in SDN network and to SDN network equipment the software systems of forwarding instruction.SDN Controller (Controller) is realized and SDN network device intercommunicating by Openflow agreement (or other agreements).
Configuration: for control with the parameter setting of the various resources of Management Controller or business (corresponding among the above Parameter configuration is for the corresponding business in Management Controller and equipment);
APP: APP described in the present embodiment is realized based on WEB, is adjusted by application layer protocol (such as RESTFull interface etc.) The interface of the control and management that are provided with controller.
Relevant data model is illustrated by the present embodiment:
Table 1 is the structure (ConfDef) of Configuration Type definition document, and the attribute for defining Configuration Type definition document is constituted And the hierarchical relationship between attribute, each Configuration Type may have multiple attributes, determinant attribute is come respectively for determining It whether is a pair of of example with mapping relations from controller and the profile instance of equipment.
Table 1
Table 2 is the structure (AttrNodeDef) of attribute node in Configuration Type definition document, for defining an attribute section Point;Attribute node can be defined as simple types or compound type;The wherein attribute section of the compound type with singleton pattern Point must descend a sub- profile instance of extension, meeting type attribute node and following can hang uncertain quantity with many cases mode Sub- profile instance.
Table 2
Table 3 is the structure (Conf) of profile instance data file, defines the data file for storing single profile instance Common data structure, specific object hierarchical relationship are described by corresponding " Configuration Type definition document ".
Table 3
Field name Field type Description
instanceName STRING Instance name
attrNodeList List of AttrNode Attribute node list
Table 4 is the structure (AttrNode) of attribute node in profile instance data file;
Table 4
Table 5 is the structure (ConfList) of profile instance table data document, defines the multiple profile instance data of storage Common data structure.
Table 5
Field name Field type Description
confTypeID STRING Configuration Type number
confList List of Conf Attribute node list
Table 6 is the structure (AuditConfList) for configuring Audit Report data file, defines storage configuration Audit Report The common data structure of data.
Table 6
Table 7 is the structure (AuditConf) of single profile instance Audit Report data file, and it is real to define the single configuration of storage The common data structure of the Audit Report data of example;" Configuration Type is fixed by corresponding for hierarchical relationship between its attribute and attribute Adopted document " description.
Table 7
The structure (AttrNodePair) of 8 configuration attribute node pair of table.
Table 8
Specific embodiment 2:
The basic step for individual node single Configuration Type profile instance process flow of auditing in the present embodiment is as follows:
" the Configuration Type definition document " that this kind of Configuration Type is write in APP acquisition in advance (is matched corresponding to parameter among the above The structured documents set).Following code show a sample of Configuration Type definition document (ConfDef):
Configuration Type
XX business
Configuration Type number: conf1
Configuration Type internationalization title: xx business
Determinant attribute:
Attribute
Attribute 1
Nodal community title: attr1
Nodal community internationalization title: attribute 1
Node mode: SIMPLE
Attribute 2
Nodal community title: attr2
Nodal community internationalization title: attribute 2
Node mode: SIMPLE
Attribute 3
Nodal community title: attr3
Nodal community internationalization title: attribute 3
Node mode: SIMPLE
Attribute 4
Nodal community title: attr4
Nodal community internationalization title: sub- configuration A
Node mode: COMPLEX
Sub- profile instance scale: SIMPLE
Sub- Configuration Type: sub- configuration A
Attribute 5
Nodal community title: attr5
Nodal community internationalization title: sub- configuration B
Node mode: COMPLEX
Sub- profile instance scale: MULTIPLE
Sub- Configuration Type: sub- configuration B
The attribute of " attribute 1 ", " attribute 2 ", " attribute 3 " three general types is wherein contained (corresponding to list among the above The structured documents of one attribute) and " sub- configuration A ", " sub- configuration B " two compound types attribute (corresponding to compound category among the above The structured documents of property);Attribute " sub- configuration A " is singleton pattern, it is necessary to possess the example that can only also possess a son configuration A;Belong to Property " sub- configuration A " be many cases mode, possess and match from the quantity of son configuration B example depending on the reality on controller or in equipment Data are set, shown in code specific as follows:
Configuration Type
Son configuration A
Configuration Type number: subconfa
Configuration Type internationalization title: sub- configuration A
Determinant attribute:
Attribute
Attribute A1
Nodal community title: attra1
Nodal community internationalization title: attribute A1
Node mode: SIMPLE
Attribute A2
Nodal community title: attra2
Nodal community internationalization title: attribute A2
Node mode: SIMPLE
Attribute A3
Nodal community title: attra3
Nodal community internationalization title: attribute A3
Node mode: SIMPLE
Configuration Type
Son configuration B
Configuration Type number: subconfb
Configuration Type internationalization title: sub- configuration B
Determinant attribute:
Attribute
Attribute B1
Nodal community title: attrb1
Nodal community internationalization title: attribute B1
Node mode: SIMPLE
Attribute B2
Nodal community title: attrb2
Nodal community internationalization title: attribute B2
Node mode: SIMPLE
Attribute B3
Nodal community title: attrb3
Nodal community internationalization title: attribute B3
Node mode: SIMPLE
APP obtains all instance datas of this kind of Configuration Type from controller and equipment (corresponding among the above respectively One instance data, the second instance data), and the attribute layer defined according to " the Configuration Type definition document " that gets among the above These instance datas are built into " profile instance table data document " by secondary relationship, which to simplify the description, will This two parts of data files are known as left example list and right example list (corresponds respectively to the first data file and second among the above Instance document);Code as follows is respectively the sample of left example list and right example list;
APP traverses the example in left example list, by left example compared with each right example determinant attribute value, if energy Find all equal right example of each determinant attribute value, then it is assumed that they are " left and right examples to " (corresponding to example among the above To list);If can not find example right in this way, it is called " falling single left example ";Similarly, it can not find in right example list pair Left example is answered, referred to as " falls single right example ".
APP falls single left example composition one " falling single left example list " (corresponding to the first example column among the above for all Table), single right example composition one " falling single right example list " (corresponding to the second example list among the above) is fallen by all, by institute By left and right example to forming " left and right example is to list ".
APP will first fall single left example by a Audit Report being filled up to " structure of configuration Audit Report data file " In data file, each " falling single left example " is filled up to one and meets " structure of single profile instance Audit Report data file " Data file, nodal community are filled up in " left sibling attribute value ", " right node attribute values " be all set to it is empty, " whether phase Deng " it is set as "No";
Then " left and right example to " is filled up in Audit Report data file by APP by attribute hierarchies relationship, each " left and right Example to " be filled up in one " single profile instance Audit Report data file ", the attribute value of left example, which is filled up to, writes " Zuo Jie In point attribute value ", the attribute value of right example, which is filled up to, to be write in " right node attribute values ", is filled out by comparing left and right node attribute values Write " whether equal " attribute value of node;If present node does not have attribute value, it is also necessary to judge all sub- sections of present node Whether point is all equal, as long as there have one to be unequal, then present node also must necessarily be located " unequal ";
Then APP will fall single right example and be added in the data file of Audit Report by attribute hierarchies relationship, each " fall list Right example " is filled up in the data file that one meets " structure of single profile instance Audit Report data file ", node category Property be filled up in " right node attribute values ", corresponding " left sibling attribute value ", which is all set to empty, " whether equal ", to be set as "No";
Finally get configuration Audit Report data file shown in following code;
The configuration class in " Configuration Type definition document " obtained in the Audit Report data combination step 1 that APP will acquire The information such as type internationalization title, attribute internationalization title, so that it may very easily render examining for user's needs as shown in Figure 4 Meter reports, this part report in by the discrepant node in left and right with grey mark out come.
In conclusion completing controller using the present embodiment the present invention provides a kind of method of general audit configuration Configuration audit between equipment provides detailed configuration Audit Report to the administrative staff of SDN network.Use this scheme It can complete the audit function of the data between various not homologous rays.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Additionally provide a kind of processing unit of parameter configuration in the present embodiment, the device for realizing above-described embodiment and Preferred embodiment, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module " The combination of the software and/or hardware of energy.It is hard although device described in following embodiment is preferably realized with software The realization of the combination of part or software and hardware is also that may and be contemplated.
Fig. 5 is the structural block diagram of the processing unit of parameter configuration according to an embodiment of the present invention, as shown in figure 5, the device It comprises determining that module 52, conversion module 54 and generation module 56, the device is described in detail below:
Determining module 52, for the first reality configured in the controller that gets parms according to determining general data model Number of cases evidence and the second instance data in a device, wherein above-mentioned parameter is configured to management above controller and above equipment In corresponding business;Conversion module 54 is connected to the knot that determining module 52 among the above is used for the parameter configuration using determination Above-mentioned first instance data and above-mentioned second instance data are converted to the first data file and the second data text respectively by structure document Shelves, wherein the attribute of above-mentioned parameter configuration is defined in above structure document;Generation module 56 is connected to conversion among the above Module 54 for above-mentioned first data file and above-mentioned second data file to be compared, and comparison result is generated above-mentioned The Audit Report of parameter configuration.
In an alternative embodiment, above-mentioned conversion module includes: converting unit, for fixed according to above structure document The attribute hierarchies relationship of the above-mentioned parameter configuration of justice is respectively converted to above-mentioned first instance data and above-mentioned second instance data Above-mentioned first data file and above-mentioned second data file.
In an alternative embodiment, the structured documents of above-mentioned parameter configuration include at least one of: including above-mentioned The structured documents of the single attribute of parameter configuration;The structured documents of complex attribute including above-mentioned parameter configuration.
In an alternative embodiment, above-mentioned apparatus is in the following manner by the first data file and the second data file It is compared, and comparison result is generated to the Audit Report of above-mentioned parameter configuration: the above-mentioned parameter in the first data file of traversal The instance data of above-mentioned parameter configuration in the instance data of configuration and the second data file;By the example in the first data file The attribute value of data is compared with the attribute value of the instance data in the second data file;Example in the first data file In the attribute value of data situation identical with the attribute value of instance data in the second data file, by the first data file and Two data files are added to example in list;The attribute value of instance data in the first data file and the second data file In instance data attribute value it is different in the case where, the first data file is added in the first example list, by the second number It is added in the second example list according to document;Above-mentioned first example list is filled up to the single configuration Audit Report number of determining first According in document;Above-mentioned second example list is filled up in the single configuration Audit Report data file of determining second;By above-mentioned reality Example is filled up to the attribute hierarchies relationship that list is configured according to above-mentioned parameter in determining Audit Report data file;It will be determining First single configuration Audit Report data file, second single configuration Audit Report data file and above-mentioned Audit Report data file Form the Audit Report of above-mentioned parameter configuration.
In an alternative embodiment, the first example list is filled up to determining in the following manner by above-mentioned apparatus In one single configuration Audit Report data file: the node attribute values in above-mentioned first example list being filled up to first single configuration and are examined It counts in the left sibling attribute value in data reporting document, by the right node attribute values in first single configuration Audit Report data file It is set as empty, if be set as no in equal attribute.
In an alternative embodiment, the second example list is filled up to determining in the following manner by above-mentioned apparatus In two single configuration Audit Report data files: the node attribute values in the second example list are filled up to second single configuration audit report It accuses in the right node attribute values in data file, by the left sibling attribute value in above-mentioned first single configuration Audit Report data file It is set as empty, if be set as no in equal attribute.
In an alternative embodiment, above-mentioned apparatus in the following manner by examples detailed above to list according to above-mentioned parameter The attribute hierarchies relationship of configuration is filled up in determining above-mentioned Audit Report data file: by examples detailed above to first in list The attribute value of data file is filled up in the left sibling attribute value in above-mentioned Audit Report data file, by above-mentioned second data text The attribute value of shelves is filled up in the right node attribute values in above-mentioned Audit Report data file.
In an alternative embodiment, above-mentioned apparatus further include: comparison module, in above-mentioned first data file and When there is no attribute value in the second data file, by the first data file child node and the second data file in child node into Row compares;In the child node situation identical with the child node of the second data file of the first data file, by examples detailed above pair Whether equal attribute is configured as in list;It is identical as the child node of the second data file in the child node of the first data file In the case where, by examples detailed above, in list, whether equal attribute is set as no.
In an alternative embodiment, above structure document is determined at least one in the following manner: being based on above-mentioned ginseng The attribute hierarchies relationship of the node of number configuration and the attribute structure of node construct above structure document;Utilize above-mentioned general knot Structure model presets above structure document.
In an alternative embodiment, the type of the attribute of above-mentioned parameter configuration includes following one: single Configuration Type Attribute;The attribute of complex configuration type.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
The embodiments of the present invention also provide a kind of storage medium, which includes the program of storage, wherein above-mentioned Program executes method described in any of the above embodiments when running.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store for executing above each step Program code.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store program code such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of processor, the processor is for running program, wherein program operation Step in Shi Zhihang any of the above-described method.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc. With replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (12)

1. a kind of processing method of parameter configuration characterized by comprising
It gets parms configuration the first instance data in the controller and in a device according to determining general data model Second instance data, wherein the parameter configuration is used to manage the corresponding business in the controller and the equipment;
First instance data and second instance data are converted respectively using the structured documents of determining parameter configuration For the first data file and the second data file, wherein define the attribute of the parameter configuration in the structured documents;
First data file and second data file are compared, and comparison result is generated into the parameter configuration Audit Report.
2. the method according to claim 1, wherein using the structured documents respectively by first instance number According to being converted to first data file with second instance data and second data file includes:
The attribute hierarchies relationship of the parameter configuration defined according to the structured documents respectively by first instance data and Second instance data is converted to first data file and second data file.
3. the method according to claim 1, wherein by first data file and second data file It is compared, and includes: by the Audit Report that comparison result generates the parameter configuration
It traverses described in the instance data and second data file of the parameter configuration in first data file The instance data of parameter configuration;
By the category of the instance data in the attribute value of the instance data in first data file and second data file Property value is compared;
The category of instance data in the attribute value and second data file of the instance data in first data file Property the identical situation of value under, first data file and second data file are added to example in list;
The category of instance data in the attribute value and second data file of the instance data in first data file Property value it is different in the case where, first data file is added in the first example list, second data file is added It is added in the second example list;
First example list is filled up in the single configuration Audit Report data file of determining first;
Second example list is filled up in the single configuration Audit Report data file of determining second;
The example is filled up to determining Audit Report data text according to the attribute hierarchies relationship of the parameter configuration to list In shelves;
By determining described first single configuration Audit Report data file, second single configuration Audit Report data file and The Audit Report data file forms the Audit Report of the parameter configuration.
4. according to the method described in claim 3, it is characterized in that, first example list is filled up to determining described Include: in one single configuration Audit Report data file
Node attribute values in first example list are filled up in described first single configuration Audit Report data file In left sibling attribute value, set empty for the right node attribute values in described first single configuration Audit Report data file, if It is set as no in equal attribute.
5. according to the method described in claim 3, it is characterized in that, second example list is filled up to determining described Include: in two single configuration Audit Report data files
Node attribute values in second example list are filled up in described second single configuration Audit Report data file In right node attribute values, set empty for the left sibling attribute value in described first single configuration Audit Report data file, if It is set as no in equal attribute.
6. according to the method described in claim 3, it is characterized in that, by the example to list according to the category of the parameter configuration Property hierarchical relationship, which is filled up in the determining Audit Report data file, includes:
Attribute value of the example to the first data file in list is filled up to the left side in the Audit Report data file In node attribute values, the right node category that the attribute value of second data file is filled up in the Audit Report data file In property value.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
It, will be in first data file when there is no attribute value in first data file and second data file Child node is compared with the child node in second data file;
In the child node situation identical with the child node of second data file of first data file, by the reality To in list, whether equal attribute is configured as example;
In the child node situation identical with the child node of second data file of first data file, by the reality To in list, whether equal attribute is set as no to example.
8. the method according to claim 1, wherein the structured documents of the parameter configuration include it is following at least it One:
The structured documents of single attribute including the parameter configuration;
The structured documents of complex attribute including the parameter configuration.
9. the method according to claim 1, wherein determining the structure text at least one in the following manner Shelves:
The attribute hierarchies relationship of the node configured based on the parameter and the attribute structure of node construct the structured documents;
The structured documents are preset using general structural model.
10. the method according to claim 1, wherein the type of the attribute of the parameter configuration include it is following it One:
The attribute of single Configuration Type;
The attribute of complex configuration type.
11. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein when described program is run Method described in any one of perform claim requirement 1 to 10.
12. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 1 to 10 described in method.
CN201810129569.6A 2018-02-08 2018-02-08 Parameter configuration processing method and device, storage medium and processor Active CN110134467B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810129569.6A CN110134467B (en) 2018-02-08 2018-02-08 Parameter configuration processing method and device, storage medium and processor
PCT/CN2019/073150 WO2019154121A1 (en) 2018-02-08 2019-01-25 Processing method and device for parameter configuration, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810129569.6A CN110134467B (en) 2018-02-08 2018-02-08 Parameter configuration processing method and device, storage medium and processor

Publications (2)

Publication Number Publication Date
CN110134467A true CN110134467A (en) 2019-08-16
CN110134467B CN110134467B (en) 2021-11-02

Family

ID=67549220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810129569.6A Active CN110134467B (en) 2018-02-08 2018-02-08 Parameter configuration processing method and device, storage medium and processor

Country Status (2)

Country Link
CN (1) CN110134467B (en)
WO (1) WO2019154121A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168144A (en) * 2014-08-22 2014-11-26 国都兴业信息审计系统技术(北京)有限公司 Method for auditing SDN
CN104767841A (en) * 2015-04-30 2015-07-08 杭州华三通信技术有限公司 Method for updating address resolution protocol table item in software-defined network and gateway equipment
WO2016153713A1 (en) * 2015-03-23 2016-09-29 Brocade Communications Systems, Inc. Flow-specific failure detection in sdn networks
CN106130802A (en) * 2016-08-30 2016-11-16 杭州华三通信技术有限公司 A kind of configuration smoothing method and device
CN106254447A (en) * 2016-07-29 2016-12-21 北京华为数字技术有限公司 Load-balancing method, BRAS equipment and SDN controller
WO2017051315A1 (en) * 2015-09-25 2017-03-30 Telefonaktiebolaget Lm Ericsson (Publ) Sdn controller logic-inference network troubleshooter (sdn-lint) tool
CN106888110A (en) * 2016-12-16 2017-06-23 新华三技术有限公司 A kind of configuration data synchronization method and device
CN107104819A (en) * 2017-03-23 2017-08-29 武汉邮电科学研究院 Adaptive self-coordinating unified communications and communication means based on SDN
CN107395380A (en) * 2016-05-16 2017-11-24 中兴通讯股份有限公司 A kind of method for processing business and system
CN107517121A (en) * 2016-06-17 2017-12-26 华为技术有限公司 Equipment configuration method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050060643A1 (en) * 2003-08-25 2005-03-17 Miavia, Inc. Document similarity detection and classification system
CN102111215A (en) * 2010-12-23 2011-06-29 中兴通讯股份有限公司 Method and device for synchronizing configuration data
CN106372040B (en) * 2016-08-24 2019-03-12 长园深瑞继保自动化有限公司 Intelligent substation configuration file otherness comparison system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168144A (en) * 2014-08-22 2014-11-26 国都兴业信息审计系统技术(北京)有限公司 Method for auditing SDN
WO2016153713A1 (en) * 2015-03-23 2016-09-29 Brocade Communications Systems, Inc. Flow-specific failure detection in sdn networks
CN104767841A (en) * 2015-04-30 2015-07-08 杭州华三通信技术有限公司 Method for updating address resolution protocol table item in software-defined network and gateway equipment
WO2017051315A1 (en) * 2015-09-25 2017-03-30 Telefonaktiebolaget Lm Ericsson (Publ) Sdn controller logic-inference network troubleshooter (sdn-lint) tool
CN107395380A (en) * 2016-05-16 2017-11-24 中兴通讯股份有限公司 A kind of method for processing business and system
CN107517121A (en) * 2016-06-17 2017-12-26 华为技术有限公司 Equipment configuration method and device
CN106254447A (en) * 2016-07-29 2016-12-21 北京华为数字技术有限公司 Load-balancing method, BRAS equipment and SDN controller
CN106130802A (en) * 2016-08-30 2016-11-16 杭州华三通信技术有限公司 A kind of configuration smoothing method and device
CN106888110A (en) * 2016-12-16 2017-06-23 新华三技术有限公司 A kind of configuration data synchronization method and device
CN107104819A (en) * 2017-03-23 2017-08-29 武汉邮电科学研究院 Adaptive self-coordinating unified communications and communication means based on SDN

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
NICK FEAMSTER ETC.: "The Road to SDN: An intellectual history of programmable networks", 《 ACM SIGCOMM COMPUTER COMMUNICATION REVIEW》 *
ROHIT KATIYAR ETC.: "Auto-Configuration of SDN Switches in SDN/Non-SDN", 《AINTEC "15: PROCEEDINGS OF THE ASIAN INTERNET ENGINEERING CONFERENCE》 *
徐慧 等: "基于NETCONF协议的新一代网络管理", 《北京邮电大学学报》 *
王茜等: "SDN标准化和应用场景探讨", 《中兴通讯技术》 *

Also Published As

Publication number Publication date
WO2019154121A1 (en) 2019-08-15
CN110134467B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN112153700B (en) Network slice resource management method and equipment
US9800470B2 (en) Methods and system for automated or user-assisted grouping and management of groups in cloud infrastructure and network
US20210116903A1 (en) Use of a smart node in a universal, smart system for monitoring industrial processes
CN102084623B (en) Control the methods, devices and systems of self-optimization switch
WO2023098374A1 (en) Network resource deployment method and apparatus, and electronic device and storage medium
CN107104824A (en) A kind of network topology determines method and apparatus
EP3158687B1 (en) Automated placement of measurement endpoint nodes in a network
CN104184826A (en) Multi-data-center storage environment managing method and system
CN110086640A (en) The enabled method and apparatus of business
CN105490843A (en) Information processing method and system
WO2011082826A1 (en) Network optimisation
EP3893437B1 (en) Method and device for deploying virtual network function
CN108809680A (en) A kind of method and apparatus of equipment management
CN110134467A (en) Processing method, device, storage medium and the processor of parameter configuration
CN116886503A (en) Communication matrix total table splitting control method and related equipment
CN110460456B (en) Method and device for synchronously generating network topology by Management Information Base (MIB)
CN108683547A (en) A kind of wireless sensor network configuration method of software definition
CN114417633B (en) Network shooting range scene construction method and system based on parallel simulation six-tuple
WO2017213065A1 (en) Service management system, service management method, and recording medium
CN108958758A (en) A kind of management information bank MIB data managing method and device
US11182174B2 (en) System configuration analysis for migration
JP5782393B2 (en) Network resource distributed management method and program
JP2019205080A (en) Conversion device, and conversion program
CN104572884B (en) Apparatus control method, apparatus and system
US20230385708A1 (en) Reconciling computing infrastructure and data in federated learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant