Skip to content

Commit c9363bb

Browse files
committed
feat: added more annotations to proto models
Signed-off-by: Filip Gschwandtner <[email protected]>
1 parent edbe20e commit c9363bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1627
-1483
lines changed

proto/ligato/linux/interfaces/state.pb.go

+73-69
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/ligato/linux/interfaces/state.proto

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ option go_package = "go.ligato.io/vpp-agent/v3/proto/ligato/linux/interfaces;lin
66

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

9+
import "ligato/annotations.proto";
10+
911
message InterfaceState {
1012
string name = 1;
1113
string internal_name = 2;
@@ -24,7 +26,7 @@ message InterfaceState {
2426
int64 last_change = 7;
2527
string phys_address = 8;
2628
uint64 speed = 9;
27-
uint32 mtu = 10;
29+
uint32 mtu = 10 [(ligato_options).int_range = {minimum: 0 maximum: 9216}];
2830

2931
message Statistics {
3032
uint64 in_packets = 1;

proto/ligato/linux/l3/arp.pb.go

+15-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/ligato/linux/l3/arp.proto

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ package ligato.linux.l3;
44

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

7+
import "ligato/annotations.proto";
8+
79
message ARPEntry {
810
string interface = 1;
9-
string ip_address = 2;
11+
string ip_address = 2 [(ligato_options).type = IP];
1012
string hw_address = 3;
1113
}

0 commit comments

Comments
 (0)