Skip to content

Commit

Permalink
feat: added more annotations to proto models
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Gschwandtner <filip.gschwandtner@pantheon.tech>
  • Loading branch information
fgschwan committed Mar 3, 2021
1 parent edbe20e commit c9363bb
Show file tree
Hide file tree
Showing 46 changed files with 1,627 additions and 1,483 deletions.
142 changes: 73 additions & 69 deletions proto/ligato/linux/interfaces/state.pb.go

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

4 changes: 3 additions & 1 deletion proto/ligato/linux/interfaces/state.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ option go_package = "go.ligato.io/vpp-agent/v3/proto/ligato/linux/interfaces;lin

import "ligato/linux/interfaces/interface.proto";

import "ligato/annotations.proto";

message InterfaceState {
string name = 1;
string internal_name = 2;
Expand All @@ -24,7 +26,7 @@ message InterfaceState {
int64 last_change = 7;
string phys_address = 8;
uint64 speed = 9;
uint32 mtu = 10;
uint32 mtu = 10 [(ligato_options).int_range = {minimum: 0 maximum: 9216}];

message Statistics {
uint64 in_packets = 1;
Expand Down
27 changes: 15 additions & 12 deletions proto/ligato/linux/l3/arp.pb.go

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

4 changes: 3 additions & 1 deletion proto/ligato/linux/l3/arp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ package ligato.linux.l3;

option go_package = "go.ligato.io/vpp-agent/v3/proto/ligato/linux/l3;linux_l3";

import "ligato/annotations.proto";

message ARPEntry {
string interface = 1;
string ip_address = 2;
string ip_address = 2 [(ligato_options).type = IP];
string hw_address = 3;
}
Loading

0 comments on commit c9363bb

Please sign in to comment.