Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): api update #184

Merged
merged 3 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pydpu/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def get_inventory(address):
try:
with grpc.insecure_channel(address) as channel:
stub = inventory_pb2_grpc.InventorySvcStub(channel)
stub = inventory_pb2_grpc.InventoryServiceStub(channel)
res = stub.GetInventory(request=inventory_pb2.GetInventoryRequest())
return res
except grpc.RpcError as e:
Expand Down
16 changes: 8 additions & 8 deletions pydpu/ipsec.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@

def get_stats(address):
with grpc.insecure_channel(address) as channel:
stub = ipsec_pb2_grpc.IPsecStub(channel)
a = stub.IPsecVersion(ipsec_pb2.IPsecVersionReq())
b = stub.IPsecStats(ipsec_pb2.IPsecStatsReq())
c = stub.IPsecListConns(ipsec_pb2.IPsecListConnsReq(ike="tun1_0_0"))
d = stub.IPsecListSas(ipsec_pb2.IPsecListSasReq(ike="tun1_0_0"))
e = stub.IPsecListCerts(ipsec_pb2.IPsecListCertsReq())
stub = ipsec_pb2_grpc.IPsecServiceStub(channel)
a = stub.IPsecVersion(ipsec_pb2.IPsecVersionRequest())
b = stub.IPsecStats(ipsec_pb2.IPsecStatsRequest())
c = stub.IPsecListConns(ipsec_pb2.IPsecListConnsRequest(ike="tun1_0_0"))
d = stub.IPsecListSas(ipsec_pb2.IPsecListSasRequest(ike="tun1_0_0"))
e = stub.IPsecListCerts(ipsec_pb2.IPsecListCertsRequest())

Check warning on line 16 in pydpu/ipsec.py

View check run for this annotation

Codecov / codecov/patch

pydpu/ipsec.py#L11-L16

Added lines #L11 - L16 were not covered by tests
print(a, b, c, d, e)


def create_new_tunnel(address):
with grpc.insecure_channel(address) as channel:
stub = ipsec_pb2_grpc.IPsecStub(channel)
stub = ipsec_pb2_grpc.IPsecServiceStub(channel)
# connection_1 = stub.IPsecLoadConn(tun1_0_0)
# connection_2 = stub.IPsecLoadConn(tun1_0_1)
print(
"tbd",
stub,
grpc.StatusCode.UNIMPLEMENTED,
ipsec_pb2.IPsecStatsReq(),
ipsec_pb2.IPsecStatsRequest(),
)
150 changes: 74 additions & 76 deletions pydpu/proto/v1/backend_aio_pb2.py

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions pydpu/proto/v1/backend_iscsi_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

146 changes: 72 additions & 74 deletions pydpu/proto/v1/backend_null_pb2.py

Large diffs are not rendered by default.

408 changes: 202 additions & 206 deletions pydpu/proto/v1/backend_nvme_pb2.py

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pydpu/proto/v1/backend_nvme_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class NvmeRemoteControllerServiceStub(object):
"""Back End APIs. Reponsible for connection to external Nvme devices
"""Back End APIs. Responsible for connection to external Nvme devices
e.g. connection to Nvme/TCP Nvme/RDMA and local Nvme/Pcie ssds
"""

Expand Down Expand Up @@ -95,7 +95,7 @@ def __init__(self, channel):


class NvmeRemoteControllerServiceServicer(object):
"""Back End APIs. Reponsible for connection to external Nvme devices
"""Back End APIs. Responsible for connection to external Nvme devices
e.g. connection to Nvme/TCP Nvme/RDMA and local Nvme/Pcie ssds
"""

Expand Down Expand Up @@ -290,7 +290,7 @@ def add_NvmeRemoteControllerServiceServicer_to_server(servicer, server):

# This class is part of an EXPERIMENTAL API.
class NvmeRemoteControllerService(object):
"""Back End APIs. Reponsible for connection to external Nvme devices
"""Back End APIs. Responsible for connection to external Nvme devices
e.g. connection to Nvme/TCP Nvme/RDMA and local Nvme/Pcie ssds
"""

Expand Down
2 changes: 1 addition & 1 deletion pydpu/proto/v1/bgp_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pydpu/proto/v1/cloudrpc_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pydpu/proto/v1/device_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

536 changes: 268 additions & 268 deletions pydpu/proto/v1/frontend_nvme_pb2.py

Large diffs are not rendered by default.

Loading
Loading