WO2016202030A1 - Resource configuration loading method and apparatus - Google Patents

Resource configuration loading method and apparatus Download PDF

Info

Publication number
WO2016202030A1
WO2016202030A1 PCT/CN2016/076907 CN2016076907W WO2016202030A1 WO 2016202030 A1 WO2016202030 A1 WO 2016202030A1 CN 2016076907 W CN2016076907 W CN 2016076907W WO 2016202030 A1 WO2016202030 A1 WO 2016202030A1
Authority
WO
WIPO (PCT)
Prior art keywords
board
resource configuration
resource
configuration information
loading
Prior art date
Application number
PCT/CN2016/076907
Other languages
French (fr)
Chinese (zh)
Inventor
刘玉刚
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016202030A1 publication Critical patent/WO2016202030A1/en

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

Definitions

  • the present invention relates to the field of communications, and in particular to a resource configuration loading method and apparatus.
  • the current configuration of the board resource configuration is more common: whether the configuration is loaded depends on whether the current board type matches the board type in the configuration, and if it matches, it is loaded. If it does not match, the configuration is deleted, and then The default configuration load starts, and this scheme is widely used. Obviously, this type of loading is to strictly check the configured board type. Therefore, even if the resource types are the same, the configuration may fail to be loaded. You need to manually reconfigure the configuration.
  • the embodiment of the invention provides a resource configuration loading method and device, so as to solve at least the problem that the configuration cannot be loaded due to the mismatch of the board types in the related art.
  • a resource configuration loading method including: receiving interface information of a board in a device; querying resource configuration information corresponding to the interface information, to obtain a query result; Loading the board.
  • the querying the resource configuration information corresponding to the interface information includes: querying the resource configuration information from a database of the device, where the database stores resource configuration information of all boards, where all The board includes a board that the device is currently connected to and a board that is removed from the device.
  • loading the board according to the query result includes: replacing the board with the default value in the resource configuration information, where the query result indicates that the resource configuration information is queried
  • the resource configuration information is replaced by the incompatible resource, and the replaced resource configuration information is loaded to the board.
  • the resource that is incompatible with the board is marked.
  • marking the resource that is incompatible with the board includes: when the board is offline, clearing a flag of a resource that is incompatible with the board, and clearing the resource loaded for the board Configuration information.
  • loading the board according to the query result includes: loading, by using a default resource attribute, the board when the query result indicates that the resource configuration information is not queried.
  • a resource configuration loading apparatus including: a receiving module, configured to receive interface information of a board in a device; and a query module configured to query a resource configuration corresponding to the interface information The information is obtained, and the loading result is obtained.
  • the loading module is configured to load the board according to the query result.
  • the querying module is further configured to query the resource configuration information from a database of the device, where the database stores resource configuration information of all boards, and all the boards include the device. The board that is currently connected and the board that is removed from the device.
  • the loading module includes: a replacement unit, configured to replace, in the case that the query result indicates that the resource configuration information is queried, that the resource configuration information is incompatible with the board by using a default value.
  • the resource is configured to obtain the replaced resource configuration information
  • the loading unit is configured to load the replaced resource configuration information to the board.
  • the apparatus further includes: a marking module configured to mark resources that are incompatible with the board.
  • the device further includes: an emptying module, configured to clear a mark of a resource that is incompatible with the board when the board is offline, and clear resource configuration information loaded for the board.
  • an emptying module configured to clear a mark of a resource that is incompatible with the board when the board is offline, and clear resource configuration information loaded for the board.
  • the loading module is further configured to load the board by using a default resource attribute if the query result indicates that the resource configuration information is not queried.
  • the interface information of the board in the device is received, and the resource configuration information corresponding to the interface information is queried, the query result is obtained, and the board is loaded according to the query result, and the related technology is solved. If the configuration of the board is not matched, the configuration of the board cannot be loaded. In this case, the board does not need to check the board type information. As long as the resource interfaces match, the actual physical board (such as silk screen, photoelectric, etc.) is used. The resource configuration is loaded as much as possible, and the loading process is more flexible and convenient, and more user-friendly. When the board is replaced, the effect of a large number of repeated configurations that the user may perform is avoided.
  • FIG. 1 is a flowchart of resource configuration loading according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a resource configuration loading apparatus according to an embodiment of the present invention.
  • FIG. 3 is a structural block diagram (1) of a resource configuration loading apparatus according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram (2) of a resource configuration loading apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram (3) of a resource configuration loading apparatus according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a resource configuration loading as a plug-in board according to an embodiment of the present invention.
  • FIG. 7 is a flow chart when a resource configuration is loaded as a board in accordance with an embodiment of the present invention.
  • FIG. 1 is a flowchart of resource configuration loading according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • Step S102 Receive interface information of a board in the device.
  • Step S104 Query resource configuration information corresponding to the interface information, and obtain a query result.
  • Step S106 The board is loaded according to the query result.
  • the interface information of the board in the device is received, and the resource configuration information corresponding to the interface information is queried, and the query result is obtained, and the board is loaded according to the query result, and the related information is solved.
  • the problem that the board type does not match in the technology causes the configuration to fail to load.
  • the method loads the resource configuration as much as possible, instead of having to verify the board type information, and loading the resource configuration when the type information matches. Therefore, it is not necessary to verify the board type information in the configuration loading process.
  • the actual physical board conditions such as silk screen, photoelectric, etc.
  • the resource configuration information corresponding to the reported interface information needs to be queried.
  • the resource configuration information may be queried in the database of the device, where the resource configuration of all the boards is stored in the database.
  • the information includes that the board that the device is currently connected to and the board that is removed from the device. This method can make the maximum possible loading in the process of configuration loading and improve the matching rate of resource configuration information.
  • the default configuration is used to replace the resource configuration information with the board.
  • the resource configuration information is obtained, and the replaced resource configuration information is loaded to the board.
  • the resource that is incompatible with the board is marked after the resource configuration information is replaced with the resource that is incompatible with the board. In order for the user to identify incompatible resources through the tag.
  • the label of the resource that is incompatible with the board is cleared, and the resource configuration information loaded for the board is cleared.
  • step S106 involves loading the board according to the query result.
  • the query result indicates that the resource configuration information is not queried, the default resource attribute is used to load the board.
  • the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases It is a better implementation.
  • the technical solution of the present invention in essence or the contribution to the related art can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a plurality of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the method of various embodiments of the present invention.
  • a resource configuration loading device is also provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the apparatus includes: a receiving module 22, which receives interface information of a board in a device; and a query module 24 configured to query and correspond to the interface information.
  • the resource configuration information is obtained, and the loading module 26 is configured to load the board according to the query result.
  • the query module 24 is further configured to query the resource configuration information from the database of the device, where the database stores the resource configuration information of all the boards, and all the boards include the board currently accessed by the device and are moved from the device. The board is removed.
  • the loading module 26 includes a replacing unit 262, which is set to indicate that the resource configuration information is queried when the query result indicates.
  • the resource information that is incompatible with the board in the resource configuration information is replaced by the default value, and the resource configuration information is replaced.
  • the loading unit 264 is configured to load the replaced resource configuration information to the board.
  • FIG. 4 is a structural block diagram (2) of a resource configuration loading apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus further includes: a marking module 42 configured to mark resources that are incompatible with the board.
  • FIG. 5 is a structural block diagram (3) of a resource configuration loading apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus further includes: an emptying module 52, configured to clear the incompatible with the board when the board is offline. Mark the resource and clear the resource configuration information loaded for the board.
  • an emptying module 52 configured to clear the incompatible with the board when the board is offline. Mark the resource and clear the resource configuration information loaded for the board.
  • the loading module 26 in the device is further configured to load the board using the default resource attribute if the query result indicates that the resource configuration information is not queried.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention in essence or the contribution to the related art can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a plurality of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the method of various embodiments of the present invention.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor executes S1, S2, and S3 according to the stored program code in the storage medium.
  • the main purpose of the optional embodiment of the present invention is to apply the previous configuration to the current physical environment as much as possible when the configuration is loaded.
  • the current device is often upgraded, and the new single board replaces the old single board. The situation sometimes occurs. If the old scheme is continued, the upgrade of the user will bring a lot of inconvenience, and the new scheme is adopted, which saves the user a lot of unnecessary repetitive operations, and has a comparison from the user presentation and the usage experience. Great improvement.
  • the information model is provided to the business callback, and the data is customized and packaged and sent to the client, and the mark bits of the information model database can be marked and cleared.
  • Step A The device is started, the configuration file is translated into the database, and the configuration management server database (information model database) is written;
  • Step B The board is powered on, and the interface is reported to the master;
  • Step C The configuration management server queries the database for the currently reported resource interface. If yes, run step D, otherwise run step E;
  • Step D According to the physical information of the current hardware board, the incompatible part of the configuration of the resource is replaced with a default value, and the compatible part is packaged and delivered to the configuration client, and the incompatible configuration is not valid in the database.
  • the tag is presented to the user for a specific display configuration command, and then step F is run.
  • Step E The resource attribute is packaged and delivered to the configuration client by default configuration.
  • Step F Configure the client to receive the configuration and deliver it to the underlying hardware and services of the corresponding board resource and take effect.
  • Step G When the board is offline, the resource interface reports offline to the master.
  • the configuration server clears the corresponding invalid flag for the offline resource, restores the resource configuration to the unloaded state, and configures the client to completely clear the previously received configuration.
  • the new configuration loading scheme does not need to pay special attention to the board type information.
  • the direct replacement can realize the configuration inheritance loading, which improves the efficiency of equipment upgrade and saves manpower and material resources.
  • the new configuration loading scheme no longer needs the board information, etc., so the binary configuration file can remove a lot of non-user-configured garbage data such as the board hardware information, which improves the readability of the configuration file. Sex.
  • RMAgent resource management agent client, responsible for resource reporting and resource attribute configuration to hardware
  • RMCenter Resource management server, responsible for centralized management of all resources and interaction with MIM
  • the card table is used to report all board information.
  • Res table resource management report resource table, store all current resources and status
  • the rescfg table is used to store the resource attribute configuration data delivered by the MIM.
  • Resattr table resource attribute dynamic table, used to synchronize data resource configuration data to peripheral boards
  • MIM Information model, sending user configuration to the corresponding registration configuration service module
  • PMCFG Product configuration management, responsible for managing product hardware related configuration business modules
  • 3905 object interface information object maintained by MIM, synchronized with the res table
  • FIG. 6 is a flowchart of loading a resource configuration as a plug-in board according to an embodiment of the present invention. As shown in FIG. 6, the process includes:
  • step S602 when the peripheral board is powered on, the RMAgent reports the board and the port information to the RMCenter, and the RMCenter writes the card table and the res table.
  • the example here is the xgei port.
  • step S604 the RMCenter reports the xgei port information to the MIM.
  • MIM writes the 3905 object and triggers the third type of loading (for the third type of loading object, it needs to be defined in PM_MIM_EXTRA.xml, and the third class loaded check callback resides in MIM).
  • step S606 the validity check of the configuration object of the xgei interface is performed in the check callback of the third type of loading. If the current interface card does not support the xgei interface to configure the 1G rate, the invalid attribute is marked in the 100 attribute corresponding to the rate configuration of the object. .
  • step S608 the object operations that have passed the validity check are chained in the form of the object operation node, and the MIM collects the object operations on the chain later, and is packaged and sent to the PMCFG.
  • the valid/invalid flag of the rate configuration of the xgei port is also sent to the PMCFG.
  • Step S610 for the rate attribute, if it is a valid flag, the PMCFG writes the 1G rate configuration to the rescfg of the xgei port. In the service configuration table record, if it is invalid, PMCFG will write the default rate value of the xgei port to the rescfg configuration table.
  • step S612 the rescfg configuration table triggers a change notification to the RMCenter.
  • step S614 the RMCenter writes the resattr service dynamic table.
  • step S616 the resattr dynamic table is synchronized to the peripheral board and changed to the RMAgent.
  • step S618 the RMAgent sets the rate value of the correct xgei port to the chip.
  • FIG. 7 is a flowchart of loading a resource configuration into a board according to an embodiment of the present invention. As shown in FIG. 7, the process includes:
  • step S702 the RMAgent reports the board to the RMCenter to go offline.
  • step S704 the RMCenter deletes all the service dynamic table records related to the xgei port, such as resattr, but the res table retains the xgei port record, and only sets the state of the xgei port to be offline (for the delete offline interface command to select the offline interface).
  • step S706 the RMCenter sets the card table to be offline, and the card change informs the PMCFG that the current xgei port is offline.
  • step S708 the RMCenter reports the xgei interface to the MIM in the DDM mode.
  • step S710 the PMCFG detects the change notification of the offline of the card table, and deletes the service configuration table such as rescfg corresponding to the xgei interface card.
  • step S712 the DDM reporting operation is received, and the MIM writes the offline state to the 3905 object record corresponding to the xgei port, and triggers the third type of loading.
  • the xgei port of the product configuration resides in the third type of load check callback, and the previously set 1G rate invalid flag is cleared, and the 1G rate flag is updated to the unloaded configuration.
  • the interface information of the board in the device is received, and the resource configuration information corresponding to the interface information is queried, and the query result is obtained, and the query result is obtained according to the query result.
  • the board is loaded to solve the problem that the configuration fails to be loaded in the related art.
  • the configuration of the board is not required to be verified.
  • the situation such as silk screen, photoelectric, etc.
  • the resource configuration is loaded as much as possible, and the loading process is more flexible and convenient, and more user-friendly.
  • the board is replaced, the effect of a large number of repeated configurations that the user may perform is avoided.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the foregoing embodiments of the present invention can be applied to the field of communication, and the problem that the configuration cannot be loaded due to the mismatch of the types of the boards in the related art is solved, and the information of the board type is not required to be verified in the configuration loading process, as long as the resource interfaces are matched.
  • the resource configuration is loaded as much as possible, and the loading process is more flexible and convenient, and more user-friendly. When the board is replaced, the user may be avoided. The effect of a large number of repeated configurations.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a resource configuration loading method and apparatus. The method comprises: receiving interface information about a single board in a device, inquiring resource configuration information corresponding to the interface information to obtain an inquiry result, and loading the single board according to the inquiry result. The present invention resolves the problem of configuration loading failure caused by non-matching of a single board type in the related art, and further achieves the effects of loading, as long as resource interfaces are matched, resource configuration as much as possible under a current actual situation (for example, silk screening or photo-electricity) of a physical single board with no need of checking single board type information in a configuration loading process, thereby making the loading process more flexible, more convenient and more humanized, and avoiding possible over-repetitive configuration of a user during replacement of a single board.

Description

资源配置加载方法及装置Resource configuration loading method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种资源配置加载方法及装置。The present invention relates to the field of communications, and in particular to a resource configuration loading method and apparatus.
背景技术Background technique
目前现行的单板资源配置加载比较通用的方式为:配置是否加载取决于当前单板类型与配置中的单板类型是否匹配,如果匹配则加载,如果不匹配,对配置进行删除操作,然后以默认配置加载启动,这种方案被广泛应用。很显然,这种加载方式是对配置的单板类型进行严格校验,因此即使资源类型完全一致,也有可能发生配置无法加载的情况,需要用户手动重新进行配置。Currently, the current configuration of the board resource configuration is more common: whether the configuration is loaded depends on whether the current board type matches the board type in the configuration, and if it matches, it is loaded. If it does not match, the configuration is deleted, and then The default configuration load starts, and this scheme is widely used. Obviously, this type of loading is to strictly check the configured board type. Therefore, even if the resource types are the same, the configuration may fail to be loaded. You need to manually reconfigure the configuration.
针对相关技术中单板类型不匹配导致配置无法进行配置加载的问题,目前还未提出有效的解决方案。The problem that the configuration cannot be configured and loaded due to the mismatch of the board types in the related art has not yet been proposed.
发明内容Summary of the invention
本发明实施例提供了一种资源配置加载方法及装置,以至少解决针对相关技术中单板类型不匹配导致配置无法加载的问题。The embodiment of the invention provides a resource configuration loading method and device, so as to solve at least the problem that the configuration cannot be loaded due to the mismatch of the board types in the related art.
根据本发明实施例的一个方面,提供了一种资源配置加载方法,包括:接收设备内单板的接口信息;查询与所述接口信息对应的资源配置信息,得到查询结果;根据所述查询结果对所述单板进行加载。According to an aspect of the embodiments of the present invention, a resource configuration loading method is provided, including: receiving interface information of a board in a device; querying resource configuration information corresponding to the interface information, to obtain a query result; Loading the board.
可选地,查询与所述接口信息对应的资源配置信息包括:从所述设备的数据库中查询所述资源配置信息,其中,所述数据库中存储有所有单板的资源配置信息,所述所有单板包括所述设备当前所接入的单板和从所述设备移除的单板。Optionally, the querying the resource configuration information corresponding to the interface information includes: querying the resource configuration information from a database of the device, where the database stores resource configuration information of all boards, where all The board includes a board that the device is currently connected to and a board that is removed from the device.
可选地,根据所述查询结果对所述单板进行加载包括:在所述查询结果指示查询到所述资源配置信息的情况下,用默认值替换所述资源配置信息中与所述单板不可兼容的资源,得到替换后的资源配置信息;将所述替换后的资源配置信息加载至所述单板。Optionally, loading the board according to the query result includes: replacing the board with the default value in the resource configuration information, where the query result indicates that the resource configuration information is queried The resource configuration information is replaced by the incompatible resource, and the replaced resource configuration information is loaded to the board.
可选地,用默认值替换所述资源配置信息与所述单板不可兼容的资源之后包括:对与所述单板不可兼容的资源进行标记。Optionally, after the resource configuration information is incompatible with the resource that is incompatible with the board, the resource that is incompatible with the board is marked.
可选地,对与所述单板不可兼容的资源进行标记之后包括:在所述单板离线时,清空与所述单板不可兼容的资源的标记,并清空为所述单板加载的资源配置信息。Optionally, marking the resource that is incompatible with the board includes: when the board is offline, clearing a flag of a resource that is incompatible with the board, and clearing the resource loaded for the board Configuration information.
可选地,根据所述查询结果对所述单板进行加载包括:在所述查询结果指示未查询到所述资源配置信息的情况下,使用默认资源属性对所述单板进行加载。 Optionally, loading the board according to the query result includes: loading, by using a default resource attribute, the board when the query result indicates that the resource configuration information is not queried.
根据本发明实施例的另一个方面,提供了一种资源配置加载装置,包括:接收模块,设置为接收设备内单板的接口信息;查询模块,设置为查询与所述接口信息对应的资源配置信息,得到查询结果;加载模块,设置为根据所述查询结果对所述单板进行加载。According to another aspect of the present invention, a resource configuration loading apparatus is provided, including: a receiving module, configured to receive interface information of a board in a device; and a query module configured to query a resource configuration corresponding to the interface information The information is obtained, and the loading result is obtained. The loading module is configured to load the board according to the query result.
可选地,所述查询模块还设置为从所述设备的数据库中查询所述资源配置信息,其中,所述数据库中存储有所有单板的资源配置信息,所述所有单板包括所述设备当前所接入的单板和从所述设备移除的单板。Optionally, the querying module is further configured to query the resource configuration information from a database of the device, where the database stores resource configuration information of all boards, and all the boards include the device. The board that is currently connected and the board that is removed from the device.
可选地,所述加载模块包括:替换单元,设置为在所述查询结果指示查询到所述资源配置信息的情况下,用默认值替换所述资源配置信息中与所述单板不可兼容的资源,得到替换后的资源配置信息;加载单元,设置为将所述替换后的资源配置信息加载至所述单板。Optionally, the loading module includes: a replacement unit, configured to replace, in the case that the query result indicates that the resource configuration information is queried, that the resource configuration information is incompatible with the board by using a default value. The resource is configured to obtain the replaced resource configuration information, and the loading unit is configured to load the replaced resource configuration information to the board.
可选地,所述装置还包括:标记模块,设置为对与所述单板不可兼容的资源进行标记。Optionally, the apparatus further includes: a marking module configured to mark resources that are incompatible with the board.
可选地,所述装置还包括:清空模块,设置为在所述单板离线时,清空与所述单板不可兼容的资源的标记,并清空为所述单板加载的资源配置信息。Optionally, the device further includes: an emptying module, configured to clear a mark of a resource that is incompatible with the board when the board is offline, and clear resource configuration information loaded for the board.
可选地,所述加载模块还设置为在所述查询结果指示未查询到所述资源配置信息的情况下,使用默认资源属性对所述单板进行加载。Optionally, the loading module is further configured to load the board by using a default resource attribute if the query result indicates that the resource configuration information is not queried.
通过本发明实施例,在配置加载的过程中,接收设备内单板的接口信息,查询与接口信息对应的资源配置信息,得到查询结果,根据查询结果对单板进行加载,解决了相关技术中单板类型不匹配导致配置无法加载的问题,进而实现了在配置加载过程中无需校验单板类型信息,只要资源接口匹配,就针对当前的物理单板实际情况(譬如丝印、光电等),尽最大可能加载资源配置,并且在加载过程中实现了更为灵活方便,更加人性化,在更换单板的时候避免用户可能进行的大量重复配置的效果。In the embodiment of the present invention, in the process of configuring the loading, the interface information of the board in the device is received, and the resource configuration information corresponding to the interface information is queried, the query result is obtained, and the board is loaded according to the query result, and the related technology is solved. If the configuration of the board is not matched, the configuration of the board cannot be loaded. In this case, the board does not need to check the board type information. As long as the resource interfaces match, the actual physical board (such as silk screen, photoelectric, etc.) is used. The resource configuration is loaded as much as possible, and the loading process is more flexible and convenient, and more user-friendly. When the board is replaced, the effect of a large number of repeated configurations that the user may perform is avoided.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的资源配置加载流程图;FIG. 1 is a flowchart of resource configuration loading according to an embodiment of the present invention; FIG.
图2是根据本发明实施例的资源配置加载装置结构框图;2 is a structural block diagram of a resource configuration loading apparatus according to an embodiment of the present invention;
图3是根据本发明实施例的资源配置加载装置结构框图(一);3 is a structural block diagram (1) of a resource configuration loading apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的资源配置加载装置结构框图(二);4 is a structural block diagram (2) of a resource configuration loading apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的资源配置加载装置结构框图(三);FIG. 5 is a structural block diagram (3) of a resource configuration loading apparatus according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的在资源配置加载为插板时的流程图;6 is a flowchart of a resource configuration loading as a plug-in board according to an embodiment of the present invention;
图7是根据本发明实施例的在资源配置加载为拔板时的流程图。 FIG. 7 is a flow chart when a resource configuration is loaded as a board in accordance with an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种资源配置加载方法,图1是根据本发明实施例的资源配置加载流程图,如图1所示,该流程包括如下步骤:In this embodiment, a resource configuration loading method is provided. FIG. 1 is a flowchart of resource configuration loading according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
步骤S102,接收设备内单板的接口信息;Step S102: Receive interface information of a board in the device.
步骤S104,查询与接口信息对应的资源配置信息,得到查询结果;Step S104: Query resource configuration information corresponding to the interface information, and obtain a query result.
步骤S106,根据查询结果对单板进行加载。Step S106: The board is loaded according to the query result.
通过上述步骤,采用在配置加载的过程中,接收设备内单板的接口信息,查询与该接口信息对应的资源配置信息,得到查询结果,根据该查询结果对该单板进行加载,解决了相关技术中单板类型不匹配导致配置无法加载的问题。相比于相关技术,该方法尽最大可能加载资源配置,而不是必须得校验单板类型信息,在类型信息匹配的情况下加载资源配置。进而实现了在配置加载过程中无需校验单板类型信息,只要资源接口匹配,就针对当前的物理单板实际情况(譬如丝印、光电等),并且在加载过程中实现了更为灵活方便,更加人性化,在更换单板的时候避免用户可能进行的大量重复配置的效果。After the configuration is performed, the interface information of the board in the device is received, and the resource configuration information corresponding to the interface information is queried, and the query result is obtained, and the board is loaded according to the query result, and the related information is solved. The problem that the board type does not match in the technology causes the configuration to fail to load. Compared with the related technology, the method loads the resource configuration as much as possible, instead of having to verify the board type information, and loading the resource configuration when the type information matches. Therefore, it is not necessary to verify the board type information in the configuration loading process. As long as the resource interfaces match, the actual physical board conditions (such as silk screen, photoelectric, etc.) are implemented, and the loading process is more flexible and convenient. It is more user-friendly, and avoids the effect of a large number of repeated configurations that the user may perform when replacing the board.
在加载配置资源之前,需要查询上报的接口信息对应的资源配置信息,在一个可选实施例中,可以是设备的数据库中查询该资源配置信息,其中,数据库中存储有所有单板的资源配置信息,该所有单板包括该设备当前所接入的单板和从该设备移除的单板。通过该方法可以使得在配置加载的过程中,最大可能的加载,提高资源配置信息的匹配率。Before loading the configuration resource, the resource configuration information corresponding to the reported interface information needs to be queried. In an optional embodiment, the resource configuration information may be queried in the database of the device, where the resource configuration of all the boards is stored in the database. The information includes that the board that the device is currently connected to and the board that is removed from the device. This method can make the maximum possible loading in the process of configuration loading and improve the matching rate of resource configuration information.
在一个可选实施例中,在设备的数据库中查询到该资源配置信息后,并且在查询结果指示查询到该资源配置信息的情况下,用默认值替换该资源配置信息中与该单板不可兼容的资源,得到替换后的资源配置信息,并且将替换后的资源配置信息加载至该单板。In an optional embodiment, after the resource configuration information is queried in the database of the device, and the query result indicates that the resource configuration information is queried, the default configuration is used to replace the resource configuration information with the board. The resource configuration information is obtained, and the replaced resource configuration information is loaded to the board.
在一个可选实施例中,在用默认值替换该资源配置信息与单板不可兼容的资源之后,对与该单板不可兼容的资源进行标记。以便于用户通过该标记对不可兼容的资源进行识别。In an optional embodiment, the resource that is incompatible with the board is marked after the resource configuration information is replaced with the resource that is incompatible with the board. In order for the user to identify incompatible resources through the tag.
在一个可选实施例中,将单板不可兼容的资源进行标记之后,在该单板离线时,清空与该单板不可兼容的资源的标记,并清空为该单板加载的资源配置信息。In an optional embodiment, after the board is incompatible with the resource, the label of the resource that is incompatible with the board is cleared, and the resource configuration information loaded for the board is cleared.
上述步骤S106涉及到根据查询结果对单板进行加载,在一个可选实施例中,在查询结果指示未查询到资源配置信息的情况下,使用默认资源属性对单板进行加载。The foregoing step S106 involves loading the board according to the query result. In an optional embodiment, if the query result indicates that the resource configuration information is not queried, the default resource attribute is used to load the board.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前 者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例该的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases It is a better implementation. Based on such understanding, the technical solution of the present invention in essence or the contribution to the related art can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a plurality of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the method of various embodiments of the present invention.
在本实施例中还提供了一种资源配置加载装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a resource configuration loading device is also provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的资源配置加载装置结构框图,如图2示,该装置包括:接收模块22,接收设备内单板的接口信息;查询模块24,设置为查询与该接口信息对应的资源配置信息,得到查询结果;加载模块26,设置为根据该查询结果对该单板进行加载。2 is a structural block diagram of a resource configuration loading apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes: a receiving module 22, which receives interface information of a board in a device; and a query module 24 configured to query and correspond to the interface information. The resource configuration information is obtained, and the loading module 26 is configured to load the board according to the query result.
上述查询模块24还设置为从设备的数据库中查询资源配置信息,其中,该数据库中存储有所有单板的资源配置信息,所有单板包括该设备当前所接入的单板和从该设备移除的单板。The query module 24 is further configured to query the resource configuration information from the database of the device, where the database stores the resource configuration information of all the boards, and all the boards include the board currently accessed by the device and are moved from the device. The board is removed.
图3是根据本发明实施例的资源配置加载装置结构框图(一),如图3所示,该装置中加载模块26包括,替换单元262,设置为在查询结果指示查询到资源配置信息的情况下,用默认值替换该资源配置信息中与单板不可兼容的资源,得到替换后的资源配置信息;加载单元264,设置为将该替换后的资源配置信息加载至该单板。3 is a structural block diagram (1) of a resource configuration loading apparatus according to an embodiment of the present invention. As shown in FIG. 3, the loading module 26 includes a replacing unit 262, which is set to indicate that the resource configuration information is queried when the query result indicates. The resource information that is incompatible with the board in the resource configuration information is replaced by the default value, and the resource configuration information is replaced. The loading unit 264 is configured to load the replaced resource configuration information to the board.
图4是根据本发明实施例的资源配置加载装置结构框图(二),如图4所示,该装置还包括:标记模块42,设置为对与单板不可兼容的资源进行标记。FIG. 4 is a structural block diagram (2) of a resource configuration loading apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus further includes: a marking module 42 configured to mark resources that are incompatible with the board.
图5是根据本发明实施例的资源配置加载装置结构框图(三),如图5所示,该装置还包括:清空模块52,设置为在单板离线时,清空与该单板不可兼容的资源的标记,并清空为该单板加载的资源配置信息。FIG. 5 is a structural block diagram (3) of a resource configuration loading apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus further includes: an emptying module 52, configured to clear the incompatible with the board when the board is offline. Mark the resource and clear the resource configuration information loaded for the board.
装置中的加载模块26还设置为在查询结果指示未查询到资源配置信息的情况下,使用默认资源属性对单板进行加载。The loading module 26 in the device is further configured to load the board using the default resource attribute if the query result indicates that the resource configuration information is not queried.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例该的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention in essence or the contribution to the related art can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a plurality of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the method of various embodiments of the present invention.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。 It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,接收设备内单板的接口信息;S1, receiving interface information of a board in the device;
S2,查询与接口信息对应的资源配置信息,得到查询结果;S2, querying resource configuration information corresponding to the interface information, and obtaining a query result;
S3,根据查询结果对单板进行加载。S3: The board is loaded according to the query result.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行S1,S2以及S3。Optionally, in the embodiment, the processor executes S1, S2, and S3 according to the stored program code in the storage medium.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
本发明的可选实施例主要目的在于,在配置加载的时候,尽可能将之前的配置生效于当前的物理环境,尤其目前经常会对局方设备进行升级换代,新单板替换老单板的情况时有发生,如果继续采用老方案,给用户的升级会带来诸多不便,而采用了新方案,省去了用户大量不必要的重复操作,从用户呈现和使用感受来讲都有一个比较大的提升。The main purpose of the optional embodiment of the present invention is to apply the previous configuration to the current physical environment as much as possible when the configuration is loaded. In particular, the current device is often upgraded, and the new single board replaces the old single board. The situation sometimes occurs. If the old scheme is continued, the upgrade of the user will bring a lot of inconvenience, and the new scheme is adopted, which saves the user a lot of unnecessary repetitive operations, and has a comparison from the user presentation and the usage experience. Great improvement.
本发明可选实施例采用以下技术方案实现资源配置的加载过程:An optional embodiment of the present invention implements a loading process of resource configuration by using the following technical solutions:
对于资源配置,其数据信息模型建模对象需要注册为第三类加载;For resource configuration, its data information model modeling object needs to be registered as a third type of loading;
对于资源接口上报,需要在上报数据中携带必要的接口硬件相关信息;For the resource interface report, you need to carry the necessary interface hardware related information in the reported data.
信息模型提供给业务回调,由业务定制打包下发给客户端的数据,并可以对信息模型数据库的标记位进行标记和清除。The information model is provided to the business callback, and the data is customized and packaged and sent to the client, and the mark bits of the information model database can be marked and cleared.
新的资源配置加载方案对配置加载的具体步骤:The specific steps of the new resource configuration loading scheme for configuration loading:
步骤A.设备启动,配置文件翻译入库,写入配置管理服务端数据库(信息模型数据库);Step A. The device is started, the configuration file is translated into the database, and the configuration management server database (information model database) is written;
步骤B.单板上电,接口上报到主控;Step B. The board is powered on, and the interface is reported to the master;
步骤C.配置管理服务端针对当前上报的资源接口,查询数据库,如果有配置,运行步骤D,否则运行步骤E;Step C. The configuration management server queries the database for the currently reported resource interface. If yes, run step D, otherwise run step E;
步骤D.根据当前硬件单板物理信息,将该资源的配置中不可兼容部分以默认值替代,连同可兼容部分打包下发到配置客户端,同时不可兼容的配置在数据库中标记未生效,此标记针对特定的显示配置命令向用户呈现,然后运行步骤F。Step D. According to the physical information of the current hardware board, the incompatible part of the configuration of the resource is replaced with a default value, and the compatible part is packaged and delivered to the configuration client, and the incompatible configuration is not valid in the database. The tag is presented to the user for a specific display configuration command, and then step F is run.
步骤E.将资源属性以默认配置打包下发到配置客户端;Step E: The resource attribute is packaged and delivered to the configuration client by default configuration.
步骤F.配置客户端收到配置,将其下发到对应单板资源的底层硬件和业务并生效; Step F. Configure the client to receive the configuration and deliver it to the underlying hardware and services of the corresponding board resource and take effect.
步骤G.单板离线时,资源接口上报离线到主控,配置服务端针对离线资源清空相应的无效标记,恢复到资源配置未加载状态,同时配置客户端将其之前接收到的配置完全清空;Step G. When the board is offline, the resource interface reports offline to the master. The configuration server clears the corresponding invalid flag for the offline resource, restores the resource configuration to the unloaded state, and configures the client to completely clear the previously received configuration.
与现有方案相比较,新的配置加载方案在单板更换时,无需再特意关注单板类型信息,直接更换即可实现配置继承加载,提高了设备升级的效率,节省了人力物力。同时,新的配置加载方案不再需要单板信息等等,因此二进制配置文件中可以去掉很多非用户配置的可读性很差的诸如单板硬件信息等垃圾数据,提高了配置文件的可读性。Compared with the existing solution, when the board is replaced, the new configuration loading scheme does not need to pay special attention to the board type information. The direct replacement can realize the configuration inheritance loading, which improves the efficiency of equipment upgrade and saves manpower and material resources. At the same time, the new configuration loading scheme no longer needs the board information, etc., so the binary configuration file can remove a lot of non-user-configured garbage data such as the board hardware information, which improves the readability of the configuration file. Sex.
下面分别结合图6和图7,并以xgei口的速率配置1G为例,对新的资源配置加载流程按照插板和拔板两种场景进行详细说明,所用到的专用名词注释:The following is a combination of FIG. 6 and FIG. 7 respectively, and the 1G is configured at the rate of the xgei interface as an example. The new resource configuration loading process is described in detail according to the scenario of inserting and pulling the board, and the specific nouns used are:
RMAgent:资源管理代理客户端,负责资源上报和资源属性配置到硬件RMAgent: resource management agent client, responsible for resource reporting and resource attribute configuration to hardware
RMCenter:资源管理服务端,负责所有资源集中管理,并与MIM交互RMCenter: Resource management server, responsible for centralized management of all resources and interaction with MIM
card表:资源管理上报单板表,存储当前所有单板信息The card table is used to report all board information.
res表:资源管理上报资源表,存储当前所有资源以及状态Res table: resource management report resource table, store all current resources and status
rescfg表:资源属性配置表,用于存储MIM下发的资源属性配置数据The rescfg table is used to store the resource attribute configuration data delivered by the MIM.
resattr表:资源属性动态表,用于向外围单板同步资源属性配置数据Resattr table: resource attribute dynamic table, used to synchronize data resource configuration data to peripheral boards
MIM:信息模型,将用户配置发送给相应的注册配置业务模块MIM: Information model, sending user configuration to the corresponding registration configuration service module
PMCFG:产品配置管理,负责管理产品硬件相关的配置业务模块PMCFG: Product configuration management, responsible for managing product hardware related configuration business modules
3905对象:MIM维护的接口信息对象,与res表同步3905 object: interface information object maintained by MIM, synchronized with the res table
图6是根据本发明实施例的在资源配置加载为插板时的流程图,如图6所示,该流程包括:FIG. 6 is a flowchart of loading a resource configuration as a plug-in board according to an embodiment of the present invention. As shown in FIG. 6, the process includes:
步骤S602,外围单板上电时,RMAgent向RMCenter上报单板及端口信息,RMCenter写card表、res表等,此处实例为上报xgei口。In the step S602, when the peripheral board is powered on, the RMAgent reports the board and the port information to the RMCenter, and the RMCenter writes the card table and the res table. The example here is the xgei port.
步骤S604,RMCenter将xgei口信息上报给MIM。MIM写3905对象,并触发第三类加载(对于需要进行第三类加载对象,需要在PM_MIM_EXTRA.xml中定义,并在MIM中驻留第三类加载的检查回调)。In step S604, the RMCenter reports the xgei port information to the MIM. MIM writes the 3905 object and triggers the third type of loading (for the third type of loading object, it needs to be defined in PM_MIM_EXTRA.xml, and the third class loaded check callback resides in MIM).
步骤S606,在第三类加载的检查回调中会对xgei口的配置对象进行有效性检查,如果当前接口卡不支持xgei口配置1G速率,则在对象的速率配置对应的100属性中打上无效标记。In step S606, the validity check of the configuration object of the xgei interface is performed in the check callback of the third type of loading. If the current interface card does not support the xgei interface to configure the 1G rate, the invalid attribute is marked in the 100 attribute corresponding to the rate configuration of the object. .
步骤S608,经过有效性检查的这些对象操作均会以对象操作节点的形式进行挂链,稍后MIM收集链上的对象操作,打包发送给PMCFG。xgei口的速率配置的有效/无效标记也会一同下发给PMCFG。In step S608, the object operations that have passed the validity check are chained in the form of the object operation node, and the MIM collects the object operations on the chain later, and is packaged and sent to the PMCFG. The valid/invalid flag of the rate configuration of the xgei port is also sent to the PMCFG.
步骤S610,对于速率属性,如果是有效标记,PMCFG将1G速率配置写入xgei口的rescfg 业务配置表记录中,如果是无效速率,PMCFG则会将xgei口默认的速率值写到rescfg配置表中。Step S610, for the rate attribute, if it is a valid flag, the PMCFG writes the 1G rate configuration to the rescfg of the xgei port. In the service configuration table record, if it is invalid, PMCFG will write the default rate value of the xgei port to the rescfg configuration table.
步骤S612,rescfg配置表触发变更通知给RMCenter。In step S612, the rescfg configuration table triggers a change notification to the RMCenter.
步骤S614,RMCenter写resattr业务动态表。In step S614, the RMCenter writes the resattr service dynamic table.
步骤S616,resattr动态表同步到外围单板,变更给RMAgent。In step S616, the resattr dynamic table is synchronized to the peripheral board and changed to the RMAgent.
步骤S618,RMAgent将正确的xgei口的速率值设置到芯片中。In step S618, the RMAgent sets the rate value of the correct xgei port to the chip.
图7是根据本发明实施例的在资源配置加载为拔板时的流程图,如图7所示,该流程包括:FIG. 7 is a flowchart of loading a resource configuration into a board according to an embodiment of the present invention. As shown in FIG. 7, the process includes:
步骤S702,RMAgent向RMCenter上报单板离线。In step S702, the RMAgent reports the board to the RMCenter to go offline.
步骤S704,RMCenter删除resattr等所有与该xgei口相关的业务动态表记录,但res表保留xgei口记录,只是将xgei口的状态置为离线(用于delete offline interface命令选取离线接口使用)。In step S704, the RMCenter deletes all the service dynamic table records related to the xgei port, such as resattr, but the res table retains the xgei port record, and only sets the state of the xgei port to be offline (for the delete offline interface command to select the offline interface).
步骤S706,RMCenter将card表置为离线,card变更通知PMCFG当前xgei口所在单板离线。In step S706, the RMCenter sets the card table to be offline, and the card change informs the PMCFG that the current xgei port is offline.
步骤S708,RMCenter采用DDM方式向MIM上报xgei口离线。In step S708, the RMCenter reports the xgei interface to the MIM in the DDM mode.
步骤S710,PMCFG感知到card表离线的变更通知,删除xgei口单板对应的rescfg等业务配置表。In step S710, the PMCFG detects the change notification of the offline of the card table, and deletes the service configuration table such as rescfg corresponding to the xgei interface card.
步骤S712,收到DDM上报操作,MIM将离线状态写入到xgei口对应的3905对象记录中,并触发第三类加载。当前为拔板操作,产品配置驻留的xgei口第三类加载检查回调中会将之前设置的1G速率无效标记清除,1G速率标记更新为未加载配置。In step S712, the DDM reporting operation is received, and the MIM writes the offline state to the 3905 object record corresponding to the xgei port, and triggers the third type of loading. Currently, for the boarding operation, the xgei port of the product configuration resides in the third type of load check callback, and the previously set 1G rate invalid flag is cleared, and the 1G rate flag is updated to the unloaded configuration.
综上所述,通过本发明,在配置加载的过程中,接收设备内单板的接口信息,查询与所述接口信息对应的资源配置信息,得到查询结果,根据所述查询结果对所述单板进行加载,解决了相关技术中单板类型不匹配导致配置无法加载的问题,进而实现了在配置加载过程中无需校验单板类型信息,只要资源接口匹配,就针对当前的物理单板实际情况(譬如丝印、光电等),尽最大可能加载资源配置,并且在加载过程中实现了更为灵活方便,更加人性化,在更换单板的时候避免用户可能进行的大量重复配置的效果。As described above, in the process of configuring loading, the interface information of the board in the device is received, and the resource configuration information corresponding to the interface information is queried, and the query result is obtained, and the query result is obtained according to the query result. The board is loaded to solve the problem that the configuration fails to be loaded in the related art. The configuration of the board is not required to be verified. The situation (such as silk screen, photoelectric, etc.), the resource configuration is loaded as much as possible, and the loading process is more flexible and convenient, and more user-friendly. When the board is replaced, the effect of a large number of repeated configurations that the user may perform is avoided.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。 It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
上述的本发明实施例,可以应用于通信领域,解决了相关技术中单板类型不匹配导致配置无法加载的问题,进而实现了在配置加载过程中无需校验单板类型信息,只要资源接口匹配,就针对当前的物理单板实际情况(譬如丝印、光电等),尽最大可能加载资源配置,并且在加载过程中实现了更为灵活方便,更加人性化,在更换单板的时候避免用户可能进行的大量重复配置的效果。 The foregoing embodiments of the present invention can be applied to the field of communication, and the problem that the configuration cannot be loaded due to the mismatch of the types of the boards in the related art is solved, and the information of the board type is not required to be verified in the configuration loading process, as long as the resource interfaces are matched. For the actual physical conditions of the physical board (such as silk screen, photoelectric, etc.), the resource configuration is loaded as much as possible, and the loading process is more flexible and convenient, and more user-friendly. When the board is replaced, the user may be avoided. The effect of a large number of repeated configurations.

Claims (12)

  1. 一种资源配置加载方法,包括:A resource configuration loading method includes:
    接收设备内单板的接口信息;Receive interface information of the board in the device;
    查询与所述接口信息对应的资源配置信息,得到查询结果;Querying resource configuration information corresponding to the interface information to obtain a query result;
    根据所述查询结果对所述单板进行加载。Loading the board according to the query result.
  2. 根据权利要求1所述的方法,其中,查询与所述接口信息对应的资源配置信息包括:The method of claim 1, wherein querying resource configuration information corresponding to the interface information comprises:
    从所述设备的数据库中查询所述资源配置信息,其中,所述数据库中存储有所有单板的资源配置信息,所述所有单板包括所述设备当前所接入的单板和从所述设备移除的单板。Querying the resource configuration information from the database of the device, where the database stores resource configuration information of all the boards, where all the boards include the board currently accessed by the device and from the The board removed by the device.
  3. 根据权利要求1所述的方法,其中,根据所述查询结果对所述单板进行加载包括:The method of claim 1, wherein loading the board according to the query result comprises:
    在所述查询结果指示查询到所述资源配置信息的情况下,用默认值替换所述资源配置信息中与所述单板不可兼容的资源,得到替换后的资源配置信息;If the query result indicates that the resource configuration information is queried, the resource that is incompatible with the board in the resource configuration information is replaced with a default value, and the replaced resource configuration information is obtained;
    将所述替换后的资源配置信息加载至所述单板。Loading the replaced resource configuration information to the board.
  4. 根据权利要求3所述的方法,其中,用默认值替换所述资源配置信息与所述单板不可兼容的资源之后包括:The method of claim 3, wherein replacing the resource configuration information with the resource that is incompatible with the board by using a default value comprises:
    对与所述单板不可兼容的资源进行标记。Mark resources that are not compatible with the board.
  5. 根据权利要求4所述的方法,其中,对与所述单板不可兼容的资源进行标记之后包括:The method of claim 4, wherein the marking of resources that are incompatible with the board comprises:
    在所述单板离线时,清空与所述单板不可兼容的资源的标记,并清空为所述单板加载的资源配置信息。When the board is offline, the label of the resource that is incompatible with the board is cleared, and the resource configuration information loaded for the board is cleared.
  6. 根据权利要求1至5中任一项所述的方法,其中,根据所述查询结果对所述单板进行加载包括:The method according to any one of claims 1 to 5, wherein loading the board according to the query result comprises:
    在所述查询结果指示未查询到所述资源配置信息的情况下,使用默认资源属性对所述单板进行加载。If the query result indicates that the resource configuration information is not queried, the board is loaded by using a default resource attribute.
  7. 一种资源配置加载装置,包括:A resource configuration loading device includes:
    接收模块,设置为接收设备内单板的接口信息;The receiving module is configured to receive interface information of the board in the device;
    查询模块,设置为查询与所述接口信息对应的资源配置信息,得到查询结果;The query module is configured to query resource configuration information corresponding to the interface information to obtain a query result;
    加载模块,设置为根据所述查询结果对所述单板进行加载。The loading module is configured to load the board according to the query result.
  8. 根据权利要求7所述的装置,其中,所述查询模块还设置为从所述设备的数据库中查询所述资源配置信息,其中,所述数据库中存储有所有单板的资源配置信息,所述所有单板包括所述设备当前所接入的单板和从所述设备移除的单板。 The device according to claim 7, wherein the query module is further configured to query the resource configuration information from a database of the device, wherein the database stores resource configuration information of all boards, All boards include a board that the device is currently connected to and a board that is removed from the device.
  9. 根据权利要求7所述的装置,其中,所述加载模块包括:The apparatus of claim 7, wherein the loading module comprises:
    替换单元,设置为在所述查询结果指示查询到所述资源配置信息的情况下,用默认值替换所述资源配置信息中与所述单板不可兼容的资源,得到替换后的资源配置信息;a replacement unit, configured to replace, by using a default value, a resource that is incompatible with the board in the resource configuration information, and obtain the replaced resource configuration information, where the query result indicates that the resource configuration information is queried;
    加载单元,设置为将所述替换后的资源配置信息加载至所述单板。The loading unit is configured to load the replaced resource configuration information to the board.
  10. 根据权利要求9所述的装置,其中,所述装置还包括:The apparatus of claim 9 wherein said apparatus further comprises:
    标记模块,设置为对与所述单板不可兼容的资源进行标记。A tagging module, configured to tag resources that are not compatible with the veneer.
  11. 根据权利要求10所述的装置,其中,所述装置还包括:The device of claim 10, wherein the device further comprises:
    清空模块,设置为在所述单板离线时,清空与所述单板不可兼容的资源的标记,并清空为所述单板加载的资源配置信息。The module is cleared, and the flag of the resource that is incompatible with the board is cleared when the board is offline, and the resource configuration information loaded for the board is cleared.
  12. 根据权利要求7至11中任一项所述的装置,其中,所述加载模块还设置为在所述查询结果指示未查询到所述资源配置信息的情况下,使用默认资源属性对所述单板进行加载。 The apparatus according to any one of claims 7 to 11, wherein the loading module is further configured to use the default resource attribute to the single item if the query result indicates that the resource configuration information is not queried The board is loaded.
PCT/CN2016/076907 2015-06-17 2016-03-21 Resource configuration loading method and apparatus WO2016202030A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510338726.0A CN106257866A (en) 2015-06-17 2015-06-17 Resource distribution loading method and device
CN201510338726.0 2015-06-17

Publications (1)

Publication Number Publication Date
WO2016202030A1 true WO2016202030A1 (en) 2016-12-22

Family

ID=57544941

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076907 WO2016202030A1 (en) 2015-06-17 2016-03-21 Resource configuration loading method and apparatus

Country Status (2)

Country Link
CN (1) CN106257866A (en)
WO (1) WO2016202030A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109104294A (en) * 2017-06-20 2018-12-28 中兴通讯股份有限公司 Veneer configuration method and device, veneer and computer readable storage medium
CN110764864A (en) * 2019-10-25 2020-02-07 北京浪潮数据技术有限公司 Terraform-based visual resource arrangement method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174897A (en) * 2007-10-24 2008-05-07 中兴通讯股份有限公司 Method for automatically discovering multi-mode veneer
CN101621437A (en) * 2008-06-30 2010-01-06 华为技术有限公司 A kind of communication system, add load control and method for loading software
CN101673212A (en) * 2009-10-27 2010-03-17 华为技术有限公司 Software loading method and apparatus thereof
CN101815088A (en) * 2010-02-02 2010-08-25 华为技术有限公司 Software activation method and device for network system and network system
CN101883013A (en) * 2010-07-09 2010-11-10 中兴通讯股份有限公司 Automatic configuration method and system for single board with alternative mode

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459499A (en) * 2007-12-13 2009-06-17 华为技术有限公司 Method for substituting single board and single board
CN101640613B (en) * 2009-09-11 2012-01-25 中兴通讯股份有限公司 Method and device for network resource relating management
CN101741618A (en) * 2009-12-10 2010-06-16 中兴通讯股份有限公司 Service processing method of data communication equipment and data communication equipment
CN101834663B (en) * 2010-04-08 2015-05-20 中兴通讯股份有限公司 Detection method and system of optical fiber connection

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174897A (en) * 2007-10-24 2008-05-07 中兴通讯股份有限公司 Method for automatically discovering multi-mode veneer
CN101621437A (en) * 2008-06-30 2010-01-06 华为技术有限公司 A kind of communication system, add load control and method for loading software
CN101673212A (en) * 2009-10-27 2010-03-17 华为技术有限公司 Software loading method and apparatus thereof
CN101815088A (en) * 2010-02-02 2010-08-25 华为技术有限公司 Software activation method and device for network system and network system
CN101883013A (en) * 2010-07-09 2010-11-10 中兴通讯股份有限公司 Automatic configuration method and system for single board with alternative mode

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109104294A (en) * 2017-06-20 2018-12-28 中兴通讯股份有限公司 Veneer configuration method and device, veneer and computer readable storage medium
CN109104294B (en) * 2017-06-20 2022-10-25 中兴通讯股份有限公司 Single board configuration method and device, single board and computer readable storage medium
CN110764864A (en) * 2019-10-25 2020-02-07 北京浪潮数据技术有限公司 Terraform-based visual resource arrangement method

Also Published As

Publication number Publication date
CN106257866A (en) 2016-12-28

Similar Documents

Publication Publication Date Title
CN103067484B (en) A kind of method and system of auto-update application program
CN109660372B (en) SDN service configuration method and device
CN102202087B (en) Method for identifying storage equipment and system thereof
CN107911249B (en) Method, device and equipment for sending command line of network equipment
CN112217656B (en) Method and device for synchronizing configuration information of network equipment in SD-WAN (secure digital-to-Wide area network) system
CN109683911B (en) System for realizing automatic application deployment and influence analysis
CN103634144A (en) Method, system and equipment for managing multi-IDC (internet data center) cluster configuration file
CN102726002B (en) Data configuration, and back off method and device for data configuration
WO2012155643A1 (en) Method for implementing configuration console based on database, configuration console, and system
EP2704031A1 (en) Improved schema mapping based on data views and database tables
US10148486B2 (en) Object version management
CN104503751B (en) Data source switch method based on SOA and the data source switching system based on SOA
CN111381820A (en) Method and device for automatically generating API based on GUI
US9461884B2 (en) Information management device and computer-readable medium recorded therein information management program
CN110400067A (en) A kind of method and system of purpose balance management
WO2016074412A1 (en) Compatibility administration method based on network configuration protocol, storage medium and device
WO2016202030A1 (en) Resource configuration loading method and apparatus
US20040204778A1 (en) Method for persisting SNMP MIB data in files
WO2016197953A1 (en) Method and device for deploying multi-mode base station
CN112035396B (en) Processor-implemented method, system, and storage medium for provisioning a set of solutions
US20230239212A1 (en) Stable References for Network Function Life Cycle Management Automation
CN102651696A (en) Method and system for managing network management system interfaces in various versions
CN101729286A (en) Method, device and system for modifying variables in management information base of agent terminal
US20080208797A1 (en) Automated record attribute value merging from multiple directory servers
CN103310304A (en) Method and device for managing process model

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16810771

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16810771

Country of ref document: EP

Kind code of ref document: A1