This repository is a collection of protocol buffer used in basebox.
The folder common contains the proto files generated from the public yang model:
- The empty.proto defines a empty message.
- The ietf-network.proto is generated from the RFC 8345 and define the data model for the topology.
- The openconfig-interfaces.proto is generated from the openconfig-interfaces extension for the vlan and layer 3 information. This model is used for the statistics and the vlan configuration.
- The ietf-vxlan.proto is generated from the draft-chen-nvo3-vxlan-yang-06 and it used to configure vxlan.
In the folder api are defined the APIs for the vlan and vxlan configuration.
In the folder statistics are defined the APIs for the statistics.
In the folder topology are defined the APIs for the topology.
To generate the proto file from the YANG data model, goyang was used. Example:
goyang --format proto --proto_flat --proto_dir /path/to/protos/ --path /path/to/yang/dependencies model.yang
In folder the common each file is under the same license as the model from which it is generated. The other files are licensed under the Mozilla Public License Version 2.0. A local copy can be found here.