Skip to content

Commit

Permalink
update/arista,fmp: Migrate stubs to protobuf 5
Browse files Browse the repository at this point in the history
Change-Id: Ib5500ac6d523d30e814c66fa87fcde1f6e5ffcf1
  • Loading branch information
oumichae1 authored and cianmcgrath committed Dec 18, 2024
1 parent 722a45b commit 34f1d9f
Show file tree
Hide file tree
Showing 90 changed files with 9,662 additions and 2,739 deletions.
34 changes: 22 additions & 12 deletions arista/alert/v1/alert_pb2.py

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

20 changes: 20 additions & 0 deletions arista/alert/v1/alert_pb2_grpc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import warnings


GRPC_GENERATED_VERSION = '1.68.1'
GRPC_VERSION = grpc.__version__
_version_not_supported = False

try:
from grpc._utilities import first_version_is_lower
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
except ImportError:
_version_not_supported = True

if _version_not_supported:
raise RuntimeError(
f'The grpc package installed is at version {GRPC_VERSION},'
+ f' but the generated code in arista/alert.v1/alert_pb2_grpc.py depends on'
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
)
16 changes: 13 additions & 3 deletions arista/alert/v1/services/gen_pb2.py

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

Loading

0 comments on commit 34f1d9f

Please sign in to comment.