Skip to content

Commit 2ea174e

Browse files
committed
EOS SDK RPC v4.33.0F
1 parent b45744c commit 2ea174e

File tree

2 files changed

+62
-39
lines changed

2 files changed

+62
-39
lines changed

proto/policy_map_counters.proto

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,6 @@ message PolicyMapCountersWatchRequest {
2222
optional bool compress_keys = 1;
2323
}
2424

25-
enum PolicyMapCountersOperation {
26-
POLICY_MAP_COUNTERS_UPDATE = 0;
27-
POLICY_MAP_COUNTERS_DELETE = 1;
28-
}
29-
30-
message PolicyMapCounters {
31-
// This is the compressed key allocated by the server
32-
// if compress_keys is enabled (true), all subsequent counter updates
33-
// will only provide the key_id
34-
uint64 key_id = 1;
35-
// This is compound key. The client is responsible for
36-
// maintaining the association between key_name and the more efficient key_id
37-
PolicyMapCountersKey key_name = 2;
38-
PolicyMapRuleCounters counters = 3;
39-
PolicyMapCountersAction policy_action = 4;
40-
// Instructs whether this entry is updating counters or deleting entries from the
41-
// counter table.
42-
PolicyMapCountersOperation operation = 5;
43-
}
44-
4525
message PolicyMapCountersWatchResponse {
4626
repeated PolicyMapCounters counters = 1;
4727
bool stream_ready = 2;

proto/policy_map_counters_types.proto

Lines changed: 62 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,87 @@
1-
// Copyright (c) 2023 Arista Networks, Inc. All rights reserved.
1+
// Copyright (c) 2024 Arista Networks, Inc. All rights reserved.
22
// Arista Networks, Inc. Confidential and Proprietary.
3-
3+
// Auto-generated - Do not modify
44
syntax = "proto3";
55

6-
option go_package = "arista/EosSdkRpc";
7-
86
package eos.remote;
97

8+
option go_package = "arista/EosSdkRpc";
9+
1010
import "policy_map_types.proto";
1111

12+
/// Key that uniquely identifies a counter
1213
message PolicyMapCountersKey {
13-
PolicyMapKey policy_key = 1;
14+
/// Policy map key
15+
eos.remote.PolicyMapKey policy_key = 1;
16+
/// Policy class name
1417
string class_name = 2;
18+
/// ACL rule name
1519
string acl_rule = 3;
1620
}
1721

18-
message PolicyMapRuleCounters {
19-
uint64 packets_count = 1;
20-
uint64 bytes_count = 2;
21-
/// Last update timestamp, UTC, sub-second precision
22-
double last_update_timestamp = 3;
23-
}
24-
22+
/// Next-hop information of output action
2523
message PolicyMapCountersOutAction {
24+
/// Next-hop list details
2625
message NexthopAction {
26+
/// Recursive (indirect) next-hop
2727
bool recursive = 1;
28+
/// List of next-hop addresses
2829
repeated bytes nexthop_addrs = 2;
30+
/// Egress VRF name
2931
string vrf = 3;
3032
}
3133

32-
oneof nexthop {
33-
NexthopAction nexthops = 1;
34-
string nexthop_group = 2;
35-
}
36-
uint32 ttl = 3;
34+
/// Next-hop details
35+
/// TACC Only
36+
oneof nexthop {
37+
NexthopAction nexthops = 1;
38+
string nexthop_group = 2;
39+
}
40+
41+
/// Egress TTL
42+
uint32 ttl = 3;
3743
}
3844

45+
/// Output action associated with counter data
3946
message PolicyMapCountersAction {
40-
oneof action {
47+
/// Possible output actions
48+
/// TACC Only
49+
oneof action {
4150
bool deny = 1;
4251
PolicyMapCountersOutAction out_action = 2;
43-
}
52+
}
53+
54+
}
55+
56+
/// Possible update actions
57+
enum PolicyMapCountersOperation {
58+
/// Entry updates previous value
59+
POLICY_MAP_COUNTERS_UPDATE = 0;
60+
/// Entry deletes previous value
61+
POLICY_MAP_COUNTERS_DELETE = 1;
4462
}
63+
64+
/// Counter data
65+
message PolicyMapRuleCounters {
66+
/// Packet count
67+
uint64 packets_count = 1;
68+
/// Byte count
69+
uint64 bytes_count = 2;
70+
/// Counter update timestamp (wallclock, seconds)
71+
double last_update_timestamp = 3;
72+
}
73+
74+
/// The policy map counter entry
75+
message PolicyMapCounters {
76+
/// Short key
77+
uint64 key_id = 1;
78+
/// Long key
79+
PolicyMapCountersKey key_name = 2;
80+
/// Counter data
81+
PolicyMapRuleCounters counters = 3;
82+
/// Associated output action
83+
PolicyMapCountersAction policy_action = 4;
84+
/// Update action of the entry
85+
PolicyMapCountersOperation operation = 5;
86+
}
87+

0 commit comments

Comments
 (0)