CN110830278A - Equipment configuration updating method, equipment configuration updating device and computer readable storage medium - Google Patents

Equipment configuration updating method, equipment configuration updating device and computer readable storage medium Download PDF

Info

Publication number
CN110830278A
CN110830278A CN201810904822.0A CN201810904822A CN110830278A CN 110830278 A CN110830278 A CN 110830278A CN 201810904822 A CN201810904822 A CN 201810904822A CN 110830278 A CN110830278 A CN 110830278A
Authority
CN
China
Prior art keywords
matching
configuration
service
condition
attribute
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.)
Pending
Application number
CN201810904822.0A
Other languages
Chinese (zh)
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 CN201810904822.0A priority Critical patent/CN110830278A/en
Publication of CN110830278A publication Critical patent/CN110830278A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements

Abstract

The invention discloses an equipment configuration updating method, an equipment configuration updating device and a computer readable storage medium, and belongs to the field of communication. The method comprises the following steps: the method comprises the steps that equipment receives a configuration message issued by a network manager, wherein the configuration message carries service configuration information, and the service configuration information comprises matching conditions and matching rules; and the equipment updates the configuration of the database according to the matching condition and the matching rule of the service configuration information. By the embodiment of the invention, the partial configuration replacement of the same service with finer granularity can be realized, and the flexibility of the user service configuration is enhanced.

Description

Equipment configuration updating method, equipment configuration updating device and computer readable storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to an apparatus configuration updating method, an apparatus for updating, and a computer-readable storage medium.
Background
The configuration on the communication equipment is stored in a database and is uniformly managed by a configuration channel. In practical application, the network management supports off-line configuration, that is, a user can edit service configuration locally in the network management and store the service configuration in a local database of the network management. After the configuration editing is finished and the network manager is connected with the equipment, the network manager issues the local service configuration to the equipment in a full mode, so that the configuration on the equipment is consistent with the configuration on the network manager.
By the above mode, synchronization of different granularities configured on equipment and network management can be realized. The first is the synchronization of the whole device configuration, i.e. the whole configuration on the device is consistent with the network management. The second is the synchronization of some service configurations on the device, i.e. some service configurations on the device are consistent with the network management. Most vendors now support both of these configuration replacement mechanisms.
But in practical application, a finer-grained configuration replacement is also needed, namely, a partial configuration replacement in the same service. According to the related configuration replacement mechanism, only the configuration replacement of a service configuration layer can be achieved, and the replacement of the internal configuration of the same service cannot be achieved, but the existing configuration synchronization mechanism cannot meet the fine-grained network management configuration mode, and if the configuration replacement of the whole service table is carried out according to the existing related configuration replacement mechanism, the service configuration information is lost, and the service interruption is caused. Such as shown in fig. 1. The configuration of IP addresses is stored in a certain service table of the equipment database, and the IP addresses comprise public network IP addresses and private network IP addresses. The network manager manages only the public network service, including the public network IP address (but not involving the configuration of the private network IP address). When the network manager wants to replace or synchronize all local public network services to the equipment integrally, the full-volume report full-volume configuration message is sent to the equipment, and the equipment can replace all the configurations of the IP address table on the equipment into the IP address configuration of the public network (namely, the entire IP address table is replaced into the configuration on the network manager), so that the IP address of the private network is lost.
In addition, in practical application, there are different configurations of different interface types managed by the same network manager, for example, some network managers manage the configuration of Ethernet port, some network managers manage the configuration of channelized port, some network managers manage the configuration of public network Ethernet port service, and different network managers manage the configuration of specific part in IP address table, and configuration items not managed by the different network managers cannot be modified by the different network managers.
In order to solve the above problems, a new service configuration replacement method needs to be provided to implement partial configuration replacement in the same service with finer granularity, thereby enhancing flexibility of user service configuration.
Disclosure of Invention
In view of this, the present invention provides an apparatus configuration updating method, an apparatus for updating, and a computer-readable storage medium, so as to implement finer-grained partial configuration replacement in the same service, thereby enhancing flexibility of user service configuration.
The technical scheme adopted by the invention for solving the technical problems is as follows:
according to an aspect of the present invention, there is provided a device configuration update method, including:
the method comprises the steps that equipment receives a configuration message sent by a network manager, wherein the configuration message carries service configuration information;
and the equipment updates the configuration of the database in a matching way according to the service configuration information.
According to another aspect of the present invention, there is provided an apparatus for updating device configuration, which is applied to the apparatus configuration updating method, the updating apparatus includes: receiving module, update module, wherein:
the receiving module is used for receiving a configuration message sent by a network manager by equipment, wherein the configuration message carries service configuration information;
and the updating module is used for matching and updating the database configuration according to the service configuration information by the equipment.
According to another aspect of the present invention, there is provided a device configuration update apparatus, including: the device configuration updating method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, the steps of the device configuration updating method provided by the embodiment of the invention are realized.
According to another aspect of the present invention, a computer-readable storage medium is provided, on which a program of the device configuration update method is stored, and when the program of the device configuration update method is executed by a processor, the steps of the device configuration update method provided by the embodiment of the present invention are implemented.
Compared with the prior art, the equipment configuration updating method, the updating device and the computer readable storage medium provided by the invention receive the configuration message issued by the network manager through the equipment, wherein the configuration message carries the service configuration information, and the service configuration information comprises the matching condition and the matching rule; the equipment matches and updates the database configuration according to the matching conditions and the matching rules of the service configuration information, and can realize updating and replacing fine-grained internal configuration of the same service on the network manager to the equipment according to the conditions, so that the database configuration model on the equipment can support more diversified, more accurate and finer-grained network manager configuration replacement without changing, and the flexibility of user service configuration is enhanced.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Drawings
FIG. 1 is a diagram illustrating an effect of updating device configuration according to a related art;
fig. 2 is a schematic flowchart of an apparatus configuration updating method according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating an effect of an apparatus configuration updating method according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating that device service configuration information is stored in a configuration packet in a JSON syntax format according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment in which device service configuration information is stored in a configuration packet in a JSON syntax format according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating an apparatus configuration updating method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus configuration updating device according to an embodiment of the present invention;
fig. 8 is another schematic structural diagram of an apparatus configuration updating device according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
It should be noted that the terms first, second and the like in the description and in the claims, and in the drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The invention provides a condition-based equipment configuration updating and replacing method, which meets the requirement of configuration replacement with smaller granularity. Through configuration replacement based on conditions, which entries in the database service table on the device need to be replaced pass through the condition limit range, and service data in other non-condition ranges are kept unchanged. Specifically, the network manager carries the matching conditions and matching rules of the service when issuing the configuration, and the device performs condition matching to replace the database configuration according to the conditions such as the matching conditions and the matching rules. Therefore, the database configuration model on the equipment can support more diversified and more accurate network management configuration replacement without changing.
Please refer to fig. 2. The invention provides a condition-based equipment configuration updating method, which comprises the following steps:
s1, the device receives a configuration message sent by a network manager, wherein the configuration message carries service configuration information, and the service configuration information comprises matching conditions and matching rules;
and S2, the equipment updates the database configuration according to the service configuration information matching.
Further, before the step S1 in which the device receives a configuration packet sent by a network manager, where the configuration packet carries service configuration information, the method further includes: the device and the network manager negotiate in advance to determine a service configuration matching mechanism, the service matching mechanism is used for limiting the range of updating and replacing database service table configuration on the device, and the service table comprises the name of the service table, the attribute of the service and the attribute value.
Further, in step S1, the step of receiving, by the device, a configuration packet sent by the network manager, where the configuration packet carries service configuration information includes: the service configuration information comprises matching conditions and matching rules; wherein:
the matching condition comprises at least one condition, the condition comprises one attribute or a plurality of attribute components, and the attribute are in an and relation; each attribute includes one or more attribute values, and the attribute values have an or relationship. When the matching condition includes a plurality of conditions, the relationship between each condition is an or relationship.
The matching rules comprise condition matching rules and attribute matching rules; wherein the condition matching rule is: a condition matches only if all attributes within the condition match. The attribute matching rule is as follows: an attribute may match whenever one of its values matches. The matching rules for attribute/attribute value matching may be divided into equal-time matching, unequal-time matching, greater-time matching, smaller-time matching, character prefix matching, character complete matching, interface filter number matching, regular expression matching, and the like, and specifically to the practical application of this embodiment, the matching rules include, but are not limited to, the following conditions: prefix matching, complete matching, matching when a value in a database is not equal to a condition value, matching when a value in a database is greater than or equal to a condition value, matching when a value in a database is less than or equal to a condition value, regular expression matching, interface type matching, and the like.
Further, in step S2, the step of updating, by the device according to the service configuration information, the database configuration includes: according to the service configuration information, the equipment updates and replaces database service table configuration which accords with the service configuration information; the method specifically comprises the following steps:
if the service configuration information does not carry the matching conditions and matching rules of the service, the configuration of the database service table updated and replaced by the equipment is completely consistent with the configuration on the network management.
And if the service configuration information carries the matching conditions and the matching rules of the services, the equipment updates and replaces the configuration of the database service table which meets the matching conditions and the matching rules, and the configuration of the database service table which does not meet the matching conditions and the matching rules is kept unchanged.
The method for updating the equipment configuration provided by the invention comprises the steps that the equipment receives a configuration message issued by a network manager, wherein the configuration message carries service configuration information, and the service configuration information comprises a matching condition and a matching rule; the equipment matches and updates the database configuration according to the matching conditions and the matching rules of the service configuration information, and can realize updating and replacing fine-grained internal configuration of the same service on the network manager to the equipment according to the conditions, so that the database configuration model on the equipment can support more diversified, more accurate and finer-grained network manager configuration replacement without changing, and the flexibility of user service configuration is enhanced.
The technical solution of the present invention is further described in detail with reference to the following examples.
Example 1:
in this embodiment, the configuration of the IP address is stored in a service table of the device database, and the IP address includes a public network IP address and a private network IP address. The network manager manages only the public network service, including the public network IP address (but not involving the configuration of the private network IP address). When the network manager wants to integrally replace or synchronize all local public network services to the equipment, the network manager issues a full-volume configuration message to the equipment, and the matching conditions and the matching rules in the service configuration information carried in the issued full-volume configuration message are both null (namely the matching conditions and the matching rules are not carried). According to the device configuration method of the invention, the device can completely replace the configuration of the IP address table on the device with the IP address configuration of the public network (namely, the whole IP address table is replaced with the configuration on the network management).
More specific examples are as follows:
the database IP address service table configuration on the device is shown in the following table:
IP VPN PortName
10.42.55.66 aaa fei-0/1/0/1
10.42.56.98 bbb gei-0/1/0/1
10.42.58.98 aaa ulei-0/1/0/2
10.42.89.69 aaa fei-0/3/0/2
10.42.63.98 ddd ulei-0/3/0/2
the equipment receives a full configuration message issued by a network manager, and the service configuration of the configuration message not carrying the matching condition is as follows:
IP VPN PortName
10.42.55.66 aaa fei-0/1/0/1
10.42.56.98 ccc fei-0/2/0/1
after the device updates and replaces the configuration of the IP address service table of the database according to the received full configuration message, the configuration of the IP address service table on the device is as shown in the following table:
IP VPN PortName
10.42.55.66 aaa fei-0/1/0/1
10.42.56.98 ccc fei-0/2/0/1
the equipment receives the full configuration message sent by the network management, and finally, the configuration in the database service table on the equipment is completely consistent with the configuration on the network management for the service configuration without the matching condition.
The method for updating the equipment configuration provided by the invention comprises the steps that the equipment receives a configuration message issued by a network manager, wherein the configuration message carries service configuration information, and the service configuration information comprises a matching condition and a matching rule; the equipment matches and updates the database configuration according to the matching condition and the matching rule of the service configuration information, so that the configuration in the equipment updating and replacing service database table is completely consistent with the configuration on the network manager, the updating and replacing of the fine-grained internal configuration of the same service on the network manager to the equipment according to the condition are realized, the database configuration model on the equipment can support more diversified, more accurate and finer-grained network management configuration replacement without changing, and the flexibility of user service configuration is enhanced.
Example 2:
please refer to fig. 3. Fig. 3 shows the effect of the network management issuing the service update configuration replacement carrying the matching condition on the configuration of the service table of the device database.
In this embodiment, the configuration of the IP address is stored in a service table of the device database, and the IP address includes a public network IP address and a private network IP address. The network manager manages only the public network service, including the public network IP address (but not involving the configuration of the private network IP address). When the network manager wants to integrally replace or synchronize all local public network services to the equipment, the network manager issues a full-volume configuration message to the equipment, and the matching condition and the matching rule in the service configuration information carried in the issued full-volume configuration message are equal to the public network. According to the equipment configuration method, the equipment carries the matching condition and the matching rule of the service according to the service configuration information, updates and replaces the configuration (public network configuration) of the database service table which meets the matching condition and the matching rule (the condition is equal to the public network) with the configuration on a network manager, and keeps the configuration (private network configuration) of the database service table which does not meet the matching condition and the matching rule unchanged.
More specific examples are as follows:
the database IP address service table configuration on the device is shown in the following table:
IP VPN PortName
10.42.55.66 aaa fei-0/1/0/1
10.42.56.98 bbb gei-0/1/0/1
10.42.58.98 aaa ulei-0/1/0/2
10.42.89.69 aaa fei-0/3/0/2
10.42.63.98 ddd ulei-0/3/0/2
the device receives a full configuration message sent by the network manager, the configuration message carries a service configuration with the matching condition that PortName is an Ethernet port, and the following table shows that:
IP VPN PortName
10.42.55.66 aaa fei-0/1/0/1
10.42.56.98 ccc fei-0/2/0/1
the IP address service table on the device configures three IP addresses under Ethernet port, and the PortName is respectively: fei-0/1/0/1, gei-0/1/0/1 and fei-0/3/0/2.
After the device updates and replaces the configuration of the IP address service table of the database according to the received full configuration message, the configuration of the IP address service table on the device is as shown in the following table:
IP VPN PortName
10.42.55.66 aaa fei-0/1/0/1
10.42.58.98 aaa ulei-0/1/0/2
10.42.63.98 ddd ulei-0/3/0/2
10.42.56.98 ccc fei-0/2/0/1
it can be seen that the ethernet port address configuration update on the device is replaced by the configuration issued by the network manager, and the non-ethernet port configuration on the device remains unchanged.
The method for updating the equipment configuration provided by the invention comprises the steps that the equipment receives a configuration message issued by a network manager, wherein the configuration message carries service configuration information, and the service configuration information comprises a matching condition and a matching rule; the equipment matches and updates the database configuration according to the matching condition and the matching rule of the service configuration information, so that the equipment can update and replace the database service table configuration which meets the matching condition and the matching rule, and the database service table configuration which does not meet the matching condition and the matching rule is kept unchanged, thereby realizing that the internal configuration of the same service with finer granularity on the network management is updated and replaced on the equipment according to the condition, enabling the database configuration model on the equipment to support more diversified, more accurate and finer granularity network management configuration replacement without changing, and enhancing the flexibility of user service configuration.
Example 3:
please refer to fig. 4. The embodiment of the invention provides a method for storing equipment service configuration information into a configuration message in a JSON syntax format.
In the embodiment of the present invention, the matching condition in the service configuration information is stored in the message in a syntax format of JSON (JavaScript object notation, JSON for short), and the matching condition of one service or a plurality of services is placed in a "filter-roller" object in a unified manner. Each service corresponds to a service table (e.g., table a, table B) in the database on the device. The condition comprises a set of attributes (attribute a1, attribute a2..... attribute an), and the attributes are in a relation of and; each attribute includes one or more attribute values (only one attribute value is given as an example in fig. 4 for illustration). The matching rule of each service (or each service table) is stored in a separate object, and the matching rule of the service is composed of matching rules of a group of attributes (attribute a1, attribute a2...... attribute an), and the group of attributes are in a relationship with each other (namely, a group of attributes all meet the condition to calculate the matching is successful). Each attribute may have one or more attribute condition values, and the matching is a yes or a no relationship between the attribute condition values. In practical applications of the embodiments of the present invention, the matching rules include, but are not limited to, the following cases: prefix matching, complete matching, matching when the value in the database is not equal to the condition value, matching when the value in the database is greater than or equal to the condition value, matching conditions when the value in the database is less than or equal to the condition value, regular expression, interface type matching and other different matching algorithms.
The method for updating the equipment configuration provided by the invention is characterized in that the message description is configured in a specific JSON syntax format, so that the method can be specifically implemented, a user can more clearly know how to make the service configuration information of the matching condition and the matching rule by using the JSON syntax format, the equipment is matched and updated with the database configuration according to the matching condition and the matching rule of the service configuration information, the updating and the replacement of the internal configuration of the same service with finer granularity on a network manager to the equipment according to the condition are realized, the database configuration model on the equipment can support the network manager configuration replacement with more diversity, more accuracy and finer granularity without changing, and the flexibility of the user service configuration is enhanced.
Example 4:
please refer to fig. 5. The embodiment of the invention provides a specific embodiment for storing equipment service configuration information into a configuration message in a JSON syntax format.
In the embodiment of the present invention, the "filter-roller" includes a service ("interfacial table"), the condition includes a group of attributes (Name attribute, Type attribute), and the Name attribute and the Type attribute are in a relationship with each other; the Name attribute includes an attribute value. The matching rule of the service is stored in a single object, the matching rule of the service is composed of a group of matching rules of attributes (Name attribute and Type attribute), the matching rule of the Name attribute is prefix match which is "fei-" or "gei-", the matching rule of the Type attribute is equal which is 3, and the group of attributes are in a corresponding relation. Namely: the "filter-roller" includes a matching condition of one service ("interfaceTable") and a matching rule including two attributes, the condition of the interface Name ("Name") is that the prefix matches "fei-" or "gei-", and the condition of the interface Type ("Type") is equal to 3. The network manager issues the configuration update replacement carrying the matching condition, the interface configuration of the fei port or gei port and the interface type 3 on the device will be consistent with the network manager, and other interface configurations will not be affected.
The method for updating the equipment configuration provided by the invention comprises the steps that the equipment receives a configuration message issued by a network manager, wherein the configuration message carries service configuration information, and the service configuration information comprises a matching condition and a matching rule; the equipment matches and updates the database configuration according to the matching conditions and the matching rules of the service configuration information, and can realize updating and replacing fine-grained internal configuration of the same service on the network manager to the equipment according to the conditions, so that the database configuration model on the equipment can support more diversified, more accurate and finer-grained network manager configuration replacement without changing, and the flexibility of user service configuration is enhanced.
Example 5:
please refer to fig. 6. The invention provides a condition-based equipment configuration updating method, which comprises the following steps:
s601, the device and the network manager negotiate in advance to determine a service configuration matching mechanism, wherein the service matching mechanism is used for limiting the range of updating and replacing the database service table configuration on the device, and the service table comprises the name of the service table, the attribute of the service and an attribute value;
s602, the device receives a configuration packet sent by a network manager, where the configuration packet carries service configuration information, and includes: the service configuration information comprises matching conditions and matching rules; wherein: the matching condition comprises at least one condition, the condition comprises one attribute or a plurality of attribute components, and the attribute are in an and relation; each attribute includes one or more attribute values, and the attribute values have an or relationship. When the matching condition includes a plurality of conditions, the relationship between each condition is an or relationship. The matching rules comprise condition matching rules and attribute matching rules; wherein the condition matching rule is: a condition matches only if all attributes within the condition match. The attribute matching rule is as follows: an attribute may match whenever one of its values matches. The matching rules for attribute/attribute value matching may be divided into equal-time matching, unequal-time matching, greater-time matching, smaller-time matching, character prefix matching, character complete matching, interface filter number matching, regular expression matching, and the like, and specifically to the practical application of this embodiment, the matching rules include, but are not limited to, the following conditions: prefix matching, complete matching, matching when a value in a database is not equal to a condition value, matching when a value in a database is greater than or equal to a condition value, matching when a value in a database is less than or equal to a condition value, regular expression matching, interface type matching, and the like.
S603, the equipment checks whether the configuration message carrying the service configuration information comprises a matching condition and a matching rule, if so, the S604 is switched, and if not, the S605 is switched.
S604, updating and replacing the configuration of the database business table according with the matching condition and the matching rule by the equipment, and keeping the configuration of the database business table not according with the matching condition and the matching rule unchanged; and then proceeds to S606.
S605, the configuration of the database service table updated and replaced by the equipment is completely consistent with the configuration on the network management; and then proceeds to S606.
And S606, finishing the updating and replacing.
The method for updating the equipment configuration provided by the invention comprises the steps that the equipment receives a configuration message issued by a network manager, wherein the configuration message carries service configuration information, and the service configuration information comprises a matching condition and a matching rule; the equipment matches and updates the database configuration according to the matching conditions and the matching rules of the service configuration information, and can realize updating and replacing fine-grained internal configuration of the same service on the network manager to the equipment according to the conditions, so that the database configuration model on the equipment can support more diversified, more accurate and finer-grained network manager configuration replacement without changing, and the flexibility of user service configuration is enhanced.
Example 6:
please refer to fig. 7. The invention provides a device for updating equipment configuration based on conditions, wherein the updating device 300 comprises: a receiving module 302, an updating module 303, wherein:
the receiving module 302 is configured to receive a configuration message sent by a network manager, where the configuration message carries service configuration information;
the updating module 303 is configured to match and update the database configuration according to the service configuration information.
Further, the apparatus further includes a negotiation module 301, where the negotiation module 301 is configured to negotiate with the network manager in advance to determine a service configuration matching mechanism, where the service matching mechanism is used to limit a range of updating and replacing a database service table configuration on the device, and the service table includes a name of the service table, an attribute of the service, and an attribute value.
Further, the receiving module 302 is configured to receive a configuration message sent by a network manager, where the configuration message carries service configuration information; the method comprises the following steps: the service configuration information comprises matching conditions and matching rules; wherein:
the matching condition comprises at least one condition, the condition comprises one attribute or a plurality of attribute components, and the attribute are in an and relation; each attribute includes one or more attribute values, and the attribute values have an or relationship. When the matching condition includes a plurality of conditions, the relationship between each condition is an or relationship.
The matching rules comprise condition matching rules and attribute matching rules; wherein the condition matching rule is: a condition matches only if all attributes within the condition match. The attribute matching rule is as follows: an attribute may match whenever one of its values matches. The matching rules for attribute/attribute value matching may be divided into equal-time matching, unequal-time matching, greater-time matching, smaller-time matching, character prefix matching, character complete matching, interface filter number matching, regular expression matching, and the like, and specifically to the practical application of this embodiment, the matching rules include, but are not limited to, the following conditions: prefix matching, complete matching, matching when a value in a database is not equal to a condition value, matching when a value in a database is greater than or equal to a condition value, matching when a value in a database is less than or equal to a condition value, regular expression matching, interface type matching, and the like.
Further, the updating module 303 is configured to match and update the database configuration by the device according to the service configuration information; the method comprises the following steps: according to the service configuration information, the equipment updates and replaces database service table configuration which accords with the service configuration information; the method specifically comprises the following steps:
if the service configuration information does not carry the matching conditions and matching rules of the service, the configuration of the database service table updated and replaced by the equipment is completely consistent with the configuration on the network management.
And if the service configuration information carries the matching conditions and the matching rules of the services, the equipment updates and replaces the configuration of the database service table which meets the matching conditions and the matching rules, and the configuration of the database service table which does not meet the matching conditions and the matching rules is kept unchanged.
The device configuration updating apparatus provided by the present invention receives, through the receiving module 302, a configuration message issued by a network manager, where the configuration message carries service configuration information, and the service configuration information includes a matching condition and a matching rule; the updating module 303 matches and updates the database configuration according to the matching condition and the matching rule of the service configuration information, so that the updating and replacement of the fine-grained internal configuration of the same service on the network manager to the equipment according to the condition can be realized, the database configuration model on the equipment can support more diversified, more accurate and finer-grained network manager configuration replacement without changing, and the flexibility of the user service configuration is enhanced.
It should be noted that the device embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are described in the method embodiment in detail, and technical features in the method embodiment are correspondingly applicable in the device embodiment, which is not described herein again.
Example 7:
in addition, an embodiment of the present invention further provides a device configuration updating apparatus based on conditions, as shown in fig. 8, where the updating apparatus 900 includes: a memory 902, a processor 901 and one or more computer programs stored in the memory 902 and executable on the processor 901, the memory 902 and the processor 901 being coupled together by a bus system 903, the one or more computer programs, when executed by the processor 901, implementing the following steps of the condition-based device configuration updating method provided by the embodiment of the present invention:
the device and the network manager negotiate in advance to determine a service configuration matching mechanism, wherein the service matching mechanism is used for limiting the range of updating and replacing database service table configuration on the device, and the service table comprises the name of the service table, the attribute of the service and an attribute value;
the device receives a configuration message issued by a network manager, wherein the configuration message carries service configuration information, and the method comprises the following steps: the service configuration information comprises matching conditions and matching rules; wherein: the matching condition comprises at least one condition, the condition comprises one attribute or a plurality of attribute components, and the attribute are in an and relation; each attribute includes one or more attribute values, and the attribute values have an or relationship. When the matching condition includes a plurality of conditions, the relationship between each condition is an or relationship. The matching rules comprise condition matching rules and attribute matching rules; wherein the condition matching rule is: a condition matches only if all attributes within the condition match. The attribute matching rule is as follows: an attribute may match whenever one of its values matches. The matching rules for attribute/attribute value matching may be divided into equal-time matching, unequal-time matching, greater-time matching, smaller-time matching, character prefix matching, character complete matching, interface filter number matching, regular expression matching, and the like, and specifically to the practical application of this embodiment, the matching rules include, but are not limited to, the following conditions: prefix matching, complete matching, matching when a value in a database is not equal to a condition value, matching when a value in a database is greater than or equal to a condition value, matching when a value in a database is less than or equal to a condition value, regular expression matching, interface type matching, and the like.
The device matches and updates the database configuration according to the service configuration information, and the method comprises the following steps: according to the service configuration information, the equipment updates and replaces database service table configuration which accords with the service configuration information; the method specifically comprises the following steps: if the service configuration information does not carry the matching conditions and matching rules of the service, the configuration of the database service table updated and replaced by the equipment is completely consistent with the configuration on the network management. And if the service configuration information carries the matching conditions and the matching rules of the services, the equipment updates and replaces the configuration of the database service table which meets the matching conditions and the matching rules, and the configuration of the database service table which does not meet the matching conditions and the matching rules is kept unchanged.
The method disclosed in the above embodiments of the present invention may be applied to the processor 901, or implemented by the processor 901. The processor 901 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by an integrated logic circuit of hardware or an instruction in the form of software in the processor 901. The processor 901 may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 901 may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 902, and the processor 901 reads the information in the memory 902 and performs the steps of the foregoing method in combination with the hardware thereof.
It is to be understood that the memory 902 of embodiments of the present invention may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a magnetic Random Access Memory (Flash Memory) or other Memory technologies, a Compact disc Read-Only Memory (CD-ROM), a Digital Versatile Disc (DVD), or other optical disc storage, magnetic cartridge, magnetic tape, magnetic Disk storage, or other magnetic storage devices; volatile Memory can be Random Access Memory (RAM), and by way of exemplary and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Double Data Rate Synchronous Random Access Memory (ESDRAM), Synchronous Link Dynamic Random Access Memory (SLDRAM), Direct Memory bus Random Access Memory (DRRAM). The described memory for embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
It should be noted that the terminal embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiment, and technical features in the method embodiment are correspondingly applicable in the terminal embodiment, which is not described herein again.
Example 8:
in addition, in an exemplary embodiment, an embodiment of the present invention further provides a computer storage medium, specifically a computer-readable storage medium, for example, a memory 902 storing a computer program, where the computer storage medium stores one or more programs of a condition-based device configuration updating method, and the one or more programs of the condition-based device configuration updating method are executed by a processor 901 to implement the following steps of the condition-based device configuration updating method provided by the embodiment of the present invention:
the device and the network manager negotiate in advance to determine a service configuration matching mechanism, wherein the service matching mechanism is used for limiting the range of updating and replacing database service table configuration on the device, and the service table comprises the name of the service table, the attribute of the service and an attribute value;
the device receives a configuration message issued by a network manager, wherein the configuration message carries service configuration information, and the method comprises the following steps: the service configuration information comprises matching conditions and matching rules; wherein: the matching condition comprises at least one condition, the condition comprises one attribute or a plurality of attribute components, and the attribute are in an and relation; each attribute includes one or more attribute values, and the attribute values have an or relationship. When the matching condition includes a plurality of conditions, the relationship between each condition is an or relationship. The matching rules comprise condition matching rules and attribute matching rules; wherein the condition matching rule is: a condition matches only if all attributes within the condition match. The attribute matching rule is as follows: an attribute may match whenever one of its values matches. The matching rules for attribute/attribute value matching may be divided into equal-time matching, unequal-time matching, greater-time matching, smaller-time matching, character prefix matching, character complete matching, interface filter number matching, regular expression matching, and the like, and specifically to the practical application of this embodiment, the matching rules include, but are not limited to, the following conditions: prefix matching, complete matching, matching when a value in a database is not equal to a condition value, matching when a value in a database is greater than or equal to a condition value, matching when a value in a database is less than or equal to a condition value, regular expression matching, interface type matching, and the like.
The device matches and updates the database configuration according to the service configuration information, and the method comprises the following steps: according to the service configuration information, the equipment updates and replaces database service table configuration which accords with the service configuration information; the method specifically comprises the following steps: if the service configuration information does not carry the matching conditions and matching rules of the service, the configuration of the database service table updated and replaced by the equipment is completely consistent with the configuration on the network management. And if the service configuration information carries the matching conditions and the matching rules of the services, the equipment updates and replaces the configuration of the database service table which meets the matching conditions and the matching rules, and the configuration of the database service table which does not meet the matching conditions and the matching rules is kept unchanged.
It should be noted that, the embodiment of the program of the device configuration updating method based on the condition on the computer-readable storage medium and the embodiment of the method belong to the same concept, and the specific implementation process thereof is described in detail in the embodiment of the method, and the technical features in the embodiment of the method are applicable to the embodiment of the computer-readable storage medium, and are not described herein again.
The invention provides a device configuration updating method, an updating device and a computer readable storage medium, wherein a configuration message issued by a network manager is received through a device, the configuration message carries service configuration information, and the service configuration information comprises a matching condition and a matching rule; the equipment matches and updates the database configuration according to the matching conditions and the matching rules of the service configuration information, and can realize updating and replacing fine-grained internal configuration of the same service on the network manager to the equipment according to the conditions, so that the database configuration model on the equipment can support more diversified, more accurate and finer-grained network manager configuration replacement without changing, and the flexibility of user service configuration is enhanced.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising" is used to specify the presence of stated features, integers, steps, operations, elements, components, operations.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A device configuration update method, the method comprising:
the method comprises the steps that equipment receives a configuration message sent by a network manager, wherein the configuration message carries service configuration information;
and the equipment updates the configuration of the database in a matching way according to the service configuration information.
2. The method according to claim 1, wherein before the step of the device receiving a configuration packet sent by a network manager, where the configuration packet carries service configuration information, the method further comprises: the device and the network manager negotiate in advance to determine a service configuration matching mechanism, and the service matching mechanism is used for limiting the range of updating and replacing the database service table configuration on the device.
3. The method according to claim 1, wherein the step of receiving, by the device, a configuration packet sent by a network manager, where the configuration packet carries service configuration information, includes: the service configuration information comprises matching conditions and matching rules.
4. The method according to claim 3, wherein the matching condition comprises at least one condition, the condition comprises one attribute or a plurality of attribute components, and the attribute are in an and relationship; each of the attributes comprises one or more attribute values, and the attribute values have an OR relationship; when the matching condition includes a plurality of conditions, the relationship between each condition is an or relationship.
5. The method of claim 4, wherein the matching rules include condition matching rules and attribute matching rules; wherein the condition matching rule is: when all attributes in a condition are matched, the condition is matched; the attribute matching rule is as follows: when one of the attribute values in the attributes is matched, the attributes are matched.
6. The method according to claim 5, wherein the matching rule for attribute/attribute value matching comprises at least one of: matching when equal, matching when unequal, matching when greater than, matching when less than, character prefix matching, character complete matching, interface filter number matching, regular expression matching.
7. An apparatus configuration updating device applied to the apparatus configuration updating method according to any one of claims 1 to 6, wherein the updating device comprises: receiving module, update module, wherein:
the receiving module is used for receiving a configuration message sent by a network manager by equipment, wherein the configuration message carries service configuration information;
and the updating module is used for matching and updating the database configuration according to the service configuration information by the equipment.
8. The apparatus of claim 7, further comprising a negotiation module, configured to pre-negotiate with a network manager to determine a service configuration matching mechanism, where the service matching mechanism is used to limit a scope of database service table configuration update replacement on the device.
9. An apparatus for updating device configuration, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the device configuration update method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program of the device configuration update method, which when executed by a processor implements the steps of the device configuration update method according to any one of claims 1 to 6.
CN201810904822.0A 2018-08-09 2018-08-09 Equipment configuration updating method, equipment configuration updating device and computer readable storage medium Pending CN110830278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810904822.0A CN110830278A (en) 2018-08-09 2018-08-09 Equipment configuration updating method, equipment configuration updating device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810904822.0A CN110830278A (en) 2018-08-09 2018-08-09 Equipment configuration updating method, equipment configuration updating device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110830278A true CN110830278A (en) 2020-02-21

Family

ID=69541580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810904822.0A Pending CN110830278A (en) 2018-08-09 2018-08-09 Equipment configuration updating method, equipment configuration updating device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110830278A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475190A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Information updating method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080154957A1 (en) * 2006-12-26 2008-06-26 Questra Corporation Managing configurations of distributed devices
CN103346974A (en) * 2013-06-03 2013-10-09 华为技术有限公司 Controlling method of service process and network device
CN103688489A (en) * 2012-12-03 2014-03-26 华为技术有限公司 Method for strategy processing and network equipment
EP3244309A1 (en) * 2016-05-12 2017-11-15 Alcatel Lucent Method, system and computer readable medium to update scheduling hints
CN107959580A (en) * 2016-10-17 2018-04-24 中兴通讯股份有限公司 The method and apparatus of configuration service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080154957A1 (en) * 2006-12-26 2008-06-26 Questra Corporation Managing configurations of distributed devices
CN103688489A (en) * 2012-12-03 2014-03-26 华为技术有限公司 Method for strategy processing and network equipment
CN103346974A (en) * 2013-06-03 2013-10-09 华为技术有限公司 Controlling method of service process and network device
EP3244309A1 (en) * 2016-05-12 2017-11-15 Alcatel Lucent Method, system and computer readable medium to update scheduling hints
CN107959580A (en) * 2016-10-17 2018-04-24 中兴通讯股份有限公司 The method and apparatus of configuration service

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475190A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Information updating method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN107896169B (en) ACL management method and device
US10212001B2 (en) Method of configuring field devices and field device having a configuration for two bus systems
US20040255010A1 (en) Method, a controller, an arrangement and a computer program for managing a configuration of clustered computers
EP3757780B1 (en) Method and apparatus for service management
CN112217656B (en) Method and device for synchronizing configuration information of network equipment in SD-WAN (secure digital-to-Wide area network) system
CN101257406B (en) Method and system for discovering net elements
CN110650037B (en) Heterogeneous network device configuration method and device
CN110008665B (en) Authority control method and device for blockchain
WO2020248375A1 (en) Method and system for synchronizing data between databases, computer device and storage medium
EP3833084B1 (en) Openflow instance configuration
CN104243515A (en) Method and device for processing configuration information
CN108600282A (en) Micro services dissemination method, device, storage medium and computer equipment
CN106657433B (en) Naming method and device for physical network card in multi-network snap ring environment
CN111343241A (en) Graph data updating method, device and system
CN110830278A (en) Equipment configuration updating method, equipment configuration updating device and computer readable storage medium
CN114710549A (en) Dynamic management method, system and service node of network card in container platform
CN110324167B (en) Configuration method, device and system of service governance rules and electronic equipment
CN103986660B (en) The device of loading micro code and the method for loading micro code
CN114780506B (en) Processing method of process file and electronic equipment
CN113708954B (en) Network switching method and device, electronic equipment and storage medium
CN113950035B (en) Method, terminal and UICC for dynamically updating NFC capability
CN108574592B (en) Resource management method and device based on telecommunication cloud
CN113099431B (en) Communication method and device based on LoRa channel and LoRa host
CN112866208B (en) Table item configuration method, message processing method, device, equipment and storage medium
US10896159B1 (en) System, method, and computer program for configuration based coexistence routing

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200221

RJ01 Rejection of invention patent application after publication