Skip to content

Commit

Permalink
Add load balancing group to gateway's info.
Browse files Browse the repository at this point in the history
Fixes #471

Signed-off-by: Gil Bregman <[email protected]>
  • Loading branch information
gbregman committed Mar 6, 2024
1 parent ed4a184 commit e6370dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions control/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ def gw_info(self, args):
out_func(f"Gateway's name: {gw_info.name}")
if gw_info.group:
out_func(f"Gateway's group: {gw_info.group}")
out_func(f"Gateway's load balancing group: {gw_info.load_balancing_group}")
out_func(f"Gateway's address: {gw_info.addr}")
out_func(f"Gateway's port: {gw_info.port}")
if gw_info.spdk_version:
Expand Down
1 change: 1 addition & 0 deletions control/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2447,6 +2447,7 @@ def get_gateway_info_safe(self, request, context):
group = self.gateway_group,
addr = addr,
port = port,
load_balancing_group = self.group_id + 1,
bool_status = True,
status = 0,
error_message = os.strerror(0))
Expand Down
1 change: 1 addition & 0 deletions control/proto/gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ message gateway_info {
int32 status = 8;
string error_message = 9;
optional string spdk_version = 10;
uint32 load_balancing_group = 11;
}

message cli_version {
Expand Down

0 comments on commit e6370dc

Please sign in to comment.