grpc: fixed issue with grpc throughputs checking session id matches using bad values
This commit is contained in:
parent
6dd7ce731e
commit
b98ff0f744
1 changed files with 5 additions and 5 deletions
|
@ -679,9 +679,9 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
|
||||||
key = key.split(".")
|
key = key.split(".")
|
||||||
node_id = _INTERFACE_REGEX.search(key[0]).group("node")
|
node_id = _INTERFACE_REGEX.search(key[0]).group("node")
|
||||||
node_id = int(node_id, base=16)
|
node_id = int(node_id, base=16)
|
||||||
iface_id = int(key[1], base=16)
|
iface_id = int(key[1])
|
||||||
session_id = int(key[2], base=16)
|
session_id = key[2]
|
||||||
if session.id != session_id:
|
if session.short_session_id() != session_id:
|
||||||
continue
|
continue
|
||||||
iface_throughput = throughputs_event.iface_throughputs.add()
|
iface_throughput = throughputs_event.iface_throughputs.add()
|
||||||
iface_throughput.node_id = node_id
|
iface_throughput.node_id = node_id
|
||||||
|
@ -691,8 +691,8 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
|
||||||
try:
|
try:
|
||||||
key = key.split(".")
|
key = key.split(".")
|
||||||
node_id = int(key[1], base=16)
|
node_id = int(key[1], base=16)
|
||||||
session_id = int(key[2], base=16)
|
session_id = key[2]
|
||||||
if session.id != session_id:
|
if session.short_session_id() != session_id:
|
||||||
continue
|
continue
|
||||||
bridge_throughput = (
|
bridge_throughput = (
|
||||||
throughputs_event.bridge_throughputs.add()
|
throughputs_event.bridge_throughputs.add()
|
||||||
|
|
Loading…
Add table
Reference in a new issue