-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb79c09
commit c5aadeb
Showing
32 changed files
with
154 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
|
||
syntax = "proto3"; | ||
|
||
option go_package = "arista/EosSdkRpc"; | ||
|
||
package eos.remote; | ||
|
||
message BgpPeerKey { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
|
||
syntax = "proto3"; | ||
|
||
option go_package = "arista/EosSdkRpc"; | ||
|
||
package eos.remote; | ||
|
||
enum IpVersion { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
|
||
syntax = "proto3"; | ||
|
||
option go_package = "arista/EosSdkRpc"; | ||
|
||
package eos.remote; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright (c) 2023 Arista Networks, Inc. All rights reserved. | ||
// Arista Networks, Inc. Confidential and Proprietary. | ||
|
||
syntax = "proto3"; | ||
|
||
package eos.remote; | ||
|
||
import "policy_map_counters_types.proto"; | ||
|
||
service PolicyMapCountersMgrService { | ||
rpc watch_policy_map_counters( PolicyMapCountersWatchRequest ) | ||
returns ( stream PolicyMapCountersWatchResponse ); | ||
} | ||
|
||
message PolicyMapCountersWatchRequest { | ||
// When set to true, messages will mostly carry a short key that can be | ||
// mapped to the descriptive key. | ||
// Disabling compression is not supported, theferefore the default choice | ||
// for this argument is `true`. | ||
optional bool compress_keys = 1; | ||
} | ||
|
||
enum PolicyMapCountersOperation { | ||
POLICY_MAP_COUNTERS_UPDATE = 0; | ||
POLICY_MAP_COUNTERS_DELETE = 1; | ||
} | ||
|
||
message PolicyMapCounters { | ||
// This is the compressed key allocated by the server | ||
// if compress_keys is enabled (true), all subsequent counter updates | ||
// will only provide the key_id | ||
uint64 key_id = 1; | ||
// This is compound key. The client is responsible for | ||
// maintaining the association between key_name and the more efficient key_id | ||
PolicyMapCountersKey key_name = 2; | ||
PolicyMapRuleCounters counters = 3; | ||
PolicyMapCountersAction policy_action = 4; | ||
// Instructs whether this entry is updating counters or deleting entries from the | ||
// counter table. | ||
PolicyMapCountersOperation operation = 5; | ||
} | ||
|
||
message PolicyMapCountersWatchResponse { | ||
repeated PolicyMapCounters counters = 1; | ||
bool stream_ready = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) 2023 Arista Networks, Inc. All rights reserved. | ||
// Arista Networks, Inc. Confidential and Proprietary. | ||
|
||
syntax = "proto3"; | ||
|
||
package eos.remote; | ||
|
||
import "policy_map_types.proto"; | ||
|
||
message PolicyMapCountersKey { | ||
PolicyMapKey policy_key = 1; | ||
string class_name = 2; | ||
string acl_rule = 3; | ||
} | ||
|
||
message PolicyMapRuleCounters { | ||
uint64 packets_count = 1; | ||
uint64 bytes_count = 2; | ||
} | ||
|
||
message PolicyMapCountersOutAction { | ||
message NexthopAction { | ||
bool recursive = 1; | ||
repeated bytes nexthop_addrs = 2; | ||
string vrf = 3; | ||
} | ||
|
||
oneof nexthop { | ||
NexthopAction nexthops = 1; | ||
string nexthop_group = 2; | ||
} | ||
uint32 ttl = 3; | ||
} | ||
|
||
message PolicyMapCountersAction { | ||
oneof action { | ||
bool deny = 1; | ||
PolicyMapCountersOutAction out_action = 2; | ||
} | ||
} |
Oops, something went wrong.