p4-discuss@lists.p4.org

discussion of p4 language ideas, tools, questions, etc. -- not related to direct code development

View all threads

P4 Bmv2 Json schema

DD
Debobroto Das
Thu, Apr 15, 2021 6:06 AM

Hello Everyone,
Where can I find the json schema definition for the input to bmv2 simulator
for the simple_switch target?
The following link discusses the Json format. but it doesn't contain the
schema definition.
https://github.com/p4lang/behavioral-model/blob/main/docs/JSON_format.md

Basically, I need to parse the Json data for a given P$ program. That's why
looking for the schema to automate the parser generator.

Hello Everyone, Where can I find the json schema definition for the input to bmv2 simulator for the simple_switch target? The following link discusses the Json format. but it doesn't contain the schema definition. https://github.com/p4lang/behavioral-model/blob/main/docs/JSON_format.md Basically, I need to parse the Json data for a given P$ program. That's why looking for the schema to automate the parser generator.
MB
Mihai Budiu
Thu, Apr 15, 2021 6:27 AM

There isn't another definition. I don't know if anyone having written an official Json schema.


From: Debobroto Das debobrotodasrobin@gmail.com
Sent: Wednesday, April 14, 2021 11:06:05 PM
To: p4-discuss@lists.p4.org p4-discuss@lists.p4.org
Subject: [P4-discuss] P4 Bmv2 Json schema

Hello Everyone,
Where can I find the json schema definition for the input to bmv2 simulator for the simple_switch target?
The following link discusses the Json format. but it doesn't contain the schema definition.
https://github.com/p4lang/behavioral-model/blob/main/docs/JSON_format.mdhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fp4lang%2Fbehavioral-model%2Fblob%2Fmain%2Fdocs%2FJSON_format.md&data=04%7C01%7Cmbudiu%40vmware.com%7C51392d1aecb645aa578e08d8ffd49b55%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637540635904812106%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=WqC68jxYgueEyJ6TPOZToBO4yQxUiRg28H51IAnzgAE%3D&reserved=0

Basically, I need to parse the Json data for a given P$ program. That's why looking for the schema to automate the parser generator.

There isn't another definition. I don't know if anyone having written an official Json schema. ________________________________ From: Debobroto Das <debobrotodasrobin@gmail.com> Sent: Wednesday, April 14, 2021 11:06:05 PM To: p4-discuss@lists.p4.org <p4-discuss@lists.p4.org> Subject: [P4-discuss] P4 Bmv2 Json schema Hello Everyone, Where can I find the json schema definition for the input to bmv2 simulator for the simple_switch target? The following link discusses the Json format. but it doesn't contain the schema definition. https://github.com/p4lang/behavioral-model/blob/main/docs/JSON_format.md<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fp4lang%2Fbehavioral-model%2Fblob%2Fmain%2Fdocs%2FJSON_format.md&data=04%7C01%7Cmbudiu%40vmware.com%7C51392d1aecb645aa578e08d8ffd49b55%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637540635904812106%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=WqC68jxYgueEyJ6TPOZToBO4yQxUiRg28H51IAnzgAE%3D&reserved=0> Basically, I need to parse the Json data for a given P$ program. That's why looking for the schema to automate the parser generator.