openconfig / gnoi

gRPC Network Operations Interface (gNOI) defines a set of gRPC-based microservices for executing operational commands on network devices.
Apache License 2.0
160 stars 70 forks source link

Issues in packet_link_qualification.proto #71

Closed romeyod closed 2 years ago

romeyod commented 2 years ago

Hello

Few issues in [add packet_link_qualification] (https://github.com/openconfig/gnoi/commit/28e696d767f5ca950b6afd8f4bbd40263b3d0b76)

uint16 packet_size = 1500;

"uint16" is not a valid proto3 type.

https://github.com/openconfig/gnoi/blob/28e696d767f5ca950b6afd8f4bbd40263b3d0b76/packet_link_qualification/packet_link_qualification.proto#L91

Also, proto3 does not support default values right? The "= 1500" is not needed.

@yushiyushi @marcushines

romeyod commented 2 years ago

When are we planning to merge "packet_link_qualification_grpc.pb.go" and "packet_link_qualification.pb.go" like other existing gnoi?

romeyod commented 2 years ago

You will also need the below in the proto file so that compile_protos.sh is able to generate the dependencies.

option go_package = "github.com/openconfig/gnoi/packet_link_qualification";

yushiyushi commented 2 years ago

hi, i am sorry for causing the issue here, I have added packet_link_qualification at compile_protos.sh, i thought --go_opt=paths=source_relative $p/$p.proto can find https://github.com/openconfig/gnoi/blob/master/packet_link_qualification/packet_link_qualification.proto do i also have to add

option go_package = "github.com/openconfig/gnoi/packet_link_qualification"; ?

marcushines commented 2 years ago

closing as v2 has been submitted