Skip to content

Commit

Permalink
lag: Add lag openconfig-interfaces and API
Browse files Browse the repository at this point in the history
Signed-off-by: Rubens Figueiredo <[email protected]>
  • Loading branch information
rubensfig committed Oct 14, 2020
1 parent 2bc603f commit 82258f9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
10 changes: 8 additions & 2 deletions api/ofdpa.proto
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
syntax = "proto3";

import "stp/openconfig-spanning-tree.proto";

package ofdpa;
import "stp/openconfig-spanning-tree.proto";
import "trunk/trunk-interfaces.proto";

message OfdpaStatus {
enum OfdpaStatusCode {
Expand Down Expand Up @@ -65,6 +65,12 @@ service OfdpaRpc {

rpc ofdpaStgStatePortSet(openconfig_spanning_tree.Stp_Rstp_Interface_State) returns (OfdpaStatus) {}

rpc ofdpaTrunkCreate(trunk.Interface_Trunk_Description) returns (OfdpaStatus) {}
rpc ofdpaTrunkDelete(trunk.Interface_Trunk_Description) returns (OfdpaStatus) {}
rpc ofdpaTrunkPortPSCSet(trunk.Interface_Trunk_Description) returns (OfdpaStatus) {}

rpc ofdpaTrunkPortMemberSet(trunk.Interface_Trunk_Description) returns (OfdpaStatus) {}
rpc ofdpaTrunkPortMemberActiveSet(trunk.Interface_Trunk_Description) returns (OfdpaStatus) {}
}

message Empty {}
Expand Down
21 changes: 21 additions & 0 deletions trunk/trunk-interfaces.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
syntax = "proto3";

package trunk;

message Interface_Trunk_Description {
string name = 1;
uint32 lag_speed = 2;
enum LagType {
LagType_ROUNDROBIN = 0;
LagType_ACTIVEBACKUP = 1;
LagType_XOR = 2;
LagType_BROADCAST = 3;
LagType_8023AD = 4;
LagType_TLB = 5;
LagType_ALB = 6;
};
LagType lag_type = 3;
uint32 member = 4;
uint32 lag_id = 5;
bool active = 6;
}

0 comments on commit 82258f9

Please sign in to comment.