|
1 |
| -// Copyright (c) 2023 Arista Networks, Inc. All rights reserved. |
| 1 | +// Copyright (c) 2024 Arista Networks, Inc. All rights reserved. |
2 | 2 | // Arista Networks, Inc. Confidential and Proprietary.
|
3 |
| - |
| 3 | +// Auto-generated - Do not modify |
4 | 4 | syntax = "proto3";
|
5 | 5 |
|
6 |
| -option go_package = "arista/EosSdkRpc"; |
7 |
| - |
8 | 6 | package eos.remote;
|
9 | 7 |
|
| 8 | +option go_package = "arista/EosSdkRpc"; |
| 9 | + |
10 | 10 | import "policy_map_types.proto";
|
11 | 11 |
|
| 12 | +/// Key that uniquely identifies a counter |
12 | 13 | message PolicyMapCountersKey {
|
13 |
| - PolicyMapKey policy_key = 1; |
| 14 | + /// Policy map key |
| 15 | + eos.remote.PolicyMapKey policy_key = 1; |
| 16 | + /// Policy class name |
14 | 17 | string class_name = 2;
|
| 18 | + /// ACL rule name |
15 | 19 | string acl_rule = 3;
|
16 | 20 | }
|
17 | 21 |
|
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 |
25 | 23 | message PolicyMapCountersOutAction {
|
| 24 | + /// Next-hop list details |
26 | 25 | message NexthopAction {
|
| 26 | + /// Recursive (indirect) next-hop |
27 | 27 | bool recursive = 1;
|
| 28 | + /// List of next-hop addresses |
28 | 29 | repeated bytes nexthop_addrs = 2;
|
| 30 | + /// Egress VRF name |
29 | 31 | string vrf = 3;
|
30 | 32 | }
|
31 | 33 |
|
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; |
37 | 43 | }
|
38 | 44 |
|
| 45 | +/// Output action associated with counter data |
39 | 46 | message PolicyMapCountersAction {
|
40 |
| - oneof action { |
| 47 | + /// Possible output actions |
| 48 | + /// TACC Only |
| 49 | + oneof action { |
41 | 50 | bool deny = 1;
|
42 | 51 | 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; |
44 | 62 | }
|
| 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