CN110768811A - Method, device and system for updating YANG model file library - Google Patents
Method, device and system for updating YANG model file library Download PDFInfo
- Publication number
- CN110768811A CN110768811A CN201810830394.1A CN201810830394A CN110768811A CN 110768811 A CN110768811 A CN 110768811A CN 201810830394 A CN201810830394 A CN 201810830394A CN 110768811 A CN110768811 A CN 110768811A
- Authority
- CN
- China
- Prior art keywords
- yang model
- file library
- model file
- virtual slice
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0643—Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Power Engineering (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The disclosure provides a method, a device and a system for updating a YANG model file library, and relates to the field of software defined networks. The method comprises the following steps: when the content of the YANG model file library corresponding to the virtual slice instance changes, the network equipment re-determines the module-set-id value corresponding to the YANG model file library; and sending the YANG model file library updating message to the client corresponding to the virtual slice example so that the client can judge whether to update the YANG model file library according to the YANG model file library updating message, wherein the YANG model file library updating message comprises the virtual slice example identifier and the module-set-id value. The method and the device have the advantages that the client corresponding to each virtual slice instance can update the corresponding YANG model file library timely as required, unnecessary global update is avoided, and the operation and maintenance efficiency is improved.
Description
Technical Field
The disclosure relates to the field of software defined networks, and in particular, to a method, an apparatus, and a system for updating a YANG model document library.
Background
In a software defined network, a Netconf network management protocol is a mainstream management protocol, and the Netconf protocol standardizes and defines contents such as data links, message formats and the like, but does not provide clear regulations for a specific network equipment modeling mode; the YANG modeling language is an advanced network device modeling language, and the YANG model corresponding to the YANG modeling language is a mainstream data model format adopted by the Netconf network management protocol.
In a specific implementation, a Netconf-based management model includes two components, namely, a Netconf server (managed network device) and a Netconf client (network administrator), and a specific architecture of the Netconf server and the Netconf client is as shown in fig. 1.
Therefore, the related standards of Netconf stipulate that the Netconf server needs to maintain all YANG model files required by the operation of the network equipment of the server and stores the YANG model files in a YANG model file library mode; on the other hand, for the Netconf client, it is necessary to periodically fetch the latest YANG file update from the Netconf server, and maintain consistency between the Netconf server and the corresponding YANG files of the Netconf client.
In the actual operation process, as the network device operates, configures or restarts the service, the content (for example, default values, configuration parameter values, etc.) of the YANG file library of the network device changes frequently, and a certain message notification manner is required to notify the corresponding Netconf client to initiate a new YANG file update session.
The existing standard (IETF RFC7895YANG Module Library) specifies the update mechanism of the YANG document Library, but the specific message generation method and transmission method are not specified in detail. Meanwhile, with the development of SDN and NFV technologies, multiple virtual network slice instances are established on one physical network device to realize that the same physical device bearing of different types of services has become a trend of technical development, in such a scenario, on the basis of a YANG model document library common to the physical devices, each virtual slice instance generates different content updates of the YANG document library due to the change of running information of the virtual slice instance, and how to communicate the updates to the Netconf client corresponding to each virtual slice in a message notification manner is lacking in the current standard system.
Disclosure of Invention
The technical problem to be solved by the present disclosure is to provide a method, an apparatus, and a system for updating a YANG model file library, which can enable a client corresponding to each virtual slice instance to update the corresponding YANG model file library as needed in time.
According to an aspect of the present disclosure, a method for updating a YANG model document library is provided, including: when the content of the YANG model file library corresponding to the virtual slice instance changes, the network equipment re-determines the module-set-id value of the model configuration identifier corresponding to the YANG model file library; and sending the YANG model file library updating message to the client corresponding to the virtual slice example so that the client can judge whether to update the YANG model file library according to the YANG model file library updating message, wherein the YANG model file library updating message comprises the virtual slice example identifier and the module-set-id value.
Optionally, the network device re-determining the module-set-id value corresponding to the YANG model file library comprises: the network device performs hash calculation on the files in the YANG model file library, and takes the file hash value as a module-set-id value.
Optionally, the method further comprises: and the network equipment sends each virtual slice instance identifier to a client corresponding to the virtual slice instance in advance.
Optionally, the determining, by the client, whether to perform a YANG model repository update according to the YANG model repository update message includes: after receiving the YANG model file library updating message, the client judges whether the received virtual slice instance identifier is consistent with the virtual slice instance identifier stored in advance, and if so, determines whether the YANG model file library is updated according to the module-set-id value.
Optionally, the client performs hash calculation on the files in the local YANG model file library, compares the hash calculation result with the module-set-id value, and initiates an update operation of the YANG model file library if the hash calculation result is inconsistent with the module-set-id value.
According to another aspect of the present disclosure, there is also provided a network device, including: a module-set-id value determining unit, configured to re-determine a module-set-id value of a model configuration identifier corresponding to the YANG model file library when the content of the YANG model file library corresponding to the virtual slice instance changes; and the update message sending unit is used for sending the YANG model file library update message to the client corresponding to the virtual slice instance so that the client can judge whether the YANG model file library is updated or not according to the YANG model file library update message, wherein the YANG model file library update message comprises the virtual slice instance identifier and the module-set-id value.
Optionally, the module-set-id value determining unit is configured to perform a hash calculation on the file in the YANG model file library, and use the file hash value as the module-set-id value.
Optionally, the network device further includes: and the example identifier sending unit is used for sending each virtual slice example identifier to the client corresponding to the virtual slice example in advance.
According to another aspect of the present disclosure, there is also provided a client, including: the system comprises an update message receiving unit, a YANG model file library updating unit and a YANG model file library updating unit, wherein the YANG model file library updating message comprises a virtual slice instance identifier corresponding to a client and a model configuration identifier module-set-id value of the YANG model file library corresponding to a virtual slice instance; and the file library updating unit is used for judging whether to update the YANG model file library according to the YANG model file library updating message.
Optionally, the client further includes: and the example identifier receiving unit is used for receiving the virtual slice example identifier sent by the network equipment in advance and storing the virtual slice example identifier.
Optionally, the file library updating unit is configured to, after receiving a YANG model file library update message, determine whether the received virtual slice instance identifier is consistent with a virtual slice instance identifier stored in advance, and if so, determine whether to perform a YANG model file library update according to a module-set-id value.
Optionally, the file library updating unit is further configured to perform hash calculation on the file in the local YANG model file library, compare the hash calculation result with the module-set-id value, and initiate a YANG model file library updating operation if the hash calculation result is inconsistent with the module-set-id value.
According to another aspect of the present disclosure, a system for updating a YANG model document library is also provided, which includes the above network device and the above client.
According to another aspect of the present disclosure, there is also provided a system for updating a YANG model document library, including: a memory; and a processor coupled to the memory, the processor configured to perform the method of updating a YANG model file library as described above based on the instructions stored in the memory.
According to another aspect of the present disclosure, a computer-readable storage medium is also proposed, on which computer program instructions are stored, which instructions, when executed by a processor, implement the steps of the above-mentioned method of updating a YANG model file library.
Compared with the prior art, the network device determines the module-set-id corresponding to the YANG model file library again when the content of the YANG model file library corresponding to the virtual slice instance changes, and sends the YANG model file library updating message containing the virtual slice instance identifier and the module-set-id value to the client corresponding to the virtual slice instance, so that the client can judge whether to update the YANG model file library according to the YANG model file library updating message, the client corresponding to each virtual slice instance can update the corresponding YANG model file library timely as required, unnecessary global updating is avoided, and the operation and maintenance efficiency is improved.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
The present disclosure may be more clearly understood from the following detailed description, taken with reference to the accompanying drawings, in which:
fig. 1 is a schematic diagram of an implementation architecture of the Netconf protocol.
FIG. 2 is a flowchart illustrating an embodiment of the method for updating a YANG model document library according to the present disclosure.
FIG. 3 is a schematic diagram of a Netconf/YANG-based management architecture in a virtual slice scene.
FIG. 4 is a flowchart illustrating another embodiment of the method for updating a YANG model document library according to the present disclosure.
Fig. 5 is a YANG model file library update message format structure of the disclosed virtual slice scene.
Fig. 6 is a schematic structural diagram of an embodiment of a network device according to the present disclosure.
Fig. 7 is a schematic structural diagram of another embodiment of the network device of the present disclosure.
Fig. 8 is a schematic structural diagram of an embodiment of a client according to the present disclosure.
Fig. 9 is a schematic structural diagram of another embodiment of the client according to the present disclosure.
FIG. 10 is a block diagram illustrating an embodiment of the present disclosure system for updating a YANG model document library.
FIG. 11 is a schematic diagram of a structure of another embodiment of the disclosed system for updating a YANG model document library.
FIG. 12 is a schematic diagram of a structure of yet another embodiment of the disclosed system for updating a YANG model document library.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
FIG. 2 is a flowchart illustrating an embodiment of the method for updating a YANG model document library according to the present disclosure.
In step 210, when the content of the YANG model file library corresponding to the virtual slice instance changes, the network device re-determines the module-set-id (model configuration identifier) value corresponding to the YANG model file library. As shown in fig. 3, a plurality of virtual network slice instances are established on the network device, and if the content of the YANG model file library corresponding to a certain virtual slice instance changes, the Netconf engine recalculates the changed module-set-id value, where the module-set-id value is a value reflecting the update state of the YANG file, and the corresponding module-set-id value also changes each time the content of the YANG model file library changes.
In step 220, a YANG model file library update message is sent to the client corresponding to the virtual slice instance, so that the client can judge whether to update the YANG model file library according to the YANG model file library update message, wherein the YANG model file library update message comprises a virtual slice instance identifier and a module-set-id value. The Netconf engine in the network device can encapsulate the virtual slice instance identifier and the module-set-id value in a YANG model file library update message, and send the YANG model file library update message to a corresponding client. And the client judges whether the message needs to be processed according to the virtual slice instance identifier and the module-set-id value, and performs corresponding YANG model file library updating operation.
In the embodiment, when the content of the YANG model file library corresponding to the virtual slice instance changes, the network device re-determines the module-set-id corresponding to the YANG model file library, and sends a YANG model file library updating message containing the virtual slice instance identifier and the module-set-id value to the client corresponding to the virtual slice instance, so that the client can judge whether to update the YANG model file library according to the YANG model file library updating message, the client corresponding to each virtual slice instance can update the corresponding YANG model file library timely as required, unnecessary global updating is avoided, and the operation and maintenance efficiency is improved.
FIG. 4 is a flowchart illustrating another embodiment of the method for updating a YANG model document library according to the present disclosure.
In step 410, the network device sends each virtual slice instance identifier to the client corresponding to the virtual slice instance in advance. The Netconf engine of the network device allocates a unique identifier to each virtual slice instance, and sends the identifier to the Netconf client corresponding to the slice through a Remote Procedure Call (RPC) message carried by the system.
In step 420, when the content of the YANG model file library corresponding to a virtual slice instance changes, the network device re-determines the module-set-id value corresponding to the YANG model file library.
In one embodiment, the hash calculation may be performed on the file in the YANG model file library with the file hash value as the module-set-id value. In addition, the hash calculation result can be intercepted or further converted to be used as a module-set-id value.
In step 430, the network device sends a YANG model file library update message to the client corresponding to the virtual slice instance. The format structure of the YANG model file library updating message is shown in FIG. 5, and comprises a common message part, a virtual slice instance identifier and a module-set-id content corresponding to the virtual slice instance. Wherein, the public message part is the public information part of the message; the virtual slice instance identification is used for distinguishing a character string of a specific virtual slice instance, and the Netconf engine sends the message to a Netconf client corresponding to the virtual slice instance; the module-set-id content corresponding to the virtual slice instance corresponds to the module-set-id value of the YANG model file library corresponding to the slice.
In step 440, the client determines whether the received virtual slice instance id is consistent with the saved virtual slice instance id, if so, step 450 is executed, otherwise, step 460 is executed.
In step 450, it is determined whether the received module-set-id value matches the hash value calculated from the file in the local YANG model file library, if not, then step 470 is performed, and if so, then step 480 is performed.
At step 460, the YANG model repository update message is discarded.
At step 470, a YANG model repository update operation is initiated.
At step 480, no subsequent operations are initiated.
In the embodiment, the unique identifier is allocated to the virtual slice instance, and the YANG model file library updating message is sent to the client corresponding to the virtual slice instance, so that the YANG model file library is updated by the client corresponding to each virtual slice as required, application expansion of the existing standard scheme for virtual slice scenes is realized, safety of resource information isolation of each virtual slice is improved, and the method has values of application and popularization in the existing network.
Fig. 6 is a schematic structural diagram of an embodiment of a network device according to the present disclosure. The network device includes a module-set-id value determining unit 610 and an update message transmitting unit 620.
And the module-set-id value determining unit is used for re-determining the module-set-id value corresponding to the YANG model file library if the content of the YANG model file library corresponding to the virtual slice instance is determined to be changed. The module-set-id value is a value reflecting the update state of the YANG file, and the corresponding module-set-id value changes every time the contents of the YANG model file library change.
The update message sending unit 620 is configured to send a YANG model file library update message to the client corresponding to the virtual slice instance, so that the client determines whether to perform a YANG model file library update according to the YANG model file library update message, where the YANG model file library update message includes a virtual slice instance identifier and a module-set-id value. The Netconf engine in the network device may encapsulate the virtual slice instance identifier and the module-set-id value in a YANG model file library update message, and send the YANG model file library update message to the corresponding client. And the client judges whether the message needs to be processed according to the virtual slice instance identifier and the module-set-id value, and performs corresponding YANG model file library updating operation.
In the embodiment, when the content of the YANG model file library corresponding to the virtual slice instance changes, the network device re-determines the module-set-id corresponding to the YANG model file library, and sends a YANG model file library updating message containing the virtual slice instance identifier and the module-set-id value to the client corresponding to the virtual slice instance, so that the client can judge whether to update the YANG model file library according to the YANG model file library updating message, the client corresponding to each virtual slice instance can update the corresponding YANG model file library timely as required, unnecessary global updating is avoided, and the operation and maintenance efficiency is improved.
Fig. 7 is a schematic structural diagram of another embodiment of the network device of the present disclosure. The network device includes an instance identity transmitting unit 710, a module-set-id value determining unit 720, and an update message transmitting unit 730.
The instance identifier sending unit 710 is configured to send each virtual slice instance identifier to a client corresponding to the virtual slice instance in advance. The Netconf engine of the network device allocates a unique identifier for each virtual slice instance, and sends the identifier to the Netconf client corresponding to the slice through a system-owned RPC message.
The module-set-id value determining unit 720 is configured to determine the module-set-id value corresponding to the YANG model file library again when the content of the YANG model file library corresponding to a virtual slice instance changes. The hash calculation can be performed on the file in the YANG model file library, and the file hash value is used as a module-set-id value.
The update message sending unit 730 is configured to send a YANG model file library update message to the client corresponding to the virtual slice instance. The client firstly judges whether the received virtual slice instance identifier is consistent with the stored virtual slice instance identifier, if so, judges whether the received module-set-id value is consistent with the hash value calculated according to the file in the local YANG model file library, and if not, initiates an update operation of the YANG model file library.
In the embodiment, the unique identifier is allocated to the virtual slice instance, and the YANG model file library updating message is sent to the client corresponding to the virtual slice instance, so that the YANG model file library is updated by the client corresponding to each virtual slice as required, application expansion of the existing standard scheme for virtual slice scenes is realized, and the safety of resource information isolation of each virtual slice is improved.
Fig. 8 is a schematic structural diagram of an embodiment of a client according to the present disclosure. The client includes an update message receiving unit 810 and a file repository updating unit 820.
The update message receiving unit 810 is configured to receive a YANG model file library update message sent by a network device, where the YANG model file library update message includes a virtual slice instance identifier corresponding to a client and a module-set-id value of a YANG model file library corresponding to a virtual slice instance. When the content of the YANG model file library corresponding to a certain virtual slice instance changes, the Netconf engine recalculates the changed module-set-id value, and sends the virtual slice instance identifier and the module-set-id value of the YANG model file library corresponding to the virtual slice instance to the client.
The file library updating unit 820 is configured to determine whether to perform a YANG model file library update according to the YANG model file library update message.
In the embodiment, the client determines whether to update the YANG model file library according to the virtual slice instance identifier and the module-set-id value of the model configuration identifier of the YANG model file library corresponding to the virtual slice instance, so that the client corresponding to each virtual slice instance can update the corresponding YANG model file library timely as required, and unnecessary global update is avoided.
Fig. 9 is a schematic structural diagram of another embodiment of the client according to the present disclosure. The client includes an instance identification receiving unit 910, an update message receiving unit 920, and a repository updating unit 930.
The instance identifier receiving unit 910 is configured to receive a virtual slice instance identifier sent by a network device in advance, and store the virtual slice instance identifier. The Netconf engine of the network device allocates a unique identifier for each virtual slice instance, and sends the identifier to the Netconf client corresponding to the slice through the RPC message carried by the system.
The update message receiving unit 920 is configured to receive a YANG model file library update message sent by a network device, where the YANG model file library update message includes a virtual slice instance identifier corresponding to a client and a model-set-id value of a model configuration identifier of a YANG model file library corresponding to a virtual slice instance.
The file library updating unit 930 is configured to determine whether the received virtual slice instance identifier is consistent with a virtual slice instance identifier stored in advance, perform hash calculation on a file in the local YANG model file library if the received virtual slice instance identifier is consistent with the virtual slice instance identifier stored in advance, compare a hash calculation result with a module-set-id value, and initiate a YANG model file library updating operation if the hash calculation result is inconsistent with the module-set-id value.
In the embodiment, the unique identifier is allocated to the virtual slice instance, and the YANG model file library updating message is sent to the client corresponding to the virtual slice instance, so that the YANG model file library is updated by the client corresponding to each virtual slice as required, application expansion of the existing standard scheme for virtual slice scenes is realized, safety of resource information isolation of each virtual slice is improved, and the method has values of application and popularization in the existing network.
FIG. 10 is a block diagram illustrating an embodiment of the present disclosure system for updating a YANG model document library. The system comprises a network device 1010 and a client 1020, wherein the network device 1010 is a Netconf server, and the client 120 is a Netconf client. The network device 1010 and the client 1020 are described in detail in the above embodiments, and are not further described here.
FIG. 11 is a schematic diagram of a structure of another embodiment of the disclosed system for updating a YANG model document library. The system includes a memory 1110 and a processor 1120, wherein:
memory 1110 may be a magnetic disk, flash memory, or any other non-volatile storage medium. The memory is used for storing the instructions in the embodiments corresponding to fig. 2 and 4. Processor 1120, coupled to memory 1110, may be implemented as one or more integrated circuits, such as a microprocessor or microcontroller. The processor 1120 is configured to execute instructions stored in a memory.
In one embodiment, as also shown in fig. 12, the system 1200 includes a memory 1210 and a processor 1220. Processor 1220 is coupled to memory 1210 through a BUS 1230. The system 1200 may also be coupled to an external storage device 1250 via a storage interface 1240 for facilitating retrieval of external data, and may also be coupled to a network or another computer system (not shown) via a network interface 1260, which will not be described in detail herein.
In the embodiment, the data instructions are stored in the memory, and the instructions are processed by the processor, so that the client corresponding to each virtual slice instance can update the corresponding YANG model file library as required in time, unnecessary global update is avoided, and the operation and maintenance efficiency is improved.
In another embodiment, a computer-readable storage medium has stored thereon computer program instructions which, when executed by a processor, implement the steps of the method in the embodiments corresponding to fig. 2 and 4. As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, apparatus, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Thus far, the present disclosure has been described in detail. Some details that are well known in the art have not been described in order to avoid obscuring the concepts of the present disclosure. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the foregoing examples are for purposes of illustration only and are not intended to limit the scope of the present disclosure. It will be appreciated by those skilled in the art that modifications may be made to the above embodiments without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Thus far, the present disclosure has been described in detail. Some details that are well known in the art have not been described in order to avoid obscuring the concepts of the present disclosure. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the foregoing examples are for purposes of illustration only and are not intended to limit the scope of the present disclosure. It will be appreciated by those skilled in the art that modifications may be made to the above embodiments without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims (15)
1. A method of updating a YANG model document library comprising:
when the content of a YANG model file library corresponding to the virtual slice instance changes, the network equipment re-determines the module-set-id value of the model configuration identifier corresponding to the YANG model file library;
and sending a YANG model file library updating message to a client corresponding to the virtual slice example so that the client can judge whether the YANG model file library is updated according to the YANG model file library updating message, wherein the YANG model file library updating message comprises a virtual slice example identifier and the module-set-id value.
2. The method of claim 1, wherein the network device re-determining the module-set-id value corresponding to the YANG model file library comprises:
and the network equipment performs hash calculation on the files in the YANG model file library, and takes the file hash value as the module-set-id value.
3. The method of claim 1, further comprising:
and the network equipment sends each virtual slice instance identifier to a client corresponding to the virtual slice instance in advance.
4. The method of any of claims 1-3, wherein the determining, by the client, whether to perform a YANG model repository update according to the YANG model repository update message comprises:
and after receiving the YANG model file library updating message, the client judges whether the received virtual slice instance identifier is consistent with a pre-stored virtual slice instance identifier, and if so, determines whether the YANG model file library is updated according to the module-set-id value.
5. The method of claim 4, wherein,
and the client performs hash calculation on files in the local YANG model file library, compares a hash calculation result with the module-set-id value, and initiates an YANG model file library updating operation if the hash calculation result is inconsistent with the module-set-id value.
6. A network device, comprising:
a module-set-id value determining unit, configured to re-determine a module-set-id value of a model configuration identifier corresponding to a YANG model file library when content of the YANG model file library corresponding to a virtual slice instance changes;
and the update message sending unit is used for sending a YANG model file library update message to the client corresponding to the virtual slice instance so as to enable the client to judge whether the YANG model file library is updated or not according to the YANG model file library update message, wherein the YANG model file library update message comprises a virtual slice instance identifier and the module-set-id value.
7. The network device of claim 6,
the module-set-id value determining unit is used for carrying out hash calculation on the files in the YANG model file library, and taking the file hash value as the module-set-id value.
8. The network device of claim 6, further comprising:
and the example identifier sending unit is used for sending each virtual slice example identifier to the client corresponding to the virtual slice example in advance.
9. A client, comprising:
the system comprises an update message receiving unit, a YANG model file library updating unit and a YANG model file library updating unit, wherein the YANG model file library updating message comprises a virtual slice instance identifier corresponding to a client and a model configuration identifier module-set-id value of the YANG model file library corresponding to a virtual slice instance;
and the file library updating unit is used for judging whether to update the YANG model file library according to the YANG model file library updating message.
10. The client of claim 9, further comprising:
and the instance identifier receiving unit is used for receiving the virtual slice instance identifier sent by the network equipment in advance and storing the virtual slice instance identifier.
11. The client of claim 10, wherein,
and the file library updating unit is used for judging whether the received virtual slice instance identifier is consistent with a pre-stored virtual slice instance identifier or not after receiving the YANG model file library updating message, and if so, determining whether the YANG model file library is updated or not according to the module-set-id value.
12. The client according to claim 11, wherein,
the file library updating unit is also used for carrying out hash calculation on files in the local YANG model file library, comparing a hash calculation result with the module-set-id value, and initiating an YANG model file library updating operation if the hash calculation result is inconsistent with the module-set-id value.
13. A system for updating a YANG model document library comprising the network device of any of claims 6-8 and the client of any of claims 9-12.
14. A system for updating a YANG model document library, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the method of updating a YANG model document library of any of claims 1-5 based on instructions stored in the memory.
15. A computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of updating a YANG model file library of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810830394.1A CN110768811B (en) | 2018-07-26 | 2018-07-26 | Method, device and system for updating YANG model file library |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810830394.1A CN110768811B (en) | 2018-07-26 | 2018-07-26 | Method, device and system for updating YANG model file library |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110768811A true CN110768811A (en) | 2020-02-07 |
CN110768811B CN110768811B (en) | 2022-02-22 |
Family
ID=69327344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810830394.1A Active CN110768811B (en) | 2018-07-26 | 2018-07-26 | Method, device and system for updating YANG model file library |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110768811B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111654398A (en) * | 2020-06-08 | 2020-09-11 | 奇安信科技集团股份有限公司 | Configuration updating method and device, computer equipment and readable storage medium |
CN113300888A (en) * | 2021-05-21 | 2021-08-24 | 刘超 | YANG model browser and client device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105516312A (en) * | 2015-12-09 | 2016-04-20 | 重庆邮电大学 | Software defined networking load balancingdevice and method |
CN106559251A (en) * | 2015-09-30 | 2017-04-05 | 中兴通讯股份有限公司 | A kind of Compilation Method and corresponding interface, component and system based on YANG models |
US20170141973A1 (en) * | 2015-11-13 | 2017-05-18 | Huawei Technologies Co., Ltd. | Systems and methods for network slice management |
CN107801051A (en) * | 2017-10-27 | 2018-03-13 | 广东省南方数字电视无线传播有限公司 | Virtual sliced sheet information transferring method and device, video server |
-
2018
- 2018-07-26 CN CN201810830394.1A patent/CN110768811B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106559251A (en) * | 2015-09-30 | 2017-04-05 | 中兴通讯股份有限公司 | A kind of Compilation Method and corresponding interface, component and system based on YANG models |
US20170141973A1 (en) * | 2015-11-13 | 2017-05-18 | Huawei Technologies Co., Ltd. | Systems and methods for network slice management |
CN105516312A (en) * | 2015-12-09 | 2016-04-20 | 重庆邮电大学 | Software defined networking load balancingdevice and method |
CN107801051A (en) * | 2017-10-27 | 2018-03-13 | 广东省南方数字电视无线传播有限公司 | Virtual sliced sheet information transferring method and device, video server |
Non-Patent Citations (3)
Title |
---|
CISCO: "NETCONF Event Notifications", 《RFC5277》 * |
K.WATSEN: "YANG Module Library", 《RFC7895》 * |
杨晓等: "基于YANG的连网需求的建模", 《小型微型计算机***》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111654398A (en) * | 2020-06-08 | 2020-09-11 | 奇安信科技集团股份有限公司 | Configuration updating method and device, computer equipment and readable storage medium |
CN111654398B (en) * | 2020-06-08 | 2022-07-19 | 奇安信科技集团股份有限公司 | Configuration updating method and device, computer equipment and readable storage medium |
CN113300888A (en) * | 2021-05-21 | 2021-08-24 | 刘超 | YANG model browser and client device |
Also Published As
Publication number | Publication date |
---|---|
CN110768811B (en) | 2022-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3605323B1 (en) | Method for generating network slice template and for applying network slice template, and apparatus | |
EP3958606A1 (en) | Methods and devices for pushing and requesting model, storage medium and electronic device | |
CN104734931B (en) | Link establishing method and device between a kind of virtual network function | |
TWI751402B (en) | Data synchronization method, distributed system, computer readable storage and retrieval media, computer equipment and distributed equipment | |
KR20160122254A (en) | Method of deploying a set of software application(s) | |
CN106843933A (en) | A kind of leak restorative procedure of application program, mobile terminal and patch server | |
CN107111510B (en) | Method and device for operating VNF packet | |
CN107040568A (en) | Identification information generation method and device | |
CN104601366A (en) | Configuration service method and device for control and service nodes | |
CN109391673A (en) | A kind of method, system and the terminal device of management update file | |
CN110768811B (en) | Method, device and system for updating YANG model file library | |
US11740886B2 (en) | Algorithm update method and apparatus | |
CN113872951B (en) | Hybrid cloud security policy issuing method and device, electronic equipment and storage medium | |
CN104104701A (en) | Online service configuration updating method and system | |
CN113779422A (en) | Method and device for realizing relation chain label, electronic equipment and storage medium | |
CN111399866B (en) | Updating method and device of VNF (virtual network function) package | |
CN108536541B (en) | Process engine object processing method and device | |
CN108900603A (en) | A kind of server discovery methods, devices and systems | |
CN112015432A (en) | Static project deployment method and device | |
CN104348646A (en) | Configuration data processing method, device and system | |
CN109005203B (en) | Data synchronization method and device, storage medium, processor and terminal | |
CN114866970A (en) | Policy control method, system and related equipment | |
CN107005468B (en) | Method and device for determining NSD (non-volatile memory) to be uploaded | |
CN113760581A (en) | MQTT-based method and system for synchronizing attribute information of intelligent terminal | |
CN106445623B (en) | System component starting method and device |
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 |