CN104683159B - Support the method and device of new type veneer - Google Patents
Support the method and device of new type veneer Download PDFInfo
- Publication number
- CN104683159B CN104683159B CN201510111184.3A CN201510111184A CN104683159B CN 104683159 B CN104683159 B CN 104683159B CN 201510111184 A CN201510111184 A CN 201510111184A CN 104683159 B CN104683159 B CN 104683159B
- Authority
- CN
- China
- Prior art keywords
- veneer
- type
- data
- new
- board
- 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.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of methods for supporting new type veneer, this method comprises: veneer obtains service packs;The service packs includes new type veneer instantiation data corresponding under the data structure defined based on veneer;Veneer determines instantiation data corresponding in service packs according to new board type, the operation data of slot number generation new type veneer where instantiation data is combined the new type veneer.The invention also discloses a kind of devices for supporting new type veneer.Support to new type veneer can be realized in the case where not updating software release using the present invention.
Description
Technical field
The present invention relates to information technology field, in particular to a kind of method and device for supporting new type veneer.
Background technique
The normal operation of switch device software, dependent on the associated description data of veneer each in system, these data one
As be the static data stored with various table structures, the referred to as core data of system.Every table is indexed by board type,
When veneer is inserted into, all static tables of software synthesis are organized into operation data.It is every to increase a kind of new board type, it is necessary to right
Each table is expanded, thus must updating software release just can be with.
Current number leads to field technology and makes rapid progress, and each producer's competition is abnormal fierce, in order to fight for market part as much as possible
Volume, each producer constantly design new product, provide new board type, meet the various demands of all trades and professions different clients.Visitor
Family often faces such problems, after equipment is online, needs to increase a kind of veneer of new type to meet new business demand.
This, which generally requires updating software release, can just accomplish, inevitably impact to the business of client.If client sets
It is standby relatively more, the upgrading of equipment is completed, is also a heavy burden for the operation maintenance personnel for the side of playing a game.
Therefore, it how in the case where not updating software release, realizes the support to new type veneer, becomes and pay close attention in the industry
The problem of.
Summary of the invention
The embodiment of the invention provides a kind of method and devices for supporting new type veneer, can be in not updating software release
In the case where, realize the support to new type veneer.
The embodiment of the invention provides a kind of methods for supporting new type veneer, this method comprises:
Veneer obtains service packs;The service packs includes new type veneer institute under the data structure defined based on veneer
Corresponding instantiation data;
Veneer determines instantiation data corresponding in service packs according to new board type, combines this new instantiation data
Slot number generates the operation data of new type veneer where type veneer.
The embodiment of the invention also provides a kind of device for supporting new type veneer, which includes:
Acquiring unit, for obtaining service packs;The service packs includes new type veneer in the data defined based on veneer
Corresponding instantiation data under structural body;
Generation unit will instantiate number for determining instantiation data corresponding in service packs according to new board type
According to the operation data for combining slot number where the new type veneer to generate new type veneer.
From above scheme as can be seen that veneer data instance is increased the veneer of a new type by the embodiment of the present invention
Increase a new example, the data of instantiation corresponding to new type veneer are dynamically loaded by way of service packs
Each veneer of switch device gets on, so that updating software release can not complete the support to new board type.
Detailed description of the invention
Fig. 1 is the method flow schematic diagram provided by the invention for supporting new type veneer.
Fig. 2 is the apparatus structure schematic diagram for being applied to the above method in the specific embodiment of the invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, right hereinafter, referring to the drawings and the embodiments,
The present invention is described in further detail.
The present invention is by veneer data instance, and the veneer for increasing a new type increases a new example, by new class
The data of instantiation corresponding to type veneer are dynamically loaded into each veneer of switch device up by way of service packs, from
The support to new board type can be completed without updating software release.Wherein, veneer includes master control borad, interface board and business
Plate etc..
Fig. 1 is the method flow schematic diagram provided by the invention for supporting new type veneer, as shown in Figure 1, this method comprises:
Step 11, veneer obtain service packs;The service packs includes new type veneer in the data knot defined based on veneer
Corresponding instantiation data under structure body;
Step 12, veneer determine instantiation data corresponding in service packs according to new board type, by instantiation data
The slot number in conjunction with where the new type veneer generates the operation data of new type veneer.
The board type that will be plugged originally on switch device in the present invention, referred to as former board type are corresponding single
Plate is known as former type veneer;The board type that will be newly increased, referred to as new board type, corresponding veneer are known as new type veneer.
When veneer be new type veneer,
When single board starting, veneer obtains service packs.
When single board starting, the veneer also obtains software version;The software version includes the number defined based on veneer
According to structural body, and the different instances data corresponding to different original board types under the data structure;
The plate of former veneer is inserted into message on veneer receiving device, carried in the plate insertion message slot number of the original veneer with
Board type;
Veneer determines instantiation data corresponding in software version according to former board type, and instantiation data is combined should
Slot number where former type veneer generates the operation data of former type veneer on new type veneer.
When veneer is former type veneer,
After veneer obtains service packs, the plate for receiving new type veneer is inserted into message, and it is new to carry this in plate insertion message
The slot number and board type of type veneer;
The veneer determines reality corresponding in service packs according to the new board type that new type veneer plate is inserted into message
Exampleization data, the operation data of slot number generation new type veneer where instantiation data is combined the new type veneer.
Below according to the method for Fig. 1, the present invention is described in detail.
1) before the veneer insertion for having new type, when master control borad is run, software version is loaded, includes being based in software version
The data structure that veneer defines, and for the data file of different board types under the data structure.
It wherein, include veneer description information, OEM (Original Equipment in the data structure based on veneer
Manufacture, original equipment manufacturer) description information, pilot trench description information, CPU description information, chip description information, object
Manage mouth description information, Panel User mouth description information etc..For the veneer of each type, the value of data structure is not identical
, that is to say, that different types of veneer is respectively corresponding with a data file, preserves in the data file for the type
The instantiation data of veneer.The data instantiated in data file are the sequences according to data structure, give each members element
Such as the description information in veneer, CPU, OEM carries out assignment.
2) master control borad determines data file corresponding in software version according to itself board type, from corresponding data text
Instantiation data corresponding to the board type is obtained in part;Slot number generates fortune where instantiation data is combined the master control borad
Row data.
When other single board startings, load request is sent to master control borad, software version is sent to other veneers by master control borad, together
Reason, other veneers determine data file corresponding in software version according to itself board type, from corresponding data file
Obtain instantiation data corresponding to the board type;Slot number where instantiation data is combined the veneer generates operation number
According to.
Master control borad receives the plate insertion message of other veneers, and the slot number and Monoplacophora of the veneer are carried in the message
Type;Data file corresponding in software version is determined according to board type, and the Monoplacophora is obtained from corresponding data file
Instantiation data corresponding to type;Slot number generates operation data where instantiation data is combined the veneer.To realize master
Control support of the plate to other veneers.
3) when the veneer insertion for having new type, the present invention does not need updating software release, it is only necessary to, will by service packs
Instantiation data corresponding to the veneer of the new type saves in the data file, and master control borad is loaded into the form of service packs
On.
Wherein, specific implementation can be, and PC equipment between network interface card and switch device by being communicated, firstly, user
Service packs is written in PC equipment, is then again sent service packs on master control borad.
4) service packs is actively sent to all former veneers by master control borad.
5) when former veneer receives the insertion message of new type veneer, the slot number of the new type veneer is carried in the message
And board type;Data file corresponding in service packs is determined according to board type, obtaining from corresponding data file should
Instantiation data corresponding to board type;Slot number where the new type veneer is combined to generate operation number instantiation data
According to.To realize support of the former veneer to new type veneer.
6) when new type single board starting, load request is sent to master control borad, master control borad sends out software version and service packs
Give the veneer of the new type.
The veneer of the new type determines data file corresponding in service packs according to itself board type, from corresponding number
According to obtaining instantiation data corresponding to the board type in file;Slot number generates where instantiation data is combined the veneer
Operation data.
When the veneer of the new type receives the plate insertion message of former veneer, the slot number of the original veneer is carried in the message
And board type;Data file corresponding in software version is determined according to former board type, is obtained from corresponding data file
Take instantiation data corresponding to the board type;Slot number where the original type veneer is combined to generate operation instantiation data
Data.
It is of the invention to clearly illustrate, concrete scene is set forth below, is illustrated by taking the description information of OEM as an example.
Structural body of the description information of OEM in software version is as follows:
The number * of/* support OEM/
UINT uiSupportOemNumber;/*2*/
/ * OEM description information */
DRV_DEVM_OEM_INFO_TABLE_S*pstAllOemInfo;
/ * front card OEM description information */
DRV_DEVM_OEM_INFO_TABLE_S*pstFrontBoardInfo;
Wherein ,/* OEM description information */structural body in software version is as follows:
In an example, for the veneer of a certain type, assignment is carried out to the description information of OEM, forms instantiation
Data save in the data file, as follows:
sizeof(g_stOemInfoStaticTable_LSX1TGS48FB_PP)/sizeof(DRV_DEVM_OEM_
INFO_TABLE_S),
g_stOemInfoStaticTable_LSX1TGS48FB_PP,
NULL,
Above-mentioned expression supports that the number of OEM is 3, and the description information of each OEM is according to/* OEM description information */definition
It is as follows after structural body progress assignment, and front card is not present.
It should be noted that the present invention by taking OEM description information as an example, instantiates its data structure.Certainly,
It include much information in data structure based on veneer, such as veneer description information, OEM description information, pilot trench description information,
CPU description information, chip description information, port description information, Panel User mouth description information etc. also need to carry out example
Change.When the veneer for having new type is added, all instantiation datas corresponding to the veneer by the new type are stored in data text
In part, it is loaded on master control borad in the form of service packs.Here, the data of all instantiations include the example of veneer description information
Change data, the instantiation data of OEM description information, the instantiation data of pilot trench description information, the instantiation number of CPU description information
According to, the instantiation data of chip description information, the instantiation data of port description information, the reality of Panel User mouth description information
Exampleization data etc..
Based on same inventive concept, the present invention also proposes one kind, and referring to fig. 2, Fig. 2 is to answer in the specific embodiment of the invention
For the apparatus structure schematic diagram of the above method, which includes:
Acquiring unit 201, for obtaining service packs;The service packs includes new type veneer in the number defined based on veneer
According to instantiation data corresponding under structural body;
Generation unit 202 will be instantiated for determining instantiation data corresponding in service packs according to new board type
The operation data of slot number generation new type veneer where data combine the new type veneer.
Described device is located on new type veneer, the acquiring unit 201, is specifically used in single board starting, obtains and mends
Fourth packet.
Described device is located on new type veneer, and the acquiring unit 201 is also used to when single board starting, also obtains soft
Part version;The software version includes the data structure defined based on veneer, and the different former lists under the data structure
Different instances data corresponding to board type;The generation unit 202, the plate insertion for being also used to former veneer on receiving device disappear
Breath, the plate are inserted into message the slot number and board type for carrying the original veneer;It is determined in software version according to former board type
Instantiation data is combined slot number where the original type veneer to generate original on new type veneer by corresponding instantiation data
The operation data of type veneer.
Described device is located on former type veneer, and the generation unit 202 is specifically used for after obtaining service packs, connects
The plate for receiving new type veneer is inserted into message, and the slot number and board type of the new type veneer are carried in plate insertion message;Root
Instantiation data corresponding in service packs is determined according to the new board type in new type veneer plate insertion message, will instantiate number
According to the operation data for combining slot number where the new type veneer to generate new type veneer.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
Claims (10)
1. a kind of method for supporting new type veneer, which is characterized in that this method is applied in switch device, this method packet
It includes:
Veneer obtains service packs;The service packs includes that new type veneer is corresponding under the data structure defined based on veneer
Instantiation data;
Veneer determines instantiation data corresponding in service packs according to new board type, and instantiation data is combined the new type
Slot number generates the operation data of new type veneer where veneer;Wherein, the board type newly increased on switch device is new
Board type, the veneer newly increased are new type veneer.
2. the method as described in claim 1, which is characterized in that the veneer is new type veneer,
When single board starting, the veneer obtains service packs.
3. method according to claim 2, which is characterized in that the veneer is new type veneer,
When single board starting, the veneer also obtains software version;The software version includes the data knot defined based on veneer
Structure body, and the different instances data corresponding to different original board types under the data structure;
The plate of former veneer is inserted into message on veneer receiving device, and the slot number and veneer of the original veneer are carried in plate insertion message
Type;
Veneer determines instantiation data corresponding in software version according to former board type, and instantiation data is combined the original class
Slot number where type veneer generates the operation data of former type veneer on new type veneer;Wherein, on switch device originally
The board type being plugged is former board type, and the veneer that the script has been plugged is former type veneer.
4. the method as described in claim 1, which is characterized in that the veneer is former type veneer,
After the veneer obtains service packs, the plate for receiving new type veneer is inserted into message, and it is new to carry this in plate insertion message
The slot number and board type of type veneer;
The veneer determines instantiation corresponding in service packs according to the new board type that new type veneer plate is inserted into message
Data, the operation data of slot number generation new type veneer where instantiation data is combined the new type veneer;Wherein, it exchanges
For the board type being plugged originally on machine equipment for former board type, the veneer that the script has been plugged is former type list
Plate.
5. the method as described in claim 1, which is characterized in that instantiation data corresponding to different board types is with different
Data file is saved.
6. a kind of device for supporting new type veneer is applied in switch device, which includes:
Acquiring unit, for obtaining service packs;The service packs includes new type veneer in the data structure defined based on veneer
Corresponding instantiation data under body;
Generation unit, for determining instantiation data corresponding in service packs according to new board type, by instantiation data knot
Slot number where closing the new type veneer generates the operation data of new type veneer;Wherein, the list newly increased on switch device
Board type is new board type, and the veneer newly increased is new type veneer.
7. device as claimed in claim 6, which is characterized in that described device is located on new type veneer,
The acquiring unit is specifically used in single board starting, obtains service packs.
8. device as claimed in claim 7, which is characterized in that described device is located on new type veneer,
The acquiring unit is also used to when single board starting, also acquisition software version;The software version includes fixed based on veneer
The data structure of justice, and the different instances data corresponding to different original board types under the data structure;
The generation unit, is also used to the plate insertion message of former veneer on receiving device, and it is single to carry the original in plate insertion message
The slot number and board type of plate;Instantiation data corresponding in software version is determined according to former board type, will be instantiated
Data slot number in conjunction with where the original type veneer generates the operation data of former type veneer on new type veneer;Wherein, it hands over
For the board type being plugged originally in equipment of changing planes for former board type, the veneer that the script has been plugged is former type list
Plate.
9. device as claimed in claim 6, which is characterized in that described device is located on former type veneer,
The generation unit is specifically used for after obtaining service packs, and the plate for receiving new type veneer is inserted into message, plate insertion
The slot number and board type of the new type veneer are carried in message;The new Monoplacophora in message is inserted into according to new type veneer plate
Type determines instantiation data corresponding in service packs, combines slot number where the new type veneer to generate instantiation data new
The operation data of type veneer;Wherein, the board type being plugged originally on switch device is former board type, the original
This veneer being plugged is former type veneer.
10. device as claimed in claim 6, which is characterized in that instantiation data corresponding to different board types is with difference
Data file saved.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510111184.3A CN104683159B (en) | 2015-03-13 | 2015-03-13 | Support the method and device of new type veneer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510111184.3A CN104683159B (en) | 2015-03-13 | 2015-03-13 | Support the method and device of new type veneer |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104683159A CN104683159A (en) | 2015-06-03 |
CN104683159B true CN104683159B (en) | 2019-04-12 |
Family
ID=53317786
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510111184.3A Active CN104683159B (en) | 2015-03-13 | 2015-03-13 | Support the method and device of new type veneer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104683159B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008025202A1 (en) * | 2006-08-25 | 2008-03-06 | Huawei Technologies Co., Ltd. | A method, system and device for obtaining physical information of a single board |
CN101616026A (en) * | 2009-07-14 | 2009-12-30 | 中兴通讯股份有限公司 | A kind of method and system of obtaining property of single plate |
CN101631046A (en) * | 2009-08-25 | 2010-01-20 | 中兴通讯股份有限公司 | Method and device of automatic upgrade of one board |
CN103514016A (en) * | 2013-09-22 | 2014-01-15 | 上海华为技术有限公司 | Method and device for upgrading system version and base station controller |
-
2015
- 2015-03-13 CN CN201510111184.3A patent/CN104683159B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008025202A1 (en) * | 2006-08-25 | 2008-03-06 | Huawei Technologies Co., Ltd. | A method, system and device for obtaining physical information of a single board |
CN101616026A (en) * | 2009-07-14 | 2009-12-30 | 中兴通讯股份有限公司 | A kind of method and system of obtaining property of single plate |
CN101631046A (en) * | 2009-08-25 | 2010-01-20 | 中兴通讯股份有限公司 | Method and device of automatic upgrade of one board |
CN103514016A (en) * | 2013-09-22 | 2014-01-15 | 上海华为技术有限公司 | Method and device for upgrading system version and base station controller |
Also Published As
Publication number | Publication date |
---|---|
CN104683159A (en) | 2015-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106569869B (en) | Plug-in unit packaging method and device | |
CN109741755B (en) | Voice awakening word threshold management device and method for managing voice awakening word threshold | |
US11043219B1 (en) | Removal of identifying traits of a user in a virtual environment | |
CN106462407A (en) | Code service for language-independent dispatch | |
CN104679532B (en) | kernel module loading method and device | |
US9218212B2 (en) | Pairing physical devices to virtual devices to create an immersive environment | |
CN103577207A (en) | Loading method and loading device for interface components in custom interface system | |
CN106075911B (en) | A kind of generation method and device at the micro- end of web game | |
CN110502732A (en) | A kind of rule generating method of discount coupon, device and server | |
CN109660372A (en) | A kind of method and device of the business configuration of SDN | |
CN106204150A (en) | A kind of method and device throwing in advertisement to mobile terminal | |
CN106708483A (en) | Generating method and generating device of control interface of internet-of-things equipment | |
CN109547259A (en) | Application configuration method, apparatus, storage medium and electronic equipment | |
CN107852422A (en) | Connected from the server interface with different API to obtain ad data | |
CN106203069B (en) | A kind of hold-up interception method of dynamic link library file, device and terminal device | |
CN109684033B (en) | Cloud platform bare metal management method, storage medium, electronic device and system | |
US20170188214A1 (en) | Method and electronic device for sharing multimedia information | |
CN109213565B (en) | Management method of heterogeneous virtual computing resources, related equipment and storage medium | |
CN104683159B (en) | Support the method and device of new type veneer | |
CN106796557B (en) | Vendor-specific peripheral device class identifier | |
CN107016281A (en) | Permission setting method and device of application program and electronic equipment | |
CN108459875B (en) | Method, device and terminal for generating game flow | |
CN105916132A (en) | Targeted service binding method of mobile terminal and targeted service binding device of mobile terminal | |
CN109543122A (en) | Content synchronization method, device, storage medium and electronic device | |
CN109960553A (en) | A kind of more window context rendering methods and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |