Skip to content

Commit a776802

Browse files
authored
Update proto generation commands to the most recent and update README. (#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.
1 parent 19a8016 commit a776802

File tree

20 files changed

+772
-836
lines changed

20 files changed

+772
-836
lines changed

demo/protobuf_getting_started/ribproto/openconfig/enums/enums.pb.go

Lines changed: 179 additions & 183 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/protobuf_getting_started/ribproto/openconfig/enums/enums.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ syntax = "proto3";
99

1010
package openconfig.enums;
1111

12-
import "github.com/openconfig/ygot/proto/ywrapper/ywrapper.proto";
1312
import "github.com/openconfig/ygot/proto/yext/yext.proto";
1413

14+
option go_package = "github.com/openconfig/ygot/demo/protobuf_getting_started/ribproto/openconfig/enums";
15+
1516
// OpenconfigBgpTypesAFISAFITYPE represents an enumerated type generated for the YANG identity AFI_SAFI_TYPE.
1617
enum OpenconfigBgpTypesAFISAFITYPE {
1718
OPENCONFIGBGPTYPESAFISAFITYPE_UNSET = 0;

demo/protobuf_getting_started/ribproto/openconfig/enums/pkg.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

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

19-
package openconfig_enums
19+
package enums

demo/protobuf_getting_started/ribproto/openconfig/openconfig.pb.go

Lines changed: 24 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/protobuf_getting_started/ribproto/openconfig/openconfig.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ syntax = "proto3";
99

1010
package openconfig;
1111

12-
import "github.com/openconfig/ygot/proto/ywrapper/ywrapper.proto";
1312
import "github.com/openconfig/ygot/proto/yext/yext.proto";
1413
import "github.com/openconfig/ygot/demo/protobuf_getting_started/ribproto/openconfig/openconfig_rib_bgp/openconfig_rib_bgp.proto";
1514

15+
option go_package = "github.com/openconfig/ygot/demo/protobuf_getting_started/ribproto/openconfig";
16+
1617
message Device {
1718
openconfig_rib_bgp.BgpRib bgp_rib = 314942212 [(yext.schemapath) = "/bgp-rib"];
1819
}

demo/protobuf_getting_started/ribproto/openconfig/openconfig_rib_bgp/openconfig_rib_bgp.pb.go

Lines changed: 31 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/protobuf_getting_started/ribproto/openconfig/openconfig_rib_bgp/openconfig_rib_bgp.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import "github.com/openconfig/ygot/proto/ywrapper/ywrapper.proto";
1313
import "github.com/openconfig/ygot/proto/yext/yext.proto";
1414
import "github.com/openconfig/ygot/demo/protobuf_getting_started/ribproto/openconfig/enums/enums.proto";
1515

16+
option go_package = "github.com/openconfig/ygot/demo/protobuf_getting_started/ribproto/openconfig/openconfig_rib_bgp";
17+
1618
message BgpRib {
1719
message AfiSafis {
1820
message AfiSafi {

demo/protobuf_getting_started/ribproto/openconfig/openconfig_rib_bgp/pkg.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// Package openconfig_openconfig_rib_bgp is a protobuf package that is
15+
// Package openconfig_rib_bgp is a protobuf package that is
1616
// generated by ygot. This file ensures that build systems that assume the
1717
// existence of the package can find it.
18-
package openconfig_openconfig_rib_bgp
18+
package openconfig_rib_bgp

0 commit comments

Comments
 (0)