Skip to content

Commit

Permalink
EOS SDK RPC v4.32.0F
Browse files Browse the repository at this point in the history
  • Loading branch information
dywalsh-ar committed Jun 14, 2024
1 parent cb79c09 commit c5aadeb
Show file tree
Hide file tree
Showing 32 changed files with 154 additions and 2 deletions.
2 changes: 2 additions & 0 deletions proto/acl.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "acl_types.proto";
Expand Down
2 changes: 2 additions & 0 deletions proto/acl_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "ip_intf_types.proto";
Expand Down
2 changes: 2 additions & 0 deletions proto/agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

import "rpc_types.proto";

package eos.remote;
Expand Down
2 changes: 2 additions & 0 deletions proto/bgp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "bgp_types.proto";
Expand Down
2 changes: 2 additions & 0 deletions proto/bgp_path.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "bgp_path_types.proto";
Expand Down
2 changes: 2 additions & 0 deletions proto/bgp_path_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "ip_types.proto";
Expand Down
2 changes: 2 additions & 0 deletions proto/bgp_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

message BgpPeerKey {
Expand Down
2 changes: 2 additions & 0 deletions proto/eapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

import "eapi_types.proto";

package eos.remote;
Expand Down
4 changes: 3 additions & 1 deletion proto/eapi_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

message EapiResponse {
Expand All @@ -11,4 +13,4 @@ message EapiResponse {
string error_message = 3;
repeated string responses = 4;
string raw_response = 5;
}
}
2 changes: 2 additions & 0 deletions proto/eth_lag_intf.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "rpc_types.proto";
Expand Down
2 changes: 2 additions & 0 deletions proto/eth_lag_intf_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

import "intf_types.proto";

package eos.remote;
Expand Down
2 changes: 2 additions & 0 deletions proto/eth_phy_intf.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "rpc_types.proto";
Expand Down
2 changes: 2 additions & 0 deletions proto/eth_phy_intf_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

enum EthPhyIntfLinkSpeed {
Expand Down
2 changes: 2 additions & 0 deletions proto/ip_intf.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "rpc_types.proto";
Expand Down
2 changes: 2 additions & 0 deletions proto/ip_intf_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

enum IpAddrOperations {
Expand Down
2 changes: 2 additions & 0 deletions proto/ip_route.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

import "rpc_types.proto";
import "intf_types.proto";
import "ip_route_types.proto";
Expand Down
3 changes: 3 additions & 0 deletions proto/ip_route_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

import "intf_types.proto";
import "ip_types.proto";
import "rpc_types.proto";
Expand Down Expand Up @@ -47,5 +49,6 @@ message IpRouteVia {
uint32 metric = 10;
bool vtep_sip_validation = 11;
IntfId vxlan_intf_id = 12;
// Valid range of 1 - (2^24)-1, set to 0 if unused.
uint32 weight = 13;
}
2 changes: 2 additions & 0 deletions proto/ip_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

enum IpVersion {
Expand Down
2 changes: 2 additions & 0 deletions proto/macsec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "rpc_types.proto";
Expand Down
2 changes: 2 additions & 0 deletions proto/macsec_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "intf_types.proto";
Expand Down
2 changes: 2 additions & 0 deletions proto/mpls_route.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "mpls_route_types.proto";
Expand Down
2 changes: 2 additions & 0 deletions proto/mpls_route_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "acl_types.proto";
Expand Down
2 changes: 2 additions & 0 deletions proto/mpls_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

/**
Expand Down
2 changes: 2 additions & 0 deletions proto/mpls_vrf_label.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "mpls_types.proto";
Expand Down
4 changes: 3 additions & 1 deletion proto/mpls_vrf_label_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "mpls_types.proto";

message MplsVrfLabel {
MplsLabel label = 1;
string vrf_name = 2;
}
}
4 changes: 4 additions & 0 deletions proto/nexthop_group.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "rpc_types.proto";
Expand Down Expand Up @@ -260,6 +262,8 @@ message NexthopGroupActiveResponse {
message NexthopGroupSetRequest {
// Details of the new group.
NexthopGroup nhg = 1;
// Must be in range 1 to 65535
optional uint32 client_version_id = 2;
}

message NexthopGroupSetResponse {
Expand Down
3 changes: 3 additions & 0 deletions proto/nexthop_group_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "intf_types.proto";
Expand Down Expand Up @@ -59,6 +61,7 @@ message NexthopGroup {
bytes source_ip_addr = 5;
IntfId source_intf = 6;
bool autosize = 7;
// The numeric key corresponds to the nexthop index position for the entry.
map<uint32, NexthopGroupEntry> nexthops = 8;
map<uint32, bytes> destination_ips = 9;
bool counters_unshared = 10;
Expand Down
2 changes: 2 additions & 0 deletions proto/policy_map.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

syntax = "proto3";

option go_package = "arista/EosSdkRpc";

package eos.remote;

import "acl_types.proto";
Expand Down
46 changes: 46 additions & 0 deletions proto/policy_map_counters.proto
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;
}
40 changes: 40 additions & 0 deletions proto/policy_map_counters_types.proto
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;
}
}
Loading

0 comments on commit c5aadeb

Please sign in to comment.