# US 2021/0288920 A1 · Runtime schema for services in a switch

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0288920 A1
- Document ID: US20210288920A1
- Status: Published application
- Kind: A1
- Application number: 16/820,398
- Filed: 2020-03-16
- Published: 2021-09-16
- Earliest claimed: 2020-03-16
- Assignees: Hewlett Packard Enterprise Development LP
- Applicants: Hewlett Packard Enterprise Development LP
- Inventors: Michael Zayats; Aslam M. Khan; Noorinbano Shaikh; Shriharsha Shripadaraj
- Web page: https://patentgrep.com/patent/US20210288920A1

## CPC

- H04L 49/20: Support for services
- H04L 9/0819: {Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) (network architectures or network communication protocols for key distribution in a packet data network H04L63/062)}
- H04L 12/66: Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
- H04L 49/118: Address processing within a device, e.g. using internal ID or tags for routing within a switch
- H04L 49/35: Switches specially adapted for specific applications
- H04L 49/45: Arrangements for providing or supporting expansion
- H04L 49/65: Re-configuration of fast packet switches
- H04L 49/70: {Virtual switches}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

One embodiment of the present invention provides a switch. During operation, the switch parses a first schema of the switch. The first schema indicates initialization information for one or more services of the switch expressed based on one or more tags. The switch then identifies a tag of the one or more tags in the first schema based on the parsing and identifies information corresponding to the tag from a profile of the switch. Subsequently, the switch generates a second schema from the first schema based on the identified information.

## Claims

### Claim 1

A switch, comprising:
a processor; and
a storage device coupled to the processor and storing instructions, which when executed by the processor cause the processor to perform a method, the method comprising:
parsing a first schema of the switch, wherein the first schema indicates initialization information for one or more services of the switch expressed based on one or more tags;
identifying a tag of the one or more tags in the first schema based on the parsing;
identifying information corresponding to the tag from a profile of the switch; and
generating a second schema from the first schema based on the identified information.

### Claim 2 (depends on 1)

The switch of claim 1, wherein the tag includes a key associated with the information, and wherein the key indicates a type of the key and a name of the key.

### Claim 3 (depends on 2)

The switch of claim 2, wherein the method further comprises:
searching for the key in the profile; and
obtaining the information in association with the key.

### Claim 4 (depends on 1)

The switch of claim 1, wherein the profile indicates capacities and capabilities of the switch.

### Claim 5 (depends on 4)

The switch of claim 4, wherein the identified information in the profile indicates a capability of the switch; and
wherein generating the second schema includes one of:
including a section of the first schema in the second schema in response to the capability being supported by the switch; and
refraining from including the section in the second schema in response to the capability not being supported by the switch.

### Claim 6 (depends on 4)

The switch of claim 4, wherein the identified information in the profile indicates a capacity of the switch; and
wherein generating the second schema includes:
identifying a value indicating the capacity in the identified information; and
replacing the tag with the identified value.

### Claim 7 (depends on 1)

The switch of claim 1, wherein the profile is specific to a type of the switch and the schema is generic for multiple types of switches.

### Claim 8 (depends on 1)

The switch of claim 1, wherein the method further comprises initializing the one or more services based on the second schema.

### Claim 9 (depends on 1)

The switch of claim 1, wherein the one or more services include:
a database service;
a command-line interface (CLI) service;
a representational state transfer (REST) service; and
a web service.

### Claim 10 (depends on 1)

The switch of claim 1, wherein the first schema and the profile are packaged with the switch, and wherein the second schema is generated at a boot time of the switch.

### Claim 11

A method, comprising:
parsing a first schema of a switch, wherein the first schema indicates initialization information for one or more services of the switch expressed based on one or more tags;
identifying a tag of the one or more tags in the first schema based on the parsing;
identifying information corresponding to the tag from a profile of the switch; and
generating a second schema from the first schema based on the identified information.

### Claim 12 (depends on 11)

The method of claim 11, wherein the tag includes a key associated with the information, and wherein the key indicates a type of the key and a name of the key.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
searching for the key in the profile; and
obtaining the information in association with the key.

### Claim 14 (depends on 11)

The method of claim 11, wherein the profile indicates capacities and capabilities of the switch.

### Claim 15 (depends on 14)

The method of claim 14, wherein the identified information in the profile indicates a capability of the switch; and
wherein generating the second schema includes one of:
including a section of the first schema in the second schema in response to the capability being supported by the switch; and
refraining from including the section in the second schema in response to the capability not being supported by the switch.

### Claim 16 (depends on 14)

The method of claim 14, wherein the identified information in the profile indicates a capacity of the switch; and
wherein generating the second schema includes:
identifying a value indicating the capacity in the identified information; and
replacing the tag with the identified value.

### Claim 17 (depends on 11)

The method of claim 11, wherein the profile is specific to a type of the switch and the schema is generic for multiple types of switches.

### Claim 18 (depends on 11)

The method of claim 11, further comprising initializing the one or more services based on the second schema.

### Claim 19 (depends on 11)

The method of claim 11, wherein the one or more services include:
a database service;
a command-line interface (CLI) service;
a representational state transfer (REST) service; and
a web service.

### Claim 20 (depends on 11)

The method of claim 11, wherein the first schema and the profile are packaged with the switch, and wherein the second schema is generated at a boot time of the switch.
