opiproject / opi-api

Open Programmable Infrastructure API and Behavioral Model
Apache License 2.0
31 stars 39 forks source link

refactor(evpn-gw): updates to support buf lint and generation #411

Closed sandersms closed 7 months ago

sandersms commented 7 months ago

Transition evpn-gw to the buf lint and buf generate operation to allow for automation of the protobuf file generation.

Support for cpp and java are being removed at this time. Generation supports go and python. Support for other languages can be added as needed by the buf.gen.yaml file.

Be aware that the .proto files are moved up from the v1alpha1 directory to support the buf operation and to keep the version of the generated files in a separate (v1, v1alpha1, etc.) directory structure. This will allow for the future ability to autogenerate the files and place them in a separate repo location.

sandersms commented 7 months ago

@sandersms I guess you are doing the transition to the buf lint but you still need to generate the go/python files by yourself. Right ? When we move the apis to their own repo then the generation of the go/python files will happen automatically. So this is a prepatory step. Right ?

@mardim91 Yes, this is the preparatory step to get to the generation of the apis and I will be adding the buf gen to the full make to have the go/python files generated as part of this PR as noted in one of the earlier comments. We will be moving the apis that are generated to their own repo once we get all of the capabilities in place.