Skip to content

Commit

Permalink
Update proto generation commands to the most recent and update README. (
Browse files Browse the repository at this point in the history
#589)

* Update protoc commands to the most recent and update README.

Followed instructions at https://developers.google.com/protocol-buffers/docs/reference/go-generated.

Additional Testing:
- `go generate ./...` works.
  • Loading branch information
wenovus authored Sep 30, 2021
1 parent 19a8016 commit a776802
Show file tree
Hide file tree
Showing 20 changed files with 772 additions and 836 deletions.
362 changes: 179 additions & 183 deletions demo/protobuf_getting_started/ribproto/openconfig/enums/enums.pb.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ syntax = "proto3";

package openconfig.enums;

import "github.com/openconfig/ygot/proto/ywrapper/ywrapper.proto";
import "github.com/openconfig/ygot/proto/yext/yext.proto";

option go_package = "github.com/openconfig/ygot/demo/protobuf_getting_started/ribproto/openconfig/enums";

// OpenconfigBgpTypesAFISAFITYPE represents an enumerated type generated for the YANG identity AFI_SAFI_TYPE.
enum OpenconfigBgpTypesAFISAFITYPE {
OPENCONFIGBGPTYPESAFISAFITYPE_UNSET = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package openconfig_enums is a protobuf package that is generated by
// Package enums is a protobuf package that is generated by
// ygot. This file ensures that build systems that assume the existence
// of the package can find it.

package openconfig_enums
package enums
52 changes: 24 additions & 28 deletions demo/protobuf_getting_started/ribproto/openconfig/openconfig.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ syntax = "proto3";

package openconfig;

import "github.com/openconfig/ygot/proto/ywrapper/ywrapper.proto";
import "github.com/openconfig/ygot/proto/yext/yext.proto";
import "github.com/openconfig/ygot/demo/protobuf_getting_started/ribproto/openconfig/openconfig_rib_bgp/openconfig_rib_bgp.proto";

option go_package = "github.com/openconfig/ygot/demo/protobuf_getting_started/ribproto/openconfig";

message Device {
openconfig_rib_bgp.BgpRib bgp_rib = 314942212 [(yext.schemapath) = "/bgp-rib"];
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import "github.com/openconfig/ygot/proto/ywrapper/ywrapper.proto";
import "github.com/openconfig/ygot/proto/yext/yext.proto";
import "github.com/openconfig/ygot/demo/protobuf_getting_started/ribproto/openconfig/enums/enums.proto";

option go_package = "github.com/openconfig/ygot/demo/protobuf_getting_started/ribproto/openconfig/openconfig_rib_bgp";

message BgpRib {
message AfiSafis {
message AfiSafi {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package openconfig_openconfig_rib_bgp is a protobuf package that is
// Package openconfig_rib_bgp is a protobuf package that is
// generated by ygot. This file ensures that build systems that assume the
// existence of the package can find it.
package openconfig_openconfig_rib_bgp
package openconfig_rib_bgp
Loading

0 comments on commit a776802

Please sign in to comment.