Nothing Special   »   [go: up one dir, main page]

CN113254059A - Plate type integration method and device for marvell exchange software CPSS - Google Patents

Plate type integration method and device for marvell exchange software CPSS Download PDF

Info

Publication number
CN113254059A
CN113254059A CN202110566844.2A CN202110566844A CN113254059A CN 113254059 A CN113254059 A CN 113254059A CN 202110566844 A CN202110566844 A CN 202110566844A CN 113254059 A CN113254059 A CN 113254059A
Authority
CN
China
Prior art keywords
switch
board type
instruction
current switch
logic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110566844.2A
Other languages
Chinese (zh)
Inventor
郭兆荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Embedway Technologies Shanghai Corp
Original Assignee
Embedway Technologies Shanghai Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Embedway Technologies Shanghai Corp filed Critical Embedway Technologies Shanghai Corp
Priority to CN202110566844.2A priority Critical patent/CN113254059A/en
Publication of CN113254059A publication Critical patent/CN113254059A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a plate type integration method and a device of marvell switching software CPSS, which pre-compile a switch plate type distinguishing logic, wherein the switch plate type distinguishing logic comprises the corresponding relation between at least one switch model and plate type configuration, and the method comprises the following steps: initializing a CPSS, and adding a logic for detecting the type of a switch into the CPSS; when a current switch starting instruction is detected, determining the current switch model of the current switch according to the switch model detection logic; based on the board type distinguishing logic, obtaining a target board type configuration matched with the current switch model; the firmware of the current switch is configured based on the target board type configuration. In the process, the switch board type distinguishing logic is pre-programmed and comprises the corresponding relation between at least one switch model and the board type configuration, and the firmware is not required to be distributed to each switch, so that the number of the firmware is reduced, the maintenance cost of the firmware is reduced, and the use error probability is reduced.

Description

Plate type integration method and device for marvell exchange software CPSS
Technical Field
The invention relates to the technical field of computer software, in particular to a method and a device for integrating plate types of a marvell exchange software CPSS.
Background
When Marvell exchange chips of the same model are designed into exchangers of different models, information such as port parameters, serdes parameters, lighting configuration and the like added in software are different, so that firmware required by the exchangers of different models is different, and therefore a set of corresponding software needs to be maintained by one exchanger.
As the number of switch types increases, the corresponding software and firmware versions also show a growing trend, and more manpower cost needs to be invested to maintain various software and firmware versions, so that the probability of firmware use errors is increased.
Disclosure of Invention
In view of the above problems, the present invention provides a method and an apparatus for integrating the board types of Marvell switching software CPSS, which are used to solve the problem that in the prior art, when Marvell switching chips of the same type are designed into switches of different types, information such as port parameters, server parameters, lighting configurations, etc. added in the software are different, which results in different firmware required by the switches of different types, and therefore a switch needs to maintain a set of corresponding software. With the increasing variety of switches and the increasing trend of corresponding software and firmware versions, more manpower cost needs to be invested to maintain various software and firmware versions, and the problem of the probability of firmware use errors is also increased, and the specific scheme is as follows:
a board type integration method of marvell switching software CPSS is characterized in that a switch board type distinguishing logic is pre-programmed, the switch board type distinguishing logic comprises a corresponding relation between at least one switch model and board type configuration, and the method comprises the following steps:
initializing a CPSS, and adding a logic for detecting the type of a switch into the CPSS;
when a current switch starting instruction is detected, determining the current switch model of the current switch according to the detected switch model logic;
based on the board type distinguishing logic, obtaining a target board type configuration matched with the current switch model;
configuring the firmware of the current switch based on the target board type configuration.
Optionally, the method for determining the current model of the current switch according to the logic of detecting the model of the switch includes:
acquiring a configuration instruction at a preset position;
and analyzing the configuration instruction to obtain the current switch model contained in the configuration instruction.
Optionally, the method for obtaining the current switch model included in the configuration instruction includes:
calling an appDemoDbEntryGet function in the CPSS;
and acquiring the current switch model in the configuration instruction based on the appDemoDbEntryGet function.
Optionally, the method for obtaining a target board type configuration matched with the current switch model based on the current switch model includes:
traversing the switch board type distinguishing logic, and searching a target switch model which is the same as the current switch model;
and determining target board type configuration corresponding to the target switch model based on the corresponding relation.
The above method, optionally, further includes:
when an update instruction for the switch board type distinguishing logic is detected, the board type distinguishing logic is updated according to the update instruction, wherein the update instruction is at least one of an addition instruction, a modification instruction or a deletion instruction.
A board type integration device of marvell switching software CPSS pre-compiles a switch board type distinguishing logic, wherein the switch board type distinguishing logic comprises at least one corresponding relation between a switch model and board type configuration, and the device comprises the following steps:
the initialization module is used for initializing the CPSS and adding a logic for detecting the type of the switch into the CPSS;
the determining module is used for determining the current switch model of the current switch according to the detected switch model logic when a current switch starting instruction is detected;
the acquisition module is used for acquiring target board type configuration matched with the current switch model based on the board type distinguishing logic;
and the configuration module is used for configuring the firmware of the current switch based on the target board type configuration.
The above apparatus, optionally, the determining module includes:
the first acquisition unit is used for acquiring a configuration instruction at a preset position;
and the second acquisition unit is used for analyzing the configuration instruction and acquiring the current switch model contained in the configuration instruction.
In the foregoing apparatus, optionally, the second obtaining unit includes:
a calling subunit, configured to call an appDemoDbEntryGet function in the CPSS;
and the obtaining subunit is configured to obtain the current switch model in the configuration instruction based on the appDemoDbEntryGet function.
The above apparatus, optionally, the obtaining module includes:
the searching unit is used for traversing the switch board type distinguishing logic and searching a target switch model which is the same as the current switch model;
and the determining unit is used for determining the target board type configuration corresponding to the target switch model based on the corresponding relation.
The above apparatus, optionally, further comprises:
and the updating module is used for updating the board type distinguishing logic according to the updating instruction when the updating instruction for the board type distinguishing logic of the switch is detected, wherein the updating instruction is at least one of an adding instruction, a modifying instruction or a deleting instruction.
Compared with the prior art, the invention has the following advantages:
the invention discloses a plate type integration method and a device of marvell switching software CPSS, which pre-compile a switch plate type distinguishing logic, wherein the switch plate type distinguishing logic comprises the corresponding relation between at least one switch model and plate type configuration, and the method comprises the following steps: initializing a CPSS, and adding a logic for detecting the type of a switch into the CPSS; when a current switch starting instruction is detected, determining the current switch model of the current switch according to the switch model detection logic; based on the board type distinguishing logic, obtaining a target board type configuration matched with the current switch model; the firmware of the current switch is configured based on the target board type configuration. In the process, the switch board type distinguishing logic is pre-programmed and comprises the corresponding relation between at least one switch model and the board type configuration, firmware is not required to be distributed to each switch, the number of the firmware is reduced, and the maintenance cost and the use error probability of the firmware are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for integrating the patterns of a marvell switching software CPSS according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a layout differentiation logic according to an embodiment of the present invention;
fig. 3 is a block diagram of a board type integration apparatus of a marvell switching software CPSS provided in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention discloses a method and a device for integrating the board types of Marvell exchange software CPSS, which are applied to the board type integration process of the Marvell exchange software CPSS. As the types of switches are also more and more, the corresponding software and firmware versions also show a growing trend, more manpower cost needs to be invested to maintain various software and firmware versions, and the probability of using the firmware to make errors is also increased, in order to solve the above problems, the invention provides a board type integration method of marvell switching software CPSS, the integration method pre-compiles a switch board type distinguishing logic, the switch board type distinguishing logic comprises at least one corresponding relation between a switch model and a board type configuration, and the execution flow of the integration method is shown in fig. 1, and comprises the following steps:
s101, initializing a CPSS, and adding a switch model detection logic into the CPSS;
in the embodiment of the present invention, CPSS (core Prestera Software suite) is initialized first, and the CPSS initialization process mainly includes two stages of initialization, where the first stage of initialization includes:
(1) initializing CPSS database and driver structures
(2) CPSS initializes device states, internal databases and board-specific parameters
(3) Setting port attribute, mapping port system port to MAC
The second stage initialization comprises:
(1) allocating resources (e.g., Tx/Rx buffers and descriptors)
(2) Configuring hardware to establish a data path (e.g., DMA and DMA memory) between a PP device and a CPU
(3) Initialization AUQ/FUQ mechanism
(4) Setting router mode based on TCAM
(5) Initializing related CPSS components
(6) Enabling traffic on ports and devices
Further, a switch model detection logic is added in the CPSS, wherein the switch model detection logic is used for detecting switch models of different switches. Wherein the switch model detection logic is as follows:
Figure BDA0003081054360000061
Figure BDA0003081054360000071
note: appDemoDbEntryGet function for obtaining exchanger model
lu2382_ board _ init ()/ep8500_ board _ init () are initialization functions for two kinds of switches
S102, when a current switch starting instruction is detected, determining the current switch model of the current switch according to the detected switch model logic;
in the embodiment of the invention, whether the switch is started is judged by detecting the preset instruction, the preset signal or other preferable modes, the specific detection mode for starting the switch is not limited, and when the current switch is detected to be started, the current switch model of the current switch is determined based on the switch model detection logic.
The specific determination process is as follows: when the current switch is started, the model of the current switch is written in the system in a command mode, for example, before CPSS initialization, switch model information is configured into the CPSS by using a configuration command "shell-execute apppdemodbentry" binary ", 1", where the configuration command may be stored in a preset position in the CPSS, where the preset position may be set according to experience or specific conditions, and embodiments of the present invention are not particularly limited. When detecting that the current switch is started, obtaining the configuration instruction at the preset position, analyzing the configuration instruction, and obtaining a current switch model included in the configuration instruction, as shown in the above example, where the current switch model is a bouardid 1, where the obtained current switch model may be obtained by using a specified function or other quota, which is not specifically limited in the embodiment of the present invention, for example, the specified function may be an appmodedbentryget function, and a process of obtaining the switch model is as follows: calling an appDemoDbEntryGet function in the CPSS; and acquiring the current switch model in the configuration instruction based on the appDemoDbEntryGet function.
S103, acquiring target board type configuration matched with the current switch model based on the board type distinguishing logic;
in the embodiment of the present invention, the board type distinguishing logic refers to matching a corresponding board type configuration for each switch model, where the board type configuration includes: the method comprises the steps that information such as port parameters, serdes parameters, lighting configuration and the like are added into software, the type distinguishing logic is of a branch structure, an execution schematic diagram of the type distinguishing logic is shown in fig. 2, the types of switches in a database are obtained firstly when the types of the switches are basic, 1,2.
And S104, configuring the firmware of the current switch based on the target board type configuration.
In the embodiment of the invention, the target board type configuration comprises related configurations such as port configuration, serdes configuration and port lamp configuration of the switch, the target board type configuration matched with the current switch model is loaded, and the firmware of the current switch is configured.
The specific configuration process is as follows:
GT_STATUS lu2382_board_init(void)
{
lu2382_vlan_dele();
lu2382_ mac _ to _ servers _ init (); initialization of correspondence relation between// mac and serdes
lu2382_ led _ init (); v/switch Port indicator light initialization
lu2382_ port _ params _ init (); // switch port initialization
lu2382_task_init();
return GT_OK;
}
The invention discloses a plate type integration method of marvell switching software CPSS, which pre-compiles a switch plate type distinguishing logic, wherein the switch plate type distinguishing logic comprises the corresponding relation between at least one switch type and plate type configuration, and the method comprises the following steps: initializing a CPSS, and adding a logic for detecting the type of a switch into the CPSS; when a current switch starting instruction is detected, determining the current switch model of the current switch according to the switch model detection logic; based on the board type distinguishing logic, obtaining a target board type configuration matched with the current switch model; the current switch is configured based on the target board type configuration. In the process, the switch board type distinguishing logic is pre-programmed and comprises the corresponding relation between at least one switch model and the board type configuration, firmware is not required to be distributed to each switch, the number of the firmware is reduced, and the maintenance cost and the use error probability of the firmware are reduced.
In the embodiment of the present invention, if the current switch model obtained by the configuration instruction does not exist in the board type distinguishing logic, a default configuration is initialized, where the initialization default configuration may be configured based on experience or specific conditions, and in the embodiment of the present invention, the default configuration is not limited, and preferably, if the current switch model obtained by the configuration instruction does not exist in the board type distinguishing logic, a prompt may be further performed to prompt whether the current switch model is wrong, or the board type distinguishing logic is updated according to a specific update instruction when the board type distinguishing logic needs to be updated due to the specific conditions, where the update instruction is at least one of an addition instruction, a modification instruction, or a deletion instruction.
Based on the above plate type integration method of marvell exchange software CPSS, in the embodiment of the present invention, a plate type integration apparatus of marvell exchange software CPSS is further provided, where the integration apparatus pre-compiles a switch plate type distinction logic, the switch plate type distinction logic includes a correspondence between at least one switch model and a plate type configuration, and a structural block diagram of the integration apparatus is shown in fig. 3, and includes:
an initialization module 201, a determination module 202, an acquisition module 203, and a configuration module 204.
Wherein,
the initialization module 201 is configured to initialize a CPSS, and add a detection switch model logic to the CPSS;
the determining module 202 is configured to determine, according to the detected switch model logic, a current switch model of the current switch when a current switch start instruction is detected;
the obtaining module 203 is configured to obtain a target board type configuration matched with the current switch model based on the board type distinguishing logic;
the configuration module 204 is configured to configure the firmware of the current switch based on the target board type configuration.
The invention discloses a plate type integration device of marvell switching software CPSS, which pre-compiles a switch plate type distinguishing logic, wherein the switch plate type distinguishing logic comprises at least one corresponding relation between a switch type and a plate type configuration, and the method comprises the following steps: initializing a CPSS, and adding a logic for detecting the type of a switch into the CPSS; when a current switch starting instruction is detected, determining the current switch model of the current switch according to the switch model detection logic; based on the board type distinguishing logic, obtaining a target board type configuration matched with the current switch model; the firmware of the current switch is configured based on the target board type configuration. In the process, the switch board type distinguishing logic is pre-programmed and comprises the corresponding relation between at least one switch model and the board type configuration, and the firmware is not required to be distributed to each switch, so that the number of the firmware is reduced, the maintenance cost of the firmware is reduced, and the use error probability is reduced.
In this embodiment of the present invention, the determining module 202 includes:
a first acquisition unit 205 and a second acquisition unit 206.
Wherein,
the first obtaining unit 205 is configured to obtain a configuration instruction at a preset position;
the second obtaining unit 206 is configured to analyze the configuration instruction, and obtain the current switch model included in the configuration instruction.
In the embodiment of the present invention, the second obtaining unit 206 includes:
a call subunit 207 and an acquisition subunit 208.
Wherein,
the calling subunit 207 is configured to call an appDemoDbEntryGet function in the CPSS;
the obtaining subunit 208 is configured to obtain, based on the appmodedbentryget function, the current switch model in the configuration instruction.
In this embodiment of the present invention, the obtaining module 203 includes:
a look-up unit 209 and a determination unit 210.
Wherein,
the searching unit 209 is configured to traverse the switch board type distinguishing logic, and search for a target switch model that is the same as the current switch model;
the determining unit 210 is configured to determine, based on the correspondence, a target board type configuration corresponding to the target switch model.
In an embodiment of the present invention, the integration apparatus further includes: and an update module 211.
Wherein,
the updating module 211 is configured to update the board type distinguishing logic according to an update instruction when the update instruction for the board type distinguishing logic of the switch is detected, where the update instruction is at least one of an addition instruction, a modification instruction, or a deletion instruction.
The integration device comprises a processor and a memory, wherein the initialization module, the determination module, the acquisition module, the configuration module and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and the maintenance cost and the use error probability of the firmware are reduced by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The embodiment of the invention provides a storage medium, wherein a program is stored on the storage medium, and the program realizes the board type integration method of the marvell exchange software CPSS when being executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the execution of the board type integration method of marvell exchange software CPSS during the running of the program.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps:
initializing a CPSS, and adding a logic for detecting the type of a switch into the CPSS;
when a current switch starting instruction is detected, determining the current switch model of the current switch according to the detected switch model logic;
based on the board type distinguishing logic, obtaining a target board type configuration matched with the current switch model;
configuring the firmware of the current switch based on the target board type configuration.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
initializing a CPSS, and adding a logic for detecting the type of a switch into the CPSS;
when a current switch starting instruction is detected, determining the current switch model of the current switch according to the detected switch model logic;
based on the board type distinguishing logic, obtaining a target board type configuration matched with the current switch model;
configuring the firmware of the current switch based on the target board type configuration.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A board type integration method of marvell switching software CPSS is characterized in that a switch board type distinguishing logic is pre-programmed, the switch board type distinguishing logic comprises a corresponding relation between at least one switch model and board type configuration, and the method comprises the following steps:
initializing a CPSS, and adding a logic for detecting the type of a switch into the CPSS;
when a current switch starting instruction is detected, determining the current switch model of the current switch according to the detected switch model logic;
based on the board type distinguishing logic, obtaining a target board type configuration matched with the current switch model;
configuring the firmware of the current switch based on the target board type configuration.
2. The method of claim 1, wherein determining the current model of the current switch from the detect switch model logic comprises:
acquiring a configuration instruction at a preset position;
and analyzing the configuration instruction to obtain the current switch model contained in the configuration instruction.
3. The method of claim 2, wherein obtaining the current switch model included in the configuration instruction comprises:
calling an appDemoDbEntryGet function in the CPSS;
and acquiring the current switch model in the configuration instruction based on the appDemoDbEntryGet function.
4. The method of claim 1, wherein obtaining a target board type configuration matching the current switch model based on the current switch model comprises:
traversing the switch board type distinguishing logic, and searching a target switch model which is the same as the current switch model;
and determining target board type configuration corresponding to the target switch model based on the corresponding relation.
5. The method of claim 1, further comprising:
when an update instruction for the switch board type distinguishing logic is detected, the board type distinguishing logic is updated according to the update instruction, wherein the update instruction is at least one of an addition instruction, a modification instruction or a deletion instruction.
6. A board type integration device of marvell switching software CPSS is characterized in that a switch board type distinguishing logic is pre-programmed, and the corresponding relation of the switch board type distinguishing logic including at least one switch model and board type configuration comprises the following steps:
the initialization module is used for initializing the CPSS and adding a logic for detecting the type of the switch into the CPSS;
the determining module is used for determining the current switch model of the current switch according to the detected switch model logic when a current switch starting instruction is detected;
the acquisition module is used for acquiring target board type configuration matched with the current switch model based on the board type distinguishing logic;
and the configuration module is used for configuring the firmware of the current switch based on the target board type configuration.
7. The apparatus of claim 6, wherein the determining module comprises:
the first acquisition unit is used for acquiring a configuration instruction at a preset position;
and the second acquisition unit is used for analyzing the configuration instruction and acquiring the current switch model contained in the configuration instruction.
8. The apparatus of claim 7, wherein the second obtaining unit comprises:
a calling subunit, configured to call an appDemoDbEntryGet function in the CPSS;
and the obtaining subunit is configured to obtain the current switch model in the configuration instruction based on the appDemoDbEntryGet function.
9. The apparatus of claim 6, wherein the obtaining module comprises:
the searching unit is used for traversing the switch board type distinguishing logic and searching a target switch model which is the same as the current switch model;
and the determining unit is used for determining the target board type configuration corresponding to the target switch model based on the corresponding relation.
10. The apparatus of claim 6, further comprising:
and the updating module is used for updating the board type distinguishing logic according to the updating instruction when the updating instruction for the board type distinguishing logic of the switch is detected, wherein the updating instruction is at least one of an adding instruction, a modifying instruction or a deleting instruction.
CN202110566844.2A 2021-05-24 2021-05-24 Plate type integration method and device for marvell exchange software CPSS Pending CN113254059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110566844.2A CN113254059A (en) 2021-05-24 2021-05-24 Plate type integration method and device for marvell exchange software CPSS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110566844.2A CN113254059A (en) 2021-05-24 2021-05-24 Plate type integration method and device for marvell exchange software CPSS

Publications (1)

Publication Number Publication Date
CN113254059A true CN113254059A (en) 2021-08-13

Family

ID=77184081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110566844.2A Pending CN113254059A (en) 2021-05-24 2021-05-24 Plate type integration method and device for marvell exchange software CPSS

Country Status (1)

Country Link
CN (1) CN113254059A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090287913A1 (en) * 2008-05-15 2009-11-19 Honeywell International Inc. Apparatus and method for configuring switches, routers, and other configurable devices
CN105071945A (en) * 2015-06-26 2015-11-18 国网山东省电力公司济南供电公司 Network terminal address bulk binding method based on interchanger technology
US20170195170A1 (en) * 2015-12-31 2017-07-06 Unisys Corporation Systems and methods for dynamically configuring a network switch for monitoring
CN109683967A (en) * 2018-12-13 2019-04-26 深圳创维数字技术有限公司 Firmware supports method, apparatus, mobile terminal and readable storage medium storing program for executing
CN109921928A (en) * 2019-02-27 2019-06-21 广东信通通信有限公司 Switch network monitoring method, device, computer equipment and storage medium
CN111245645A (en) * 2019-12-31 2020-06-05 中国建设银行股份有限公司 Zone automatic configuration method, system, equipment and medium of SAN switch

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090287913A1 (en) * 2008-05-15 2009-11-19 Honeywell International Inc. Apparatus and method for configuring switches, routers, and other configurable devices
CN105071945A (en) * 2015-06-26 2015-11-18 国网山东省电力公司济南供电公司 Network terminal address bulk binding method based on interchanger technology
US20170195170A1 (en) * 2015-12-31 2017-07-06 Unisys Corporation Systems and methods for dynamically configuring a network switch for monitoring
CN109683967A (en) * 2018-12-13 2019-04-26 深圳创维数字技术有限公司 Firmware supports method, apparatus, mobile terminal and readable storage medium storing program for executing
CN109921928A (en) * 2019-02-27 2019-06-21 广东信通通信有限公司 Switch network monitoring method, device, computer equipment and storage medium
CN111245645A (en) * 2019-12-31 2020-06-05 中国建设银行股份有限公司 Zone automatic configuration method, system, equipment and medium of SAN switch

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
詹金珍: "计算机网络工程实例教程", vol. 1, 30 June 2015, 西北工业大学出版社, pages: 99 - 103 *

Similar Documents

Publication Publication Date Title
US11567662B2 (en) Storage system interface
CN109669709B (en) Data migration method and data migration system for block chain upgrading
CN108959510B (en) Partition level connection method and device for distributed database
CN112346818B (en) Container application deployment method and device, electronic equipment and storage medium
US20180239614A1 (en) Method for identifying hardware device in operating system and computer apparatus thereof
CN110515795A (en) A kind of monitoring method of big data component, device, electronic equipment
CN110895544A (en) Interface data processing method, device, system and storage medium
WO2019148657A1 (en) Method for testing associated environments, electronic device and computer readable storage medium
WO2021226822A1 (en) Log write method and apparatus, electronic device, and storage medium
CN111427943A (en) Task management method and device in ET L system
CN110647463A (en) Method and device for restoring test breakpoint and electronic equipment
CN115033551A (en) Database migration method and device, electronic equipment and storage medium
CN111949297B (en) Block chain intelligent contract upgrading method and device and electronic equipment
CN113254059A (en) Plate type integration method and device for marvell exchange software CPSS
CN110837446A (en) Equipment management method and device applied to embedded system, medium and embedded equipment
CN110928941A (en) Data fragment extraction method and device
CN115904785A (en) Abnormity positioning method, device, equipment and readable storage medium
CN110705956A (en) Project coordination method and device based on micro-service architecture and storage medium
CN107423096A (en) A kind of method and device for realizing software installation
CN114333102A (en) Parameter configuration method and configuration device of unmanned equipment
CN112749189A (en) Data query method and device
CN112559565A (en) Abnormity detection method, system and device
CN112130900A (en) User information management method, system, equipment and medium for BMC
CN113568630A (en) Method, system and equipment for updating algorithm
US11934840B2 (en) Classification of hardware components

Legal Events

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