diff --git a/pydpu/proto/v1/backend_malloc_pb2.py b/pydpu/proto/v1/backend_malloc_pb2.py new file mode 100644 index 0000000..bb07b65 --- /dev/null +++ b/pydpu/proto/v1/backend_malloc_pb2.py @@ -0,0 +1,98 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: backend_malloc.proto +# Protobuf Python Version: 4.25.2 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +import opicommon_pb2 as opicommon__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14\x62\x61\x63kend_malloc.proto\x12\x12opi_api.storage.v1\x1a\x17google/api/client.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x0fopicommon.proto\"\x96\x02\n\x0cMallocVolume\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12#\n\nblock_size\x18\x02 \x01(\x03\x42\x04\xe2\x41\x01\x02R\tblockSize\x12\'\n\x0c\x62locks_count\x18\x03 \x01(\x03\x42\x04\xe2\x41\x01\x02R\x0b\x62locksCount\x12)\n\rmetadata_size\x18\x04 \x01(\x03\x42\x04\xe2\x41\x01\x01R\x0cmetadataSize\x12\x18\n\x04uuid\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01R\x04uuid:Y\xea\x41V\n\x1fopi_api.storage.v1/MallocVolume\x12\x16mallocVolumes/{volume}*\rmallocVolumes2\x0cmallocVolume\"\x98\x01\n\x19\x43reateMallocVolumeRequest\x12K\n\rmalloc_volume\x18\x01 \x01(\x0b\x32 .opi_api.storage.v1.MallocVolumeB\x04\xe2\x41\x01\x02R\x0cmallocVolume\x12.\n\x10malloc_volume_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\x0emallocVolumeId\"\x84\x01\n\x19\x44\x65leteMallocVolumeRequest\x12<\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1fopi_api.storage.v1/MallocVolumeR\x04name\x12)\n\rallow_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xd6\x01\n\x19UpdateMallocVolumeRequest\x12K\n\rmalloc_volume\x18\x01 \x01(\x0b\x32 .opi_api.storage.v1.MallocVolumeB\x04\xe2\x41\x01\x02R\x0cmallocVolume\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"b\n\x18ListMallocVolumesRequest\x12!\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"\x8c\x01\n\x19ListMallocVolumesResponse\x12G\n\x0emalloc_volumes\x18\x01 \x03(\x0b\x32 .opi_api.storage.v1.MallocVolumeR\rmallocVolumes\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"V\n\x16GetMallocVolumeRequest\x12<\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1fopi_api.storage.v1/MallocVolumeR\x04name\"X\n\x18StatsMallocVolumeRequest\x12<\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1fopi_api.storage.v1/MallocVolumeR\x04name\"R\n\x19StatsMallocVolumeResponse\x12\x35\n\x05stats\x18\x01 \x01(\x0b\x32\x1f.opi_api.storage.v1.VolumeStatsR\x05stats2\xd5\x07\n\x13MallocVolumeService\x12\xb0\x01\n\x12\x43reateMallocVolume\x12-.opi_api.storage.v1.CreateMallocVolumeRequest\x1a .opi_api.storage.v1.MallocVolume\"I\xda\x41\x1emalloc_volume,malloc_volume_id\x82\xd3\xe4\x93\x02\"\"\x11/v1/mallocVolumes:\rmalloc_volume\x12\x86\x01\n\x12\x44\x65leteMallocVolume\x12-.opi_api.storage.v1.DeleteMallocVolumeRequest\x1a\x16.google.protobuf.Empty\")\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1c*\x1a/v1/{name=mallocVolumes/*}\x12\xc2\x01\n\x12UpdateMallocVolume\x12-.opi_api.storage.v1.UpdateMallocVolumeRequest\x1a .opi_api.storage.v1.MallocVolume\"[\xda\x41\x19malloc_volume,update_mask\x82\xd3\xe4\x93\x02\x39\x32(/v1/{malloc_volume.name=mallocVolumes/*}:\rmalloc_volume\x12\x8b\x01\n\x11ListMallocVolumes\x12,.opi_api.storage.v1.ListMallocVolumesRequest\x1a-.opi_api.storage.v1.ListMallocVolumesResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/mallocVolumes\x12\x8a\x01\n\x0fGetMallocVolume\x12*.opi_api.storage.v1.GetMallocVolumeRequest\x1a .opi_api.storage.v1.MallocVolume\")\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1c\x12\x1a/v1/{name=mallocVolumes/*}\x12\xa1\x01\n\x11StatsMallocVolume\x12,.opi_api.storage.v1.StatsMallocVolumeRequest\x1a-.opi_api.storage.v1.StatsMallocVolumeResponse\"/\xda\x41\x04name\x82\xd3\xe4\x93\x02\"\x12 /v1/{name=mallocVolumes/*}:statsBa\n\x12opi_api.storage.v1B\x12\x42\x61\x63kendMallocProtoP\x01Z5github.com/opiproject/opi-api/storage/v1alpha1/gen/gob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'backend_malloc_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\022opi_api.storage.v1B\022BackendMallocProtoP\001Z5github.com/opiproject/opi-api/storage/v1alpha1/gen/go' + _globals['_MALLOCVOLUME'].fields_by_name['name']._options = None + _globals['_MALLOCVOLUME'].fields_by_name['name']._serialized_options = b'\342A\001\010' + _globals['_MALLOCVOLUME'].fields_by_name['block_size']._options = None + _globals['_MALLOCVOLUME'].fields_by_name['block_size']._serialized_options = b'\342A\001\002' + _globals['_MALLOCVOLUME'].fields_by_name['blocks_count']._options = None + _globals['_MALLOCVOLUME'].fields_by_name['blocks_count']._serialized_options = b'\342A\001\002' + _globals['_MALLOCVOLUME'].fields_by_name['metadata_size']._options = None + _globals['_MALLOCVOLUME'].fields_by_name['metadata_size']._serialized_options = b'\342A\001\001' + _globals['_MALLOCVOLUME'].fields_by_name['uuid']._options = None + _globals['_MALLOCVOLUME'].fields_by_name['uuid']._serialized_options = b'\342A\001\001' + _globals['_MALLOCVOLUME']._options = None + _globals['_MALLOCVOLUME']._serialized_options = b'\352AV\n\037opi_api.storage.v1/MallocVolume\022\026mallocVolumes/{volume}*\rmallocVolumes2\014mallocVolume' + _globals['_CREATEMALLOCVOLUMEREQUEST'].fields_by_name['malloc_volume']._options = None + _globals['_CREATEMALLOCVOLUMEREQUEST'].fields_by_name['malloc_volume']._serialized_options = b'\342A\001\002' + _globals['_CREATEMALLOCVOLUMEREQUEST'].fields_by_name['malloc_volume_id']._options = None + _globals['_CREATEMALLOCVOLUMEREQUEST'].fields_by_name['malloc_volume_id']._serialized_options = b'\342A\001\001' + _globals['_DELETEMALLOCVOLUMEREQUEST'].fields_by_name['name']._options = None + _globals['_DELETEMALLOCVOLUMEREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A!\n\037opi_api.storage.v1/MallocVolume' + _globals['_DELETEMALLOCVOLUMEREQUEST'].fields_by_name['allow_missing']._options = None + _globals['_DELETEMALLOCVOLUMEREQUEST'].fields_by_name['allow_missing']._serialized_options = b'\342A\001\001' + _globals['_UPDATEMALLOCVOLUMEREQUEST'].fields_by_name['malloc_volume']._options = None + _globals['_UPDATEMALLOCVOLUMEREQUEST'].fields_by_name['malloc_volume']._serialized_options = b'\342A\001\002' + _globals['_UPDATEMALLOCVOLUMEREQUEST'].fields_by_name['update_mask']._options = None + _globals['_UPDATEMALLOCVOLUMEREQUEST'].fields_by_name['update_mask']._serialized_options = b'\342A\001\001' + _globals['_UPDATEMALLOCVOLUMEREQUEST'].fields_by_name['allow_missing']._options = None + _globals['_UPDATEMALLOCVOLUMEREQUEST'].fields_by_name['allow_missing']._serialized_options = b'\342A\001\001' + _globals['_LISTMALLOCVOLUMESREQUEST'].fields_by_name['page_size']._options = None + _globals['_LISTMALLOCVOLUMESREQUEST'].fields_by_name['page_size']._serialized_options = b'\342A\001\001' + _globals['_LISTMALLOCVOLUMESREQUEST'].fields_by_name['page_token']._options = None + _globals['_LISTMALLOCVOLUMESREQUEST'].fields_by_name['page_token']._serialized_options = b'\342A\001\001' + _globals['_GETMALLOCVOLUMEREQUEST'].fields_by_name['name']._options = None + _globals['_GETMALLOCVOLUMEREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A!\n\037opi_api.storage.v1/MallocVolume' + _globals['_STATSMALLOCVOLUMEREQUEST'].fields_by_name['name']._options = None + _globals['_STATSMALLOCVOLUMEREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A!\n\037opi_api.storage.v1/MallocVolume' + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['CreateMallocVolume']._options = None + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['CreateMallocVolume']._serialized_options = b'\332A\036malloc_volume,malloc_volume_id\202\323\344\223\002\"\"\021/v1/mallocVolumes:\rmalloc_volume' + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['DeleteMallocVolume']._options = None + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['DeleteMallocVolume']._serialized_options = b'\332A\004name\202\323\344\223\002\034*\032/v1/{name=mallocVolumes/*}' + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['UpdateMallocVolume']._options = None + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['UpdateMallocVolume']._serialized_options = b'\332A\031malloc_volume,update_mask\202\323\344\223\00292(/v1/{malloc_volume.name=mallocVolumes/*}:\rmalloc_volume' + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['ListMallocVolumes']._options = None + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['ListMallocVolumes']._serialized_options = b'\202\323\344\223\002\023\022\021/v1/mallocVolumes' + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['GetMallocVolume']._options = None + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['GetMallocVolume']._serialized_options = b'\332A\004name\202\323\344\223\002\034\022\032/v1/{name=mallocVolumes/*}' + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['StatsMallocVolume']._options = None + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['StatsMallocVolume']._serialized_options = b'\332A\004name\202\323\344\223\002\"\022 /v1/{name=mallocVolumes/*}:stats' + _globals['_MALLOCVOLUME']._serialized_start=240 + _globals['_MALLOCVOLUME']._serialized_end=518 + _globals['_CREATEMALLOCVOLUMEREQUEST']._serialized_start=521 + _globals['_CREATEMALLOCVOLUMEREQUEST']._serialized_end=673 + _globals['_DELETEMALLOCVOLUMEREQUEST']._serialized_start=676 + _globals['_DELETEMALLOCVOLUMEREQUEST']._serialized_end=808 + _globals['_UPDATEMALLOCVOLUMEREQUEST']._serialized_start=811 + _globals['_UPDATEMALLOCVOLUMEREQUEST']._serialized_end=1025 + _globals['_LISTMALLOCVOLUMESREQUEST']._serialized_start=1027 + _globals['_LISTMALLOCVOLUMESREQUEST']._serialized_end=1125 + _globals['_LISTMALLOCVOLUMESRESPONSE']._serialized_start=1128 + _globals['_LISTMALLOCVOLUMESRESPONSE']._serialized_end=1268 + _globals['_GETMALLOCVOLUMEREQUEST']._serialized_start=1270 + _globals['_GETMALLOCVOLUMEREQUEST']._serialized_end=1356 + _globals['_STATSMALLOCVOLUMEREQUEST']._serialized_start=1358 + _globals['_STATSMALLOCVOLUMEREQUEST']._serialized_end=1446 + _globals['_STATSMALLOCVOLUMERESPONSE']._serialized_start=1448 + _globals['_STATSMALLOCVOLUMERESPONSE']._serialized_end=1530 + _globals['_MALLOCVOLUMESERVICE']._serialized_start=1533 + _globals['_MALLOCVOLUMESERVICE']._serialized_end=2514 +# @@protoc_insertion_point(module_scope) diff --git a/pydpu/proto/v1/backend_malloc_pb2_grpc.py b/pydpu/proto/v1/backend_malloc_pb2_grpc.py new file mode 100644 index 0000000..7bf607e --- /dev/null +++ b/pydpu/proto/v1/backend_malloc_pb2_grpc.py @@ -0,0 +1,241 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +import backend_malloc_pb2 as backend__malloc__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 + + +class MallocVolumeServiceStub(object): + """Back End Malloc Volume APIs. This is debug interface for malloc block devices. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateMallocVolume = channel.unary_unary( + '/opi_api.storage.v1.MallocVolumeService/CreateMallocVolume', + request_serializer=backend__malloc__pb2.CreateMallocVolumeRequest.SerializeToString, + response_deserializer=backend__malloc__pb2.MallocVolume.FromString, + ) + self.DeleteMallocVolume = channel.unary_unary( + '/opi_api.storage.v1.MallocVolumeService/DeleteMallocVolume', + request_serializer=backend__malloc__pb2.DeleteMallocVolumeRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.UpdateMallocVolume = channel.unary_unary( + '/opi_api.storage.v1.MallocVolumeService/UpdateMallocVolume', + request_serializer=backend__malloc__pb2.UpdateMallocVolumeRequest.SerializeToString, + response_deserializer=backend__malloc__pb2.MallocVolume.FromString, + ) + self.ListMallocVolumes = channel.unary_unary( + '/opi_api.storage.v1.MallocVolumeService/ListMallocVolumes', + request_serializer=backend__malloc__pb2.ListMallocVolumesRequest.SerializeToString, + response_deserializer=backend__malloc__pb2.ListMallocVolumesResponse.FromString, + ) + self.GetMallocVolume = channel.unary_unary( + '/opi_api.storage.v1.MallocVolumeService/GetMallocVolume', + request_serializer=backend__malloc__pb2.GetMallocVolumeRequest.SerializeToString, + response_deserializer=backend__malloc__pb2.MallocVolume.FromString, + ) + self.StatsMallocVolume = channel.unary_unary( + '/opi_api.storage.v1.MallocVolumeService/StatsMallocVolume', + request_serializer=backend__malloc__pb2.StatsMallocVolumeRequest.SerializeToString, + response_deserializer=backend__malloc__pb2.StatsMallocVolumeResponse.FromString, + ) + + +class MallocVolumeServiceServicer(object): + """Back End Malloc Volume APIs. This is debug interface for malloc block devices. + """ + + def CreateMallocVolume(self, request, context): + """Create a Malloc Volume + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteMallocVolume(self, request, context): + """Delete a Malloc Volume + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateMallocVolume(self, request, context): + """Update a Malloc Volume + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListMallocVolumes(self, request, context): + """List Malloc Volumes + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetMallocVolume(self, request, context): + """Get a Malloc Volume + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatsMallocVolume(self, request, context): + """Get a Malloc Volume statistics + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MallocVolumeServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateMallocVolume': grpc.unary_unary_rpc_method_handler( + servicer.CreateMallocVolume, + request_deserializer=backend__malloc__pb2.CreateMallocVolumeRequest.FromString, + response_serializer=backend__malloc__pb2.MallocVolume.SerializeToString, + ), + 'DeleteMallocVolume': grpc.unary_unary_rpc_method_handler( + servicer.DeleteMallocVolume, + request_deserializer=backend__malloc__pb2.DeleteMallocVolumeRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'UpdateMallocVolume': grpc.unary_unary_rpc_method_handler( + servicer.UpdateMallocVolume, + request_deserializer=backend__malloc__pb2.UpdateMallocVolumeRequest.FromString, + response_serializer=backend__malloc__pb2.MallocVolume.SerializeToString, + ), + 'ListMallocVolumes': grpc.unary_unary_rpc_method_handler( + servicer.ListMallocVolumes, + request_deserializer=backend__malloc__pb2.ListMallocVolumesRequest.FromString, + response_serializer=backend__malloc__pb2.ListMallocVolumesResponse.SerializeToString, + ), + 'GetMallocVolume': grpc.unary_unary_rpc_method_handler( + servicer.GetMallocVolume, + request_deserializer=backend__malloc__pb2.GetMallocVolumeRequest.FromString, + response_serializer=backend__malloc__pb2.MallocVolume.SerializeToString, + ), + 'StatsMallocVolume': grpc.unary_unary_rpc_method_handler( + servicer.StatsMallocVolume, + request_deserializer=backend__malloc__pb2.StatsMallocVolumeRequest.FromString, + response_serializer=backend__malloc__pb2.StatsMallocVolumeResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'opi_api.storage.v1.MallocVolumeService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class MallocVolumeService(object): + """Back End Malloc Volume APIs. This is debug interface for malloc block devices. + """ + + @staticmethod + def CreateMallocVolume(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MallocVolumeService/CreateMallocVolume', + backend__malloc__pb2.CreateMallocVolumeRequest.SerializeToString, + backend__malloc__pb2.MallocVolume.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteMallocVolume(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MallocVolumeService/DeleteMallocVolume', + backend__malloc__pb2.DeleteMallocVolumeRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateMallocVolume(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MallocVolumeService/UpdateMallocVolume', + backend__malloc__pb2.UpdateMallocVolumeRequest.SerializeToString, + backend__malloc__pb2.MallocVolume.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListMallocVolumes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MallocVolumeService/ListMallocVolumes', + backend__malloc__pb2.ListMallocVolumesRequest.SerializeToString, + backend__malloc__pb2.ListMallocVolumesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetMallocVolume(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MallocVolumeService/GetMallocVolume', + backend__malloc__pb2.GetMallocVolumeRequest.SerializeToString, + backend__malloc__pb2.MallocVolume.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatsMallocVolume(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MallocVolumeService/StatsMallocVolume', + backend__malloc__pb2.StatsMallocVolumeRequest.SerializeToString, + backend__malloc__pb2.StatsMallocVolumeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/pydpu/proto/v1/component_pb2.py b/pydpu/proto/v1/component_pb2.py new file mode 100644 index 0000000..43cfc4d --- /dev/null +++ b/pydpu/proto/v1/component_pb2.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: component.proto +# Protobuf Python Version: 4.25.2 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0f\x63omponent.proto\x12 opi_api.network.evpn_gw.v1alpha1\x1a\x1fgoogle/api/field_behavior.proto\"\x91\x01\n\tComponent\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03R\x04name\x12J\n\x06status\x18\x02 \x01(\x0e\x32,.opi_api.network.evpn_gw.v1alpha1.CompStatusB\x04\xe2\x41\x01\x03R\x06status\x12\x1e\n\x07\x64\x65tails\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03R\x07\x64\x65tails*r\n\nCompStatus\x12\x1b\n\x17\x43OMP_STATUS_UNSPECIFIED\x10\x00\x12\x17\n\x13\x43OMP_STATUS_PENDING\x10\x01\x12\x17\n\x13\x43OMP_STATUS_SUCCESS\x10\x02\x12\x15\n\x11\x43OMP_STATUS_ERROR\x10\x03\x42s\n opi_api.network.evpn_gw.v1alpha1B\x0e\x43omponentProtoP\x01Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/gob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n opi_api.network.evpn_gw.v1alpha1B\016ComponentProtoP\001Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/go' + _globals['_COMPONENT'].fields_by_name['name']._options = None + _globals['_COMPONENT'].fields_by_name['name']._serialized_options = b'\342A\001\003' + _globals['_COMPONENT'].fields_by_name['status']._options = None + _globals['_COMPONENT'].fields_by_name['status']._serialized_options = b'\342A\001\003' + _globals['_COMPONENT'].fields_by_name['details']._options = None + _globals['_COMPONENT'].fields_by_name['details']._serialized_options = b'\342A\001\003' + _globals['_COMPSTATUS']._serialized_start=234 + _globals['_COMPSTATUS']._serialized_end=348 + _globals['_COMPONENT']._serialized_start=87 + _globals['_COMPONENT']._serialized_end=232 +# @@protoc_insertion_point(module_scope) diff --git a/pydpu/proto/v1/component_pb2_grpc.py b/pydpu/proto/v1/component_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/pydpu/proto/v1/component_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/pydpu/proto/v1/l2_xpu_infra_mgr_pb2.py b/pydpu/proto/v1/l2_xpu_infra_mgr_pb2.py index 3a2c0de..a8f408e 100644 --- a/pydpu/proto/v1/l2_xpu_infra_mgr_pb2.py +++ b/pydpu/proto/v1/l2_xpu_infra_mgr_pb2.py @@ -13,6 +13,7 @@ import networktypes_pb2 as networktypes__pb2 +import component_pb2 as component__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.api import client_pb2 as google_dot_api_dot_client__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 @@ -21,7 +22,7 @@ from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16l2_xpu_infra_mgr.proto\x12 opi_api.network.evpn_gw.v1alpha1\x1a\x12networktypes.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x19google/api/resource.proto\"\xc2\x02\n\rLogicalBridge\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12M\n\x04spec\x18\x02 \x01(\x0b\x32\x33.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpecB\x04\xe2\x41\x01\x02R\x04spec\x12S\n\x06status\x18\x03 \x01(\x0b\x32\x35.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatusB\x04\xe2\x41\x01\x03R\x06status:s\xea\x41p\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge\x12\x1flogicalBridges/{logical_bridge}*\x0elogicalBridges2\rlogicalBridge\"\xb4\x01\n\x11LogicalBridgeSpec\x12\x1d\n\x07vlan_id\x18\x01 \x01(\rB\x04\xe2\x41\x01\x02R\x06vlanId\x12\x1b\n\x03vni\x18\x02 \x01(\rB\x04\xe2\x41\x01\x01H\x00R\x03vni\x88\x01\x01\x12[\n\x0evtep_ip_prefix\x18\x03 \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x04\xe2\x41\x01\x01R\x0cvtepIpPrefixB\x06\n\x04_vni\"l\n\x13LogicalBridgeStatus\x12U\n\x0boper_status\x18\x01 \x01(\x0e\x32..opi_api.network.evpn_gw.v1alpha1.LBOperStatusB\x04\xe2\x41\x01\x03R\noperStatus\"\xac\x01\n\x1a\x43reateLogicalBridgeRequest\x12\x30\n\x11logical_bridge_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01R\x0flogicalBridgeId\x12\\\n\x0elogical_bridge\x18\x02 \x01(\x0b\x32/.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeB\x04\xe2\x41\x01\x02R\rlogicalBridge\"c\n\x19ListLogicalBridgesRequest\x12!\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"\x9e\x01\n\x1aListLogicalBridgesResponse\x12X\n\x0flogical_bridges\x18\x01 \x03(\x0b\x32/.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeR\x0elogicalBridges\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"f\n\x17GetLogicalBridgeRequest\x12K\n\x04name\x18\x01 \x01(\tB7\xe2\x41\x01\x02\xfa\x41\x30\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridgeR\x04name\"\x94\x01\n\x1a\x44\x65leteLogicalBridgeRequest\x12K\n\x04name\x18\x01 \x01(\tB7\xe2\x41\x01\x02\xfa\x41\x30\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridgeR\x04name\x12)\n\rallow_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xe8\x01\n\x1aUpdateLogicalBridgeRequest\x12\\\n\x0elogical_bridge\x18\x01 \x01(\x0b\x32/.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeB\x04\xe2\x41\x01\x02R\rlogicalBridge\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xaa\x02\n\nBridgePort\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12J\n\x04spec\x18\x02 \x01(\x0b\x32\x30.opi_api.network.evpn_gw.v1alpha1.BridgePortSpecB\x04\xe2\x41\x01\x02R\x04spec\x12P\n\x06status\x18\x03 \x01(\x0b\x32\x32.opi_api.network.evpn_gw.v1alpha1.BridgePortStatusB\x04\xe2\x41\x01\x03R\x06status:d\xea\x41\x61\n+opi_api.network.evpn_gw.v1alpha1/BridgePort\x12\x19\x62ridgePorts/{bridge_port}*\x0b\x62ridgePorts2\nbridgePort\"\xb4\x01\n\x0e\x42ridgePortSpec\x12%\n\x0bmac_address\x18\x01 \x01(\x0c\x42\x04\xe2\x41\x01\x02R\nmacAddress\x12L\n\x05ptype\x18\x02 \x01(\x0e\x32\x30.opi_api.network.evpn_gw.v1alpha1.BridgePortTypeB\x04\xe2\x41\x01\x02R\x05ptype\x12-\n\x0flogical_bridges\x18\x03 \x03(\tB\x04\xe2\x41\x01\x01R\x0elogicalBridges\"i\n\x10\x42ridgePortStatus\x12U\n\x0boper_status\x18\x01 \x01(\x0e\x32..opi_api.network.evpn_gw.v1alpha1.BPOperStatusB\x04\xe2\x41\x01\x03R\noperStatus\"\x9a\x01\n\x17\x43reateBridgePortRequest\x12*\n\x0e\x62ridge_port_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01R\x0c\x62ridgePortId\x12S\n\x0b\x62ridge_port\x18\x02 \x01(\x0b\x32,.opi_api.network.evpn_gw.v1alpha1.BridgePortB\x04\xe2\x41\x01\x02R\nbridgePort\"`\n\x16ListBridgePortsRequest\x12!\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"\x92\x01\n\x17ListBridgePortsResponse\x12O\n\x0c\x62ridge_ports\x18\x01 \x03(\x0b\x32,.opi_api.network.evpn_gw.v1alpha1.BridgePortR\x0b\x62ridgePorts\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"`\n\x14GetBridgePortRequest\x12H\n\x04name\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+opi_api.network.evpn_gw.v1alpha1/BridgePortR\x04name\"\x8e\x01\n\x17\x44\x65leteBridgePortRequest\x12H\n\x04name\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+opi_api.network.evpn_gw.v1alpha1/BridgePortR\x04name\x12)\n\rallow_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xdc\x01\n\x17UpdateBridgePortRequest\x12S\n\x0b\x62ridge_port\x18\x01 \x01(\x0b\x32,.opi_api.network.evpn_gw.v1alpha1.BridgePortB\x04\xe2\x41\x01\x02R\nbridgePort\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing*^\n\x0cLBOperStatus\x12\x1e\n\x1aLB_OPER_STATUS_UNSPECIFIED\x10\x00\x12\x15\n\x11LB_OPER_STATUS_UP\x10\x01\x12\x17\n\x13LB_OPER_STATUS_DOWN\x10\x02*^\n\x0c\x42POperStatus\x12\x1e\n\x1a\x42P_OPER_STATUS_UNSPECIFIED\x10\x00\x12\x15\n\x11\x42P_OPER_STATUS_UP\x10\x01\x12\x17\n\x13\x42P_OPER_STATUS_DOWN\x10\x02*k\n\x0e\x42ridgePortType\x12 \n\x1c\x42RIDGE_PORT_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x42RIDGE_PORT_TYPE_ACCESS\x10\x01\x12\x1a\n\x16\x42RIDGE_PORT_TYPE_TRUNK\x10\x02\x32\xc9\x07\n\x14LogicalBridgeService\x12\xd3\x01\n\x13\x43reateLogicalBridge\x12<.opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest\x1a/.opi_api.network.evpn_gw.v1alpha1.LogicalBridge\"M\xda\x41 logical_bridge,logical_bridge_id\x82\xd3\xe4\x93\x02$\"\x12/v1/logicalBridges:\x0elogical_bridge\x12\xab\x01\n\x12ListLogicalBridges\x12;.opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest\x1a<.opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/v1/logicalBridges\x12\xaa\x01\n\x10GetLogicalBridge\x12\x39.opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest\x1a/.opi_api.network.evpn_gw.v1alpha1.LogicalBridge\"*\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1d\x12\x1b/v1/{name=logicalBridges/*}\x12\x97\x01\n\x13\x44\x65leteLogicalBridge\x12<.opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest\x1a\x16.google.protobuf.Empty\"*\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1d*\x1b/v1/{name=logicalBridges/*}\x12\xe5\x01\n\x13UpdateLogicalBridge\x12<.opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest\x1a/.opi_api.network.evpn_gw.v1alpha1.LogicalBridge\"_\xda\x41\x1alogical_bridge,update_mask\x82\xd3\xe4\x93\x02<2*/v1/{logical_bridge.name=logicalBridges/*}:\x0elogical_bridge2\xfb\x06\n\x11\x42ridgePortService\x12\xbe\x01\n\x10\x43reateBridgePort\x12\x39.opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest\x1a,.opi_api.network.evpn_gw.v1alpha1.BridgePort\"A\xda\x41\x1a\x62ridge_port,bridge_port_id\x82\xd3\xe4\x93\x02\x1e\"\x0f/v1/bridgePorts:\x0b\x62ridge_port\x12\x9f\x01\n\x0fListBridgePorts\x12\x38.opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest\x1a\x39.opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1/bridgePorts\x12\x9e\x01\n\rGetBridgePort\x12\x36.opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest\x1a,.opi_api.network.evpn_gw.v1alpha1.BridgePort\"\'\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1a\x12\x18/v1/{name=bridgePorts/*}\x12\x8e\x01\n\x10\x44\x65leteBridgePort\x12\x39.opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest\x1a\x16.google.protobuf.Empty\"\'\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1a*\x18/v1/{name=bridgePorts/*}\x12\xd0\x01\n\x10UpdateBridgePort\x12\x39.opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest\x1a,.opi_api.network.evpn_gw.v1alpha1.BridgePort\"S\xda\x41\x17\x62ridge_port,update_mask\x82\xd3\xe4\x93\x02\x33\x32$/v1/{bridge_port.name=bridgePorts/*}:\x0b\x62ridge_portBw\n opi_api.network.evpn_gw.v1alpha1B\x12L2XpuInfraMgrProtoP\x01Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/gob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16l2_xpu_infra_mgr.proto\x12 opi_api.network.evpn_gw.v1alpha1\x1a\x12networktypes.proto\x1a\x0f\x63omponent.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x19google/api/resource.proto\"\xc2\x02\n\rLogicalBridge\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12M\n\x04spec\x18\x02 \x01(\x0b\x32\x33.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpecB\x04\xe2\x41\x01\x02R\x04spec\x12S\n\x06status\x18\x03 \x01(\x0b\x32\x35.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatusB\x04\xe2\x41\x01\x03R\x06status:s\xea\x41p\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge\x12\x1flogicalBridges/{logical_bridge}*\x0elogicalBridges2\rlogicalBridge\"\xb4\x01\n\x11LogicalBridgeSpec\x12\x1d\n\x07vlan_id\x18\x01 \x01(\rB\x04\xe2\x41\x01\x02R\x06vlanId\x12\x1b\n\x03vni\x18\x02 \x01(\rB\x04\xe2\x41\x01\x01H\x00R\x03vni\x88\x01\x01\x12[\n\x0evtep_ip_prefix\x18\x03 \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x04\xe2\x41\x01\x01R\x0cvtepIpPrefixB\x06\n\x04_vni\"\xbf\x01\n\x13LogicalBridgeStatus\x12U\n\x0boper_status\x18\x01 \x01(\x0e\x32..opi_api.network.evpn_gw.v1alpha1.LBOperStatusB\x04\xe2\x41\x01\x03R\noperStatus\x12Q\n\ncomponents\x18\x02 \x03(\x0b\x32+.opi_api.network.evpn_gw.v1alpha1.ComponentB\x04\xe2\x41\x01\x03R\ncomponents\"\xac\x01\n\x1a\x43reateLogicalBridgeRequest\x12\x30\n\x11logical_bridge_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01R\x0flogicalBridgeId\x12\\\n\x0elogical_bridge\x18\x02 \x01(\x0b\x32/.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeB\x04\xe2\x41\x01\x02R\rlogicalBridge\"c\n\x19ListLogicalBridgesRequest\x12!\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"\x9e\x01\n\x1aListLogicalBridgesResponse\x12X\n\x0flogical_bridges\x18\x01 \x03(\x0b\x32/.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeR\x0elogicalBridges\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"f\n\x17GetLogicalBridgeRequest\x12K\n\x04name\x18\x01 \x01(\tB7\xe2\x41\x01\x02\xfa\x41\x30\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridgeR\x04name\"\x94\x01\n\x1a\x44\x65leteLogicalBridgeRequest\x12K\n\x04name\x18\x01 \x01(\tB7\xe2\x41\x01\x02\xfa\x41\x30\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridgeR\x04name\x12)\n\rallow_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xe8\x01\n\x1aUpdateLogicalBridgeRequest\x12\\\n\x0elogical_bridge\x18\x01 \x01(\x0b\x32/.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeB\x04\xe2\x41\x01\x02R\rlogicalBridge\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xaa\x02\n\nBridgePort\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12J\n\x04spec\x18\x02 \x01(\x0b\x32\x30.opi_api.network.evpn_gw.v1alpha1.BridgePortSpecB\x04\xe2\x41\x01\x02R\x04spec\x12P\n\x06status\x18\x03 \x01(\x0b\x32\x32.opi_api.network.evpn_gw.v1alpha1.BridgePortStatusB\x04\xe2\x41\x01\x03R\x06status:d\xea\x41\x61\n+opi_api.network.evpn_gw.v1alpha1/BridgePort\x12\x19\x62ridgePorts/{bridge_port}*\x0b\x62ridgePorts2\nbridgePort\"\xb4\x01\n\x0e\x42ridgePortSpec\x12%\n\x0bmac_address\x18\x01 \x01(\x0c\x42\x04\xe2\x41\x01\x02R\nmacAddress\x12L\n\x05ptype\x18\x02 \x01(\x0e\x32\x30.opi_api.network.evpn_gw.v1alpha1.BridgePortTypeB\x04\xe2\x41\x01\x02R\x05ptype\x12-\n\x0flogical_bridges\x18\x03 \x03(\tB\x04\xe2\x41\x01\x01R\x0elogicalBridges\"\xbc\x01\n\x10\x42ridgePortStatus\x12U\n\x0boper_status\x18\x01 \x01(\x0e\x32..opi_api.network.evpn_gw.v1alpha1.BPOperStatusB\x04\xe2\x41\x01\x03R\noperStatus\x12Q\n\ncomponents\x18\x02 \x03(\x0b\x32+.opi_api.network.evpn_gw.v1alpha1.ComponentB\x04\xe2\x41\x01\x03R\ncomponents\"\x9a\x01\n\x17\x43reateBridgePortRequest\x12*\n\x0e\x62ridge_port_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01R\x0c\x62ridgePortId\x12S\n\x0b\x62ridge_port\x18\x02 \x01(\x0b\x32,.opi_api.network.evpn_gw.v1alpha1.BridgePortB\x04\xe2\x41\x01\x02R\nbridgePort\"`\n\x16ListBridgePortsRequest\x12!\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"\x92\x01\n\x17ListBridgePortsResponse\x12O\n\x0c\x62ridge_ports\x18\x01 \x03(\x0b\x32,.opi_api.network.evpn_gw.v1alpha1.BridgePortR\x0b\x62ridgePorts\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"`\n\x14GetBridgePortRequest\x12H\n\x04name\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+opi_api.network.evpn_gw.v1alpha1/BridgePortR\x04name\"\x8e\x01\n\x17\x44\x65leteBridgePortRequest\x12H\n\x04name\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+opi_api.network.evpn_gw.v1alpha1/BridgePortR\x04name\x12)\n\rallow_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xdc\x01\n\x17UpdateBridgePortRequest\x12S\n\x0b\x62ridge_port\x18\x01 \x01(\x0b\x32,.opi_api.network.evpn_gw.v1alpha1.BridgePortB\x04\xe2\x41\x01\x02R\nbridgePort\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing*\x80\x01\n\x0cLBOperStatus\x12\x1e\n\x1aLB_OPER_STATUS_UNSPECIFIED\x10\x00\x12\x15\n\x11LB_OPER_STATUS_UP\x10\x01\x12\x17\n\x13LB_OPER_STATUS_DOWN\x10\x02\x12 \n\x1cLB_OPER_STATUS_TO_BE_DELETED\x10\x03*\x80\x01\n\x0c\x42POperStatus\x12\x1e\n\x1a\x42P_OPER_STATUS_UNSPECIFIED\x10\x00\x12\x15\n\x11\x42P_OPER_STATUS_UP\x10\x01\x12\x17\n\x13\x42P_OPER_STATUS_DOWN\x10\x02\x12 \n\x1c\x42P_OPER_STATUS_TO_BE_DELETED\x10\x03*k\n\x0e\x42ridgePortType\x12 \n\x1c\x42RIDGE_PORT_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x42RIDGE_PORT_TYPE_ACCESS\x10\x01\x12\x1a\n\x16\x42RIDGE_PORT_TYPE_TRUNK\x10\x02\x32\xc9\x07\n\x14LogicalBridgeService\x12\xd3\x01\n\x13\x43reateLogicalBridge\x12<.opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest\x1a/.opi_api.network.evpn_gw.v1alpha1.LogicalBridge\"M\xda\x41 logical_bridge,logical_bridge_id\x82\xd3\xe4\x93\x02$\"\x12/v1/logicalBridges:\x0elogical_bridge\x12\xab\x01\n\x12ListLogicalBridges\x12;.opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest\x1a<.opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/v1/logicalBridges\x12\xaa\x01\n\x10GetLogicalBridge\x12\x39.opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest\x1a/.opi_api.network.evpn_gw.v1alpha1.LogicalBridge\"*\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1d\x12\x1b/v1/{name=logicalBridges/*}\x12\x97\x01\n\x13\x44\x65leteLogicalBridge\x12<.opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest\x1a\x16.google.protobuf.Empty\"*\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1d*\x1b/v1/{name=logicalBridges/*}\x12\xe5\x01\n\x13UpdateLogicalBridge\x12<.opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest\x1a/.opi_api.network.evpn_gw.v1alpha1.LogicalBridge\"_\xda\x41\x1alogical_bridge,update_mask\x82\xd3\xe4\x93\x02<2*/v1/{logical_bridge.name=logicalBridges/*}:\x0elogical_bridge2\xfb\x06\n\x11\x42ridgePortService\x12\xbe\x01\n\x10\x43reateBridgePort\x12\x39.opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest\x1a,.opi_api.network.evpn_gw.v1alpha1.BridgePort\"A\xda\x41\x1a\x62ridge_port,bridge_port_id\x82\xd3\xe4\x93\x02\x1e\"\x0f/v1/bridgePorts:\x0b\x62ridge_port\x12\x9f\x01\n\x0fListBridgePorts\x12\x38.opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest\x1a\x39.opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1/bridgePorts\x12\x9e\x01\n\rGetBridgePort\x12\x36.opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest\x1a,.opi_api.network.evpn_gw.v1alpha1.BridgePort\"\'\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1a\x12\x18/v1/{name=bridgePorts/*}\x12\x8e\x01\n\x10\x44\x65leteBridgePort\x12\x39.opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest\x1a\x16.google.protobuf.Empty\"\'\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1a*\x18/v1/{name=bridgePorts/*}\x12\xd0\x01\n\x10UpdateBridgePort\x12\x39.opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest\x1a,.opi_api.network.evpn_gw.v1alpha1.BridgePort\"S\xda\x41\x17\x62ridge_port,update_mask\x82\xd3\xe4\x93\x02\x33\x32$/v1/{bridge_port.name=bridgePorts/*}:\x0b\x62ridge_portBw\n opi_api.network.evpn_gw.v1alpha1B\x12L2XpuInfraMgrProtoP\x01Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/gob\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -45,6 +46,8 @@ _globals['_LOGICALBRIDGESPEC'].fields_by_name['vtep_ip_prefix']._serialized_options = b'\342A\001\001' _globals['_LOGICALBRIDGESTATUS'].fields_by_name['oper_status']._options = None _globals['_LOGICALBRIDGESTATUS'].fields_by_name['oper_status']._serialized_options = b'\342A\001\003' + _globals['_LOGICALBRIDGESTATUS'].fields_by_name['components']._options = None + _globals['_LOGICALBRIDGESTATUS'].fields_by_name['components']._serialized_options = b'\342A\001\003' _globals['_CREATELOGICALBRIDGEREQUEST'].fields_by_name['logical_bridge_id']._options = None _globals['_CREATELOGICALBRIDGEREQUEST'].fields_by_name['logical_bridge_id']._serialized_options = b'\342A\001\001' _globals['_CREATELOGICALBRIDGEREQUEST'].fields_by_name['logical_bridge']._options = None @@ -81,6 +84,8 @@ _globals['_BRIDGEPORTSPEC'].fields_by_name['logical_bridges']._serialized_options = b'\342A\001\001' _globals['_BRIDGEPORTSTATUS'].fields_by_name['oper_status']._options = None _globals['_BRIDGEPORTSTATUS'].fields_by_name['oper_status']._serialized_options = b'\342A\001\003' + _globals['_BRIDGEPORTSTATUS'].fields_by_name['components']._options = None + _globals['_BRIDGEPORTSTATUS'].fields_by_name['components']._serialized_options = b'\342A\001\003' _globals['_CREATEBRIDGEPORTREQUEST'].fields_by_name['bridge_port_id']._options = None _globals['_CREATEBRIDGEPORTREQUEST'].fields_by_name['bridge_port_id']._serialized_options = b'\342A\001\001' _globals['_CREATEBRIDGEPORTREQUEST'].fields_by_name['bridge_port']._options = None @@ -121,50 +126,50 @@ _globals['_BRIDGEPORTSERVICE'].methods_by_name['DeleteBridgePort']._serialized_options = b'\332A\004name\202\323\344\223\002\032*\030/v1/{name=bridgePorts/*}' _globals['_BRIDGEPORTSERVICE'].methods_by_name['UpdateBridgePort']._options = None _globals['_BRIDGEPORTSERVICE'].methods_by_name['UpdateBridgePort']._serialized_options = b'\332A\027bridge_port,update_mask\202\323\344\223\00232$/v1/{bridge_port.name=bridgePorts/*}:\013bridge_port' - _globals['_LBOPERSTATUS']._serialized_start=3264 - _globals['_LBOPERSTATUS']._serialized_end=3358 - _globals['_BPOPERSTATUS']._serialized_start=3360 - _globals['_BPOPERSTATUS']._serialized_end=3454 - _globals['_BRIDGEPORTTYPE']._serialized_start=3456 - _globals['_BRIDGEPORTTYPE']._serialized_end=3563 - _globals['_LOGICALBRIDGE']._serialized_start=259 - _globals['_LOGICALBRIDGE']._serialized_end=581 - _globals['_LOGICALBRIDGESPEC']._serialized_start=584 - _globals['_LOGICALBRIDGESPEC']._serialized_end=764 - _globals['_LOGICALBRIDGESTATUS']._serialized_start=766 - _globals['_LOGICALBRIDGESTATUS']._serialized_end=874 - _globals['_CREATELOGICALBRIDGEREQUEST']._serialized_start=877 - _globals['_CREATELOGICALBRIDGEREQUEST']._serialized_end=1049 - _globals['_LISTLOGICALBRIDGESREQUEST']._serialized_start=1051 - _globals['_LISTLOGICALBRIDGESREQUEST']._serialized_end=1150 - _globals['_LISTLOGICALBRIDGESRESPONSE']._serialized_start=1153 - _globals['_LISTLOGICALBRIDGESRESPONSE']._serialized_end=1311 - _globals['_GETLOGICALBRIDGEREQUEST']._serialized_start=1313 - _globals['_GETLOGICALBRIDGEREQUEST']._serialized_end=1415 - _globals['_DELETELOGICALBRIDGEREQUEST']._serialized_start=1418 - _globals['_DELETELOGICALBRIDGEREQUEST']._serialized_end=1566 - _globals['_UPDATELOGICALBRIDGEREQUEST']._serialized_start=1569 - _globals['_UPDATELOGICALBRIDGEREQUEST']._serialized_end=1801 - _globals['_BRIDGEPORT']._serialized_start=1804 - _globals['_BRIDGEPORT']._serialized_end=2102 - _globals['_BRIDGEPORTSPEC']._serialized_start=2105 - _globals['_BRIDGEPORTSPEC']._serialized_end=2285 - _globals['_BRIDGEPORTSTATUS']._serialized_start=2287 - _globals['_BRIDGEPORTSTATUS']._serialized_end=2392 - _globals['_CREATEBRIDGEPORTREQUEST']._serialized_start=2395 - _globals['_CREATEBRIDGEPORTREQUEST']._serialized_end=2549 - _globals['_LISTBRIDGEPORTSREQUEST']._serialized_start=2551 - _globals['_LISTBRIDGEPORTSREQUEST']._serialized_end=2647 - _globals['_LISTBRIDGEPORTSRESPONSE']._serialized_start=2650 - _globals['_LISTBRIDGEPORTSRESPONSE']._serialized_end=2796 - _globals['_GETBRIDGEPORTREQUEST']._serialized_start=2798 - _globals['_GETBRIDGEPORTREQUEST']._serialized_end=2894 - _globals['_DELETEBRIDGEPORTREQUEST']._serialized_start=2897 - _globals['_DELETEBRIDGEPORTREQUEST']._serialized_end=3039 - _globals['_UPDATEBRIDGEPORTREQUEST']._serialized_start=3042 - _globals['_UPDATEBRIDGEPORTREQUEST']._serialized_end=3262 - _globals['_LOGICALBRIDGESERVICE']._serialized_start=3566 - _globals['_LOGICALBRIDGESERVICE']._serialized_end=4535 - _globals['_BRIDGEPORTSERVICE']._serialized_start=4538 - _globals['_BRIDGEPORTSERVICE']._serialized_end=5429 + _globals['_LBOPERSTATUS']._serialized_start=3450 + _globals['_LBOPERSTATUS']._serialized_end=3578 + _globals['_BPOPERSTATUS']._serialized_start=3581 + _globals['_BPOPERSTATUS']._serialized_end=3709 + _globals['_BRIDGEPORTTYPE']._serialized_start=3711 + _globals['_BRIDGEPORTTYPE']._serialized_end=3818 + _globals['_LOGICALBRIDGE']._serialized_start=276 + _globals['_LOGICALBRIDGE']._serialized_end=598 + _globals['_LOGICALBRIDGESPEC']._serialized_start=601 + _globals['_LOGICALBRIDGESPEC']._serialized_end=781 + _globals['_LOGICALBRIDGESTATUS']._serialized_start=784 + _globals['_LOGICALBRIDGESTATUS']._serialized_end=975 + _globals['_CREATELOGICALBRIDGEREQUEST']._serialized_start=978 + _globals['_CREATELOGICALBRIDGEREQUEST']._serialized_end=1150 + _globals['_LISTLOGICALBRIDGESREQUEST']._serialized_start=1152 + _globals['_LISTLOGICALBRIDGESREQUEST']._serialized_end=1251 + _globals['_LISTLOGICALBRIDGESRESPONSE']._serialized_start=1254 + _globals['_LISTLOGICALBRIDGESRESPONSE']._serialized_end=1412 + _globals['_GETLOGICALBRIDGEREQUEST']._serialized_start=1414 + _globals['_GETLOGICALBRIDGEREQUEST']._serialized_end=1516 + _globals['_DELETELOGICALBRIDGEREQUEST']._serialized_start=1519 + _globals['_DELETELOGICALBRIDGEREQUEST']._serialized_end=1667 + _globals['_UPDATELOGICALBRIDGEREQUEST']._serialized_start=1670 + _globals['_UPDATELOGICALBRIDGEREQUEST']._serialized_end=1902 + _globals['_BRIDGEPORT']._serialized_start=1905 + _globals['_BRIDGEPORT']._serialized_end=2203 + _globals['_BRIDGEPORTSPEC']._serialized_start=2206 + _globals['_BRIDGEPORTSPEC']._serialized_end=2386 + _globals['_BRIDGEPORTSTATUS']._serialized_start=2389 + _globals['_BRIDGEPORTSTATUS']._serialized_end=2577 + _globals['_CREATEBRIDGEPORTREQUEST']._serialized_start=2580 + _globals['_CREATEBRIDGEPORTREQUEST']._serialized_end=2734 + _globals['_LISTBRIDGEPORTSREQUEST']._serialized_start=2736 + _globals['_LISTBRIDGEPORTSREQUEST']._serialized_end=2832 + _globals['_LISTBRIDGEPORTSRESPONSE']._serialized_start=2835 + _globals['_LISTBRIDGEPORTSRESPONSE']._serialized_end=2981 + _globals['_GETBRIDGEPORTREQUEST']._serialized_start=2983 + _globals['_GETBRIDGEPORTREQUEST']._serialized_end=3079 + _globals['_DELETEBRIDGEPORTREQUEST']._serialized_start=3082 + _globals['_DELETEBRIDGEPORTREQUEST']._serialized_end=3224 + _globals['_UPDATEBRIDGEPORTREQUEST']._serialized_start=3227 + _globals['_UPDATEBRIDGEPORTREQUEST']._serialized_end=3447 + _globals['_LOGICALBRIDGESERVICE']._serialized_start=3821 + _globals['_LOGICALBRIDGESERVICE']._serialized_end=4790 + _globals['_BRIDGEPORTSERVICE']._serialized_start=4793 + _globals['_BRIDGEPORTSERVICE']._serialized_end=5684 # @@protoc_insertion_point(module_scope) diff --git a/pydpu/proto/v1/l3_xpu_infra_mgr_pb2.py b/pydpu/proto/v1/l3_xpu_infra_mgr_pb2.py index 9e7a25f..b3e74d1 100644 --- a/pydpu/proto/v1/l3_xpu_infra_mgr_pb2.py +++ b/pydpu/proto/v1/l3_xpu_infra_mgr_pb2.py @@ -13,6 +13,7 @@ import networktypes_pb2 as networktypes__pb2 +import component_pb2 as component__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.api import client_pb2 as google_dot_api_dot_client__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 @@ -21,7 +22,7 @@ from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16l3_xpu_infra_mgr.proto\x12 opi_api.network.evpn_gw.v1alpha1\x1a\x12networktypes.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x19google/api/resource.proto\"\xf1\x01\n\x03Vrf\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12\x43\n\x04spec\x18\x02 \x01(\x0b\x32).opi_api.network.evpn_gw.v1alpha1.VrfSpecB\x04\xe2\x41\x01\x02R\x04spec\x12I\n\x06status\x18\x03 \x01(\x0b\x32+.opi_api.network.evpn_gw.v1alpha1.VrfStatusB\x04\xe2\x41\x01\x03R\x06status:@\xea\x41=\n$opi_api.network.evpn_gw.v1alpha1/Vrf\x12\nvrfs/{vrf}*\x04vrfs2\x03vrf\"\xf0\x01\n\x07VrfSpec\x12\x1b\n\x03vni\x18\x01 \x01(\rB\x04\xe2\x41\x01\x01H\x00R\x03vni\x88\x01\x01\x12\x63\n\x12loopback_ip_prefix\x18\x02 \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x04\xe2\x41\x01\x02R\x10loopbackIpPrefix\x12[\n\x0evtep_ip_prefix\x18\x03 \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x04\xe2\x41\x01\x01R\x0cvtepIpPrefixB\x06\n\x04_vni\"\xd8\x02\n\tVrfStatus\x12)\n\rrouting_table\x18\x01 \x01(\rB\x04\xe2\x41\x01\x03R\x0croutingTable\x12\x1f\n\x08local_as\x18\x02 \x01(\rB\x04\xe2\x41\x01\x03R\x07localAs\x12\x14\n\x02rd\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03R\x02rd\x12\x18\n\x04rmac\x18\x04 \x01(\x0c\x42\x04\xe2\x41\x01\x03R\x04rmac\x12#\n\nimport_rts\x18\x05 \x03(\tB\x04\xe2\x41\x01\x03R\timportRts\x12#\n\nexport_rts\x18\x06 \x03(\tB\x04\xe2\x41\x01\x03R\texportRts\x12-\n\x0flogical_bridges\x18\x07 \x03(\tB\x04\xe2\x41\x01\x03R\x0elogicalBridges\x12V\n\x0boper_status\x18\x08 \x01(\x0e\x32/.opi_api.network.evpn_gw.v1alpha1.VRFOperStatusB\x04\xe2\x41\x01\x03R\noperStatus\"n\n\x10\x43reateVrfRequest\x12\x1b\n\x06vrf_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01R\x05vrfId\x12=\n\x03vrf\x18\x02 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.VrfB\x04\xe2\x41\x01\x02R\x03vrf\"Y\n\x0fListVrfsRequest\x12!\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"u\n\x10ListVrfsResponse\x12\x39\n\x04vrfs\x18\x01 \x03(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.VrfR\x04vrfs\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"R\n\rGetVrfRequest\x12\x41\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/VrfR\x04name\"\x80\x01\n\x10\x44\x65leteVrfRequest\x12\x41\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/VrfR\x04name\x12)\n\rallow_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xbf\x01\n\x10UpdateVrfRequest\x12=\n\x03vrf\x18\x01 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.VrfB\x04\xe2\x41\x01\x02R\x03vrf\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xf1\x01\n\x03Svi\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12\x43\n\x04spec\x18\x02 \x01(\x0b\x32).opi_api.network.evpn_gw.v1alpha1.SviSpecB\x04\xe2\x41\x01\x02R\x04spec\x12I\n\x06status\x18\x03 \x01(\x0b\x32+.opi_api.network.evpn_gw.v1alpha1.SviStatusB\x04\xe2\x41\x01\x03R\x06status:@\xea\x41=\n$opi_api.network.evpn_gw.v1alpha1/Svi\x12\nsvis/{svi}*\x04svis2\x03svi\"\xf2\x02\n\x07SviSpec\x12?\n\x03vrf\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/VrfR\x03vrf\x12^\n\x0elogical_bridge\x18\x02 \x01(\tB7\xe2\x41\x01\x02\xfa\x41\x30\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridgeR\rlogicalBridge\x12%\n\x0bmac_address\x18\x03 \x01(\x0c\x42\x04\xe2\x41\x01\x02R\nmacAddress\x12W\n\x0cgw_ip_prefix\x18\x04 \x03(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x04\xe2\x41\x01\x02R\ngwIpPrefix\x12#\n\nenable_bgp\x18\x05 \x01(\x08\x42\x04\xe2\x41\x01\x01R\tenableBgp\x12!\n\tremote_as\x18\x06 \x01(\rB\x04\xe2\x41\x01\x01R\x08remoteAs\"c\n\tSviStatus\x12V\n\x0boper_status\x18\x01 \x01(\x0e\x32/.opi_api.network.evpn_gw.v1alpha1.SVIOperStatusB\x04\xe2\x41\x01\x03R\noperStatus\"n\n\x10\x43reateSviRequest\x12\x1b\n\x06svi_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01R\x05sviId\x12=\n\x03svi\x18\x02 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.SviB\x04\xe2\x41\x01\x02R\x03svi\"Y\n\x0fListSvisRequest\x12!\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"u\n\x10ListSvisResponse\x12\x39\n\x04svis\x18\x01 \x03(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.SviR\x04svis\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"R\n\rGetSviRequest\x12\x41\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/SviR\x04name\"\x80\x01\n\x10\x44\x65leteSviRequest\x12\x41\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/SviR\x04name\x12)\n\rallow_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xbf\x01\n\x10UpdateSviRequest\x12=\n\x03svi\x18\x01 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.SviB\x04\xe2\x41\x01\x02R\x03svi\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing*b\n\rVRFOperStatus\x12\x1f\n\x1bVRF_OPER_STATUS_UNSPECIFIED\x10\x00\x12\x16\n\x12VRF_OPER_STATUS_UP\x10\x01\x12\x18\n\x14VRF_OPER_STATUS_DOWN\x10\x02*b\n\rSVIOperStatus\x12\x1f\n\x1bSVI_OPER_STATUS_UNSPECIFIED\x10\x00\x12\x16\n\x12SVI_OPER_STATUS_UP\x10\x01\x12\x18\n\x14SVI_OPER_STATUS_DOWN\x10\x02\x32\xbe\x05\n\nVrfService\x12\x8a\x01\n\tCreateVrf\x12\x32.opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Vrf\"\"\xda\x41\nvrf,vrf_id\x82\xd3\xe4\x93\x02\x0f\"\x08/v1/vrfs:\x03vrf\x12\x83\x01\n\x08ListVrfs\x12\x31.opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest\x1a\x32.opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse\"\x10\x82\xd3\xe4\x93\x02\n\x12\x08/v1/vrfs\x12\x82\x01\n\x06GetVrf\x12/.opi_api.network.evpn_gw.v1alpha1.GetVrfRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Vrf\" \xda\x41\x04name\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/{name=vrfs/*}\x12y\n\tDeleteVrf\x12\x32.opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest\x1a\x16.google.protobuf.Empty\" \xda\x41\x04name\x82\xd3\xe4\x93\x02\x13*\x11/v1/{name=vrfs/*}\x12\x9c\x01\n\tUpdateVrf\x12\x32.opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Vrf\"4\xda\x41\x0fvrf,update_mask\x82\xd3\xe4\x93\x02\x1c\x32\x15/v1/{vrf.name=vrfs/*}:\x03vrf2\xbe\x05\n\nSviService\x12\x8a\x01\n\tCreateSvi\x12\x32.opi_api.network.evpn_gw.v1alpha1.CreateSviRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Svi\"\"\xda\x41\nsvi,svi_id\x82\xd3\xe4\x93\x02\x0f\"\x08/v1/svis:\x03svi\x12\x83\x01\n\x08ListSvis\x12\x31.opi_api.network.evpn_gw.v1alpha1.ListSvisRequest\x1a\x32.opi_api.network.evpn_gw.v1alpha1.ListSvisResponse\"\x10\x82\xd3\xe4\x93\x02\n\x12\x08/v1/svis\x12\x82\x01\n\x06GetSvi\x12/.opi_api.network.evpn_gw.v1alpha1.GetSviRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Svi\" \xda\x41\x04name\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/{name=svis/*}\x12y\n\tDeleteSvi\x12\x32.opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest\x1a\x16.google.protobuf.Empty\" \xda\x41\x04name\x82\xd3\xe4\x93\x02\x13*\x11/v1/{name=svis/*}\x12\x9c\x01\n\tUpdateSvi\x12\x32.opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Svi\"4\xda\x41\x0fsvi,update_mask\x82\xd3\xe4\x93\x02\x1c\x32\x15/v1/{svi.name=svis/*}:\x03sviBw\n opi_api.network.evpn_gw.v1alpha1B\x12L3XpuInfraMgrProtoP\x01Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/gob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16l3_xpu_infra_mgr.proto\x12 opi_api.network.evpn_gw.v1alpha1\x1a\x12networktypes.proto\x1a\x0f\x63omponent.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x19google/api/resource.proto\"\xf1\x01\n\x03Vrf\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12\x43\n\x04spec\x18\x02 \x01(\x0b\x32).opi_api.network.evpn_gw.v1alpha1.VrfSpecB\x04\xe2\x41\x01\x02R\x04spec\x12I\n\x06status\x18\x03 \x01(\x0b\x32+.opi_api.network.evpn_gw.v1alpha1.VrfStatusB\x04\xe2\x41\x01\x03R\x06status:@\xea\x41=\n$opi_api.network.evpn_gw.v1alpha1/Vrf\x12\nvrfs/{vrf}*\x04vrfs2\x03vrf\"\xf0\x01\n\x07VrfSpec\x12\x1b\n\x03vni\x18\x01 \x01(\rB\x04\xe2\x41\x01\x01H\x00R\x03vni\x88\x01\x01\x12\x63\n\x12loopback_ip_prefix\x18\x02 \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x04\xe2\x41\x01\x02R\x10loopbackIpPrefix\x12[\n\x0evtep_ip_prefix\x18\x03 \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x04\xe2\x41\x01\x01R\x0cvtepIpPrefixB\x06\n\x04_vni\"\xb6\x01\n\tVrfStatus\x12V\n\x0boper_status\x18\x08 \x01(\x0e\x32/.opi_api.network.evpn_gw.v1alpha1.VRFOperStatusB\x04\xe2\x41\x01\x03R\noperStatus\x12Q\n\ncomponents\x18\t \x03(\x0b\x32+.opi_api.network.evpn_gw.v1alpha1.ComponentB\x04\xe2\x41\x01\x03R\ncomponents\"n\n\x10\x43reateVrfRequest\x12\x1b\n\x06vrf_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01R\x05vrfId\x12=\n\x03vrf\x18\x02 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.VrfB\x04\xe2\x41\x01\x02R\x03vrf\"Y\n\x0fListVrfsRequest\x12!\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"u\n\x10ListVrfsResponse\x12\x39\n\x04vrfs\x18\x01 \x03(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.VrfR\x04vrfs\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"R\n\rGetVrfRequest\x12\x41\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/VrfR\x04name\"\x80\x01\n\x10\x44\x65leteVrfRequest\x12\x41\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/VrfR\x04name\x12)\n\rallow_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xbf\x01\n\x10UpdateVrfRequest\x12=\n\x03vrf\x18\x01 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.VrfB\x04\xe2\x41\x01\x02R\x03vrf\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xf1\x01\n\x03Svi\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12\x43\n\x04spec\x18\x02 \x01(\x0b\x32).opi_api.network.evpn_gw.v1alpha1.SviSpecB\x04\xe2\x41\x01\x02R\x04spec\x12I\n\x06status\x18\x03 \x01(\x0b\x32+.opi_api.network.evpn_gw.v1alpha1.SviStatusB\x04\xe2\x41\x01\x03R\x06status:@\xea\x41=\n$opi_api.network.evpn_gw.v1alpha1/Svi\x12\nsvis/{svi}*\x04svis2\x03svi\"\xf2\x02\n\x07SviSpec\x12?\n\x03vrf\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/VrfR\x03vrf\x12^\n\x0elogical_bridge\x18\x02 \x01(\tB7\xe2\x41\x01\x02\xfa\x41\x30\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridgeR\rlogicalBridge\x12%\n\x0bmac_address\x18\x03 \x01(\x0c\x42\x04\xe2\x41\x01\x02R\nmacAddress\x12W\n\x0cgw_ip_prefix\x18\x04 \x03(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x04\xe2\x41\x01\x02R\ngwIpPrefix\x12#\n\nenable_bgp\x18\x05 \x01(\x08\x42\x04\xe2\x41\x01\x01R\tenableBgp\x12!\n\tremote_as\x18\x06 \x01(\rB\x04\xe2\x41\x01\x01R\x08remoteAs\"\xb6\x01\n\tSviStatus\x12V\n\x0boper_status\x18\x01 \x01(\x0e\x32/.opi_api.network.evpn_gw.v1alpha1.SVIOperStatusB\x04\xe2\x41\x01\x03R\noperStatus\x12Q\n\ncomponents\x18\x02 \x03(\x0b\x32+.opi_api.network.evpn_gw.v1alpha1.ComponentB\x04\xe2\x41\x01\x03R\ncomponents\"n\n\x10\x43reateSviRequest\x12\x1b\n\x06svi_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01R\x05sviId\x12=\n\x03svi\x18\x02 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.SviB\x04\xe2\x41\x01\x02R\x03svi\"Y\n\x0fListSvisRequest\x12!\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"u\n\x10ListSvisResponse\x12\x39\n\x04svis\x18\x01 \x03(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.SviR\x04svis\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"R\n\rGetSviRequest\x12\x41\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/SviR\x04name\"\x80\x01\n\x10\x44\x65leteSviRequest\x12\x41\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/SviR\x04name\x12)\n\rallow_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xbf\x01\n\x10UpdateSviRequest\x12=\n\x03svi\x18\x01 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.SviB\x04\xe2\x41\x01\x02R\x03svi\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing*\x85\x01\n\rVRFOperStatus\x12\x1f\n\x1bVRF_OPER_STATUS_UNSPECIFIED\x10\x00\x12\x16\n\x12VRF_OPER_STATUS_UP\x10\x01\x12\x18\n\x14VRF_OPER_STATUS_DOWN\x10\x02\x12!\n\x1dVRF_OPER_STATUS_TO_BE_DELETED\x10\x03*\x85\x01\n\rSVIOperStatus\x12\x1f\n\x1bSVI_OPER_STATUS_UNSPECIFIED\x10\x00\x12\x16\n\x12SVI_OPER_STATUS_UP\x10\x01\x12\x18\n\x14SVI_OPER_STATUS_DOWN\x10\x02\x12!\n\x1dSVI_OPER_STATUS_TO_BE_DELETED\x10\x03\x32\xbe\x05\n\nVrfService\x12\x8a\x01\n\tCreateVrf\x12\x32.opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Vrf\"\"\xda\x41\nvrf,vrf_id\x82\xd3\xe4\x93\x02\x0f\"\x08/v1/vrfs:\x03vrf\x12\x83\x01\n\x08ListVrfs\x12\x31.opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest\x1a\x32.opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse\"\x10\x82\xd3\xe4\x93\x02\n\x12\x08/v1/vrfs\x12\x82\x01\n\x06GetVrf\x12/.opi_api.network.evpn_gw.v1alpha1.GetVrfRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Vrf\" \xda\x41\x04name\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/{name=vrfs/*}\x12y\n\tDeleteVrf\x12\x32.opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest\x1a\x16.google.protobuf.Empty\" \xda\x41\x04name\x82\xd3\xe4\x93\x02\x13*\x11/v1/{name=vrfs/*}\x12\x9c\x01\n\tUpdateVrf\x12\x32.opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Vrf\"4\xda\x41\x0fvrf,update_mask\x82\xd3\xe4\x93\x02\x1c\x32\x15/v1/{vrf.name=vrfs/*}:\x03vrf2\xbe\x05\n\nSviService\x12\x8a\x01\n\tCreateSvi\x12\x32.opi_api.network.evpn_gw.v1alpha1.CreateSviRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Svi\"\"\xda\x41\nsvi,svi_id\x82\xd3\xe4\x93\x02\x0f\"\x08/v1/svis:\x03svi\x12\x83\x01\n\x08ListSvis\x12\x31.opi_api.network.evpn_gw.v1alpha1.ListSvisRequest\x1a\x32.opi_api.network.evpn_gw.v1alpha1.ListSvisResponse\"\x10\x82\xd3\xe4\x93\x02\n\x12\x08/v1/svis\x12\x82\x01\n\x06GetSvi\x12/.opi_api.network.evpn_gw.v1alpha1.GetSviRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Svi\" \xda\x41\x04name\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/{name=svis/*}\x12y\n\tDeleteSvi\x12\x32.opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest\x1a\x16.google.protobuf.Empty\" \xda\x41\x04name\x82\xd3\xe4\x93\x02\x13*\x11/v1/{name=svis/*}\x12\x9c\x01\n\tUpdateSvi\x12\x32.opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Svi\"4\xda\x41\x0fsvi,update_mask\x82\xd3\xe4\x93\x02\x1c\x32\x15/v1/{svi.name=svis/*}:\x03sviBw\n opi_api.network.evpn_gw.v1alpha1B\x12L3XpuInfraMgrProtoP\x01Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/gob\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -43,22 +44,10 @@ _globals['_VRFSPEC'].fields_by_name['loopback_ip_prefix']._serialized_options = b'\342A\001\002' _globals['_VRFSPEC'].fields_by_name['vtep_ip_prefix']._options = None _globals['_VRFSPEC'].fields_by_name['vtep_ip_prefix']._serialized_options = b'\342A\001\001' - _globals['_VRFSTATUS'].fields_by_name['routing_table']._options = None - _globals['_VRFSTATUS'].fields_by_name['routing_table']._serialized_options = b'\342A\001\003' - _globals['_VRFSTATUS'].fields_by_name['local_as']._options = None - _globals['_VRFSTATUS'].fields_by_name['local_as']._serialized_options = b'\342A\001\003' - _globals['_VRFSTATUS'].fields_by_name['rd']._options = None - _globals['_VRFSTATUS'].fields_by_name['rd']._serialized_options = b'\342A\001\003' - _globals['_VRFSTATUS'].fields_by_name['rmac']._options = None - _globals['_VRFSTATUS'].fields_by_name['rmac']._serialized_options = b'\342A\001\003' - _globals['_VRFSTATUS'].fields_by_name['import_rts']._options = None - _globals['_VRFSTATUS'].fields_by_name['import_rts']._serialized_options = b'\342A\001\003' - _globals['_VRFSTATUS'].fields_by_name['export_rts']._options = None - _globals['_VRFSTATUS'].fields_by_name['export_rts']._serialized_options = b'\342A\001\003' - _globals['_VRFSTATUS'].fields_by_name['logical_bridges']._options = None - _globals['_VRFSTATUS'].fields_by_name['logical_bridges']._serialized_options = b'\342A\001\003' _globals['_VRFSTATUS'].fields_by_name['oper_status']._options = None _globals['_VRFSTATUS'].fields_by_name['oper_status']._serialized_options = b'\342A\001\003' + _globals['_VRFSTATUS'].fields_by_name['components']._options = None + _globals['_VRFSTATUS'].fields_by_name['components']._serialized_options = b'\342A\001\003' _globals['_CREATEVRFREQUEST'].fields_by_name['vrf_id']._options = None _globals['_CREATEVRFREQUEST'].fields_by_name['vrf_id']._serialized_options = b'\342A\001\001' _globals['_CREATEVRFREQUEST'].fields_by_name['vrf']._options = None @@ -101,6 +90,8 @@ _globals['_SVISPEC'].fields_by_name['remote_as']._serialized_options = b'\342A\001\001' _globals['_SVISTATUS'].fields_by_name['oper_status']._options = None _globals['_SVISTATUS'].fields_by_name['oper_status']._serialized_options = b'\342A\001\003' + _globals['_SVISTATUS'].fields_by_name['components']._options = None + _globals['_SVISTATUS'].fields_by_name['components']._serialized_options = b'\342A\001\003' _globals['_CREATESVIREQUEST'].fields_by_name['svi_id']._options = None _globals['_CREATESVIREQUEST'].fields_by_name['svi_id']._serialized_options = b'\342A\001\001' _globals['_CREATESVIREQUEST'].fields_by_name['svi']._options = None @@ -141,48 +132,48 @@ _globals['_SVISERVICE'].methods_by_name['DeleteSvi']._serialized_options = b'\332A\004name\202\323\344\223\002\023*\021/v1/{name=svis/*}' _globals['_SVISERVICE'].methods_by_name['UpdateSvi']._options = None _globals['_SVISERVICE'].methods_by_name['UpdateSvi']._serialized_options = b'\332A\017svi,update_mask\202\323\344\223\002\0342\025/v1/{svi.name=svis/*}:\003svi' - _globals['_VRFOPERSTATUS']._serialized_start=3272 - _globals['_VRFOPERSTATUS']._serialized_end=3370 - _globals['_SVIOPERSTATUS']._serialized_start=3372 - _globals['_SVIOPERSTATUS']._serialized_end=3470 - _globals['_VRF']._serialized_start=259 - _globals['_VRF']._serialized_end=500 - _globals['_VRFSPEC']._serialized_start=503 - _globals['_VRFSPEC']._serialized_end=743 - _globals['_VRFSTATUS']._serialized_start=746 - _globals['_VRFSTATUS']._serialized_end=1090 - _globals['_CREATEVRFREQUEST']._serialized_start=1092 - _globals['_CREATEVRFREQUEST']._serialized_end=1202 - _globals['_LISTVRFSREQUEST']._serialized_start=1204 - _globals['_LISTVRFSREQUEST']._serialized_end=1293 - _globals['_LISTVRFSRESPONSE']._serialized_start=1295 - _globals['_LISTVRFSRESPONSE']._serialized_end=1412 - _globals['_GETVRFREQUEST']._serialized_start=1414 - _globals['_GETVRFREQUEST']._serialized_end=1496 - _globals['_DELETEVRFREQUEST']._serialized_start=1499 - _globals['_DELETEVRFREQUEST']._serialized_end=1627 - _globals['_UPDATEVRFREQUEST']._serialized_start=1630 - _globals['_UPDATEVRFREQUEST']._serialized_end=1821 - _globals['_SVI']._serialized_start=1824 - _globals['_SVI']._serialized_end=2065 - _globals['_SVISPEC']._serialized_start=2068 - _globals['_SVISPEC']._serialized_end=2438 - _globals['_SVISTATUS']._serialized_start=2440 - _globals['_SVISTATUS']._serialized_end=2539 - _globals['_CREATESVIREQUEST']._serialized_start=2541 - _globals['_CREATESVIREQUEST']._serialized_end=2651 - _globals['_LISTSVISREQUEST']._serialized_start=2653 - _globals['_LISTSVISREQUEST']._serialized_end=2742 - _globals['_LISTSVISRESPONSE']._serialized_start=2744 - _globals['_LISTSVISRESPONSE']._serialized_end=2861 - _globals['_GETSVIREQUEST']._serialized_start=2863 - _globals['_GETSVIREQUEST']._serialized_end=2945 - _globals['_DELETESVIREQUEST']._serialized_start=2948 - _globals['_DELETESVIREQUEST']._serialized_end=3076 - _globals['_UPDATESVIREQUEST']._serialized_start=3079 - _globals['_UPDATESVIREQUEST']._serialized_end=3270 - _globals['_VRFSERVICE']._serialized_start=3473 - _globals['_VRFSERVICE']._serialized_end=4175 - _globals['_SVISERVICE']._serialized_start=4178 - _globals['_SVISERVICE']._serialized_end=4880 + _globals['_VRFOPERSTATUS']._serialized_start=3212 + _globals['_VRFOPERSTATUS']._serialized_end=3345 + _globals['_SVIOPERSTATUS']._serialized_start=3348 + _globals['_SVIOPERSTATUS']._serialized_end=3481 + _globals['_VRF']._serialized_start=276 + _globals['_VRF']._serialized_end=517 + _globals['_VRFSPEC']._serialized_start=520 + _globals['_VRFSPEC']._serialized_end=760 + _globals['_VRFSTATUS']._serialized_start=763 + _globals['_VRFSTATUS']._serialized_end=945 + _globals['_CREATEVRFREQUEST']._serialized_start=947 + _globals['_CREATEVRFREQUEST']._serialized_end=1057 + _globals['_LISTVRFSREQUEST']._serialized_start=1059 + _globals['_LISTVRFSREQUEST']._serialized_end=1148 + _globals['_LISTVRFSRESPONSE']._serialized_start=1150 + _globals['_LISTVRFSRESPONSE']._serialized_end=1267 + _globals['_GETVRFREQUEST']._serialized_start=1269 + _globals['_GETVRFREQUEST']._serialized_end=1351 + _globals['_DELETEVRFREQUEST']._serialized_start=1354 + _globals['_DELETEVRFREQUEST']._serialized_end=1482 + _globals['_UPDATEVRFREQUEST']._serialized_start=1485 + _globals['_UPDATEVRFREQUEST']._serialized_end=1676 + _globals['_SVI']._serialized_start=1679 + _globals['_SVI']._serialized_end=1920 + _globals['_SVISPEC']._serialized_start=1923 + _globals['_SVISPEC']._serialized_end=2293 + _globals['_SVISTATUS']._serialized_start=2296 + _globals['_SVISTATUS']._serialized_end=2478 + _globals['_CREATESVIREQUEST']._serialized_start=2480 + _globals['_CREATESVIREQUEST']._serialized_end=2590 + _globals['_LISTSVISREQUEST']._serialized_start=2592 + _globals['_LISTSVISREQUEST']._serialized_end=2681 + _globals['_LISTSVISRESPONSE']._serialized_start=2683 + _globals['_LISTSVISRESPONSE']._serialized_end=2800 + _globals['_GETSVIREQUEST']._serialized_start=2802 + _globals['_GETSVIREQUEST']._serialized_end=2884 + _globals['_DELETESVIREQUEST']._serialized_start=2887 + _globals['_DELETESVIREQUEST']._serialized_end=3015 + _globals['_UPDATESVIREQUEST']._serialized_start=3018 + _globals['_UPDATESVIREQUEST']._serialized_end=3209 + _globals['_VRFSERVICE']._serialized_start=3484 + _globals['_VRFSERVICE']._serialized_end=4186 + _globals['_SVISERVICE']._serialized_start=4189 + _globals['_SVISERVICE']._serialized_end=4891 # @@protoc_insertion_point(module_scope) diff --git a/pydpu/proto/v1/networkethernet_pb2.py b/pydpu/proto/v1/networkethernet_pb2.py new file mode 100644 index 0000000..f5af518 --- /dev/null +++ b/pydpu/proto/v1/networkethernet_pb2.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: networkethernet.proto +# Protobuf Python Version: 4.25.2 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import networkvlan_pb2 as networkvlan__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15networkethernet.proto\x12%opi_api.network.opinetcommon.v1alpha1\x1a\x11networkvlan.proto\x1a\x1fgoogle/api/field_behavior.proto\"\xe5\x03\n\x0e\x45thernetConfig\x12%\n\x0bmac_address\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01R\nmacAddress\x12+\n\x0e\x61uto_negotiate\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\rautoNegotiate\x12>\n\x18standalone_link_training\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x16standaloneLinkTraining\x12[\n\x0b\x64uplex_mode\x18\x04 \x01(\x0e\x32\x34.opi_api.network.opinetcommon.v1alpha1.EthDuplexModeB\x04\xe2\x41\x01\x01R\nduplexMode\x12X\n\nport_speed\x18\x05 \x01(\x0e\x32\x33.opi_api.network.opinetcommon.v1alpha1.EthPortSpeedB\x04\xe2\x41\x01\x01R\tportSpeed\x12\x34\n\x13\x65nable_flow_control\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x11\x65nableFlowControl\x12R\n\x08\x66\x65\x63_mode\x18\x07 \x01(\x0e\x32\x31.opi_api.network.opinetcommon.v1alpha1.EthFecModeB\x04\xe2\x41\x01\x01R\x07\x66\x65\x63Mode\"\xf1\x02\n\x16\x45thernetInDistribution\x12,\n\x12rx_frames_octets64\x18\x01 \x01(\x04R\x10rxFramesOctets64\x12\x37\n\x18rx_frames_octets65_to127\x18\x02 \x01(\x04R\x15rxFramesOctets65To127\x12\x39\n\x19rx_frames_octets128_to255\x18\x03 \x01(\x04R\x16rxFramesOctets128To255\x12\x39\n\x19rx_frames_octets256_to511\x18\x04 \x01(\x04R\x16rxFramesOctets256To511\x12;\n\x1arx_frames_octets512_to1023\x18\x05 \x01(\x04R\x17rxFramesOctets512To1023\x12=\n\x1brx_frames_octets1024_to1518\x18\x06 \x01(\x04R\x18rxFramesOctets1024To1518\"\x8d\x08\n\x10\x45thernetCounters\x12\x31\n\x15rx_mac_control_frames\x18\x01 \x01(\x04R\x12rxMacControlFrames\x12-\n\x13rx_mac_pause_frames\x18\x02 \x01(\x04R\x10rxMacPauseFrames\x12,\n\x12rx_oversize_frames\x18\x03 \x01(\x04R\x10rxOversizeFrames\x12.\n\x13rx_undersize_frames\x18\x04 \x01(\x04R\x11rxUndersizeFrames\x12(\n\x10rx_jabber_frames\x18\x05 \x01(\x04R\x0erxJabberFrames\x12,\n\x12rx_fragment_frames\x18\x06 \x01(\x04R\x10rxFragmentFrames\x12.\n\x13rx_ieee8021q_frames\x18\x07 \x01(\x04R\x11rxIeee8021qFrames\x12\"\n\rrx_crc_errors\x18\x08 \x01(\x04R\x0brxCrcErrors\x12&\n\x0frx_block_errors\x18\t \x01(\x04R\rrxBlockErrors\x12*\n\x11rx_carrier_errors\x18\n \x01(\x04R\x0frxCarrierErrors\x12*\n\x11rx_interrupted_tx\x18\x0b \x01(\x04R\x0frxInterruptedTx\x12*\n\x11rx_late_collision\x18\x0c \x01(\x04R\x0frxLateCollision\x12\'\n\x10rx_mac_errors_rx\x18\r \x01(\x04R\rrxMacErrorsRx\x12.\n\x13rx_single_collision\x18\x0e \x01(\x04R\x11rxSingleCollision\x12&\n\x0frx_symbol_error\x18\x0f \x01(\x04R\rrxSymbolError\x12.\n\x13rx_maxsize_exceeded\x18\x10 \x01(\x04R\x11rxMaxsizeExceeded\x12\x33\n\x16out_mac_control_frames\x18\x11 \x01(\x04R\x13outMacControlFrames\x12/\n\x14out_mac_pause_frames\x18\x12 \x01(\x04R\x11outMacPauseFrames\x12\x30\n\x14out_ieee8021q_frames\x18\x13 \x01(\x04R\x12outIeee8021qFrames\x12)\n\x11out_mac_errors_tx\x18\x14 \x01(\x04R\x0eoutMacErrorsTx\x12m\n\x13\x65th_rx_distribution\x18\x15 \x01(\x0b\x32=.opi_api.network.opinetcommon.v1alpha1.EthernetInDistributionR\x11\x65thRxDistribution\"\x8a\x06\n\rEthernetState\x12\x1f\n\x0bmac_address\x18\x01 \x01(\tR\nmacAddress\x12%\n\x0e\x61uto_negotiate\x18\x02 \x01(\x08R\rautoNegotiate\x12\x38\n\x18standalone_link_training\x18\x03 \x01(\x08R\x16standaloneLinkTraining\x12U\n\x0b\x64uplex_mode\x18\x04 \x01(\x0e\x32\x34.opi_api.network.opinetcommon.v1alpha1.EthDuplexModeR\nduplexMode\x12R\n\nport_speed\x18\x05 \x01(\x0e\x32\x33.opi_api.network.opinetcommon.v1alpha1.EthPortSpeedR\tportSpeed\x12.\n\x13\x65nable_flow_control\x18\x06 \x01(\x08R\x11\x65nableFlowControl\x12L\n\x08\x66\x65\x63_mode\x18\x07 \x01(\x0e\x32\x31.opi_api.network.opinetcommon.v1alpha1.EthFecModeR\x07\x66\x65\x63Mode\x12$\n\x0ehw_mac_address\x18\x08 \x01(\tR\x0chwMacAddress\x12j\n\x16negotiated_duplex_mode\x18\t \x01(\x0e\x32\x34.opi_api.network.opinetcommon.v1alpha1.EthDuplexModeR\x14negotiatedDuplexMode\x12g\n\x15negotiated_port_speed\x18\n \x01(\x0e\x32\x33.opi_api.network.opinetcommon.v1alpha1.EthPortSpeedR\x13negotiatedPortSpeed\x12S\n\x08\x63ounters\x18\x0b \x01(\x0b\x32\x37.opi_api.network.opinetcommon.v1alpha1.EthernetCountersR\x08\x63ounters\"\x83\x02\n\nEthernetIf\x12M\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x35.opi_api.network.opinetcommon.v1alpha1.EthernetConfigR\x06\x63onfig\x12J\n\x05state\x18\x02 \x01(\x0b\x32\x34.opi_api.network.opinetcommon.v1alpha1.EthernetStateR\x05state\x12Z\n\rswitched_vlan\x18\x03 \x01(\x0b\x32\x35.opi_api.network.opinetcommon.v1alpha1.VlanSwitchedIfR\x0cswitchedVlan*d\n\rEthDuplexMode\x12\x1f\n\x1b\x45TH_DUPLEX_MODE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x45TH_DUPLEX_MODE_FULL\x10\x01\x12\x18\n\x14\x45TH_DUPLEX_MODE_HALF\x10\x02*\xa0\x03\n\x0c\x45thPortSpeed\x12\x1e\n\x1a\x45TH_PORT_SPEED_UNSPECIFIED\x10\x00\x12\x16\n\x12\x45TH_PORT_SPEED_10M\x10\x01\x12\x17\n\x13\x45TH_PORT_SPEED_100M\x10\x02\x12\x15\n\x11\x45TH_PORT_SPEED_1G\x10\x03\x12\x18\n\x14\x45TH_PORT_SPEED_2500M\x10\x04\x12\x15\n\x11\x45TH_PORT_SPEED_5G\x10\x05\x12\x16\n\x12\x45TH_PORT_SPEED_10G\x10\x06\x12\x16\n\x12\x45TH_PORT_SPEED_25G\x10\x07\x12\x16\n\x12\x45TH_PORT_SPEED_40G\x10\x08\x12\x16\n\x12\x45TH_PORT_SPEED_50G\x10\t\x12\x17\n\x13\x45TH_PORT_SPEED_100G\x10\n\x12\x17\n\x13\x45TH_PORT_SPEED_200G\x10\x0b\x12\x17\n\x13\x45TH_PORT_SPEED_400G\x10\x0c\x12\x17\n\x13\x45TH_PORT_SPEED_600G\x10\r\x12\x17\n\x13\x45TH_PORT_SPEED_800G\x10\x0e\x12\x1a\n\x16\x45TH_PORT_SPEED_UNKNOWN\x10\x0f*\xb0\x01\n\nEthFecMode\x12\x1c\n\x18\x45TH_FEC_MODE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x45TH_FEC_MODE_FC\x10\x01\x12\x16\n\x12\x45TH_FEC_MODE_RS528\x10\x02\x12\x16\n\x12\x45TH_FEC_MODE_RS544\x10\x03\x12$\n ETH_FEC_MODE_RS544_2X_INTERLEAVE\x10\x04\x12\x19\n\x15\x45TH_FEC_MODE_DISABLED\x10\x05\x42\x83\x01\n%opi_api.network.opinetcommon.v1alpha1B\x14NetworkEthernetProtoP\x01ZBgithub.com/opiproject/opi-api/network/opinetcommon/v1alpha1/gen/gob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'networkethernet_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n%opi_api.network.opinetcommon.v1alpha1B\024NetworkEthernetProtoP\001ZBgithub.com/opiproject/opi-api/network/opinetcommon/v1alpha1/gen/go' + _globals['_ETHERNETCONFIG'].fields_by_name['mac_address']._options = None + _globals['_ETHERNETCONFIG'].fields_by_name['mac_address']._serialized_options = b'\342A\001\001' + _globals['_ETHERNETCONFIG'].fields_by_name['auto_negotiate']._options = None + _globals['_ETHERNETCONFIG'].fields_by_name['auto_negotiate']._serialized_options = b'\342A\001\001' + _globals['_ETHERNETCONFIG'].fields_by_name['standalone_link_training']._options = None + _globals['_ETHERNETCONFIG'].fields_by_name['standalone_link_training']._serialized_options = b'\342A\001\001' + _globals['_ETHERNETCONFIG'].fields_by_name['duplex_mode']._options = None + _globals['_ETHERNETCONFIG'].fields_by_name['duplex_mode']._serialized_options = b'\342A\001\001' + _globals['_ETHERNETCONFIG'].fields_by_name['port_speed']._options = None + _globals['_ETHERNETCONFIG'].fields_by_name['port_speed']._serialized_options = b'\342A\001\001' + _globals['_ETHERNETCONFIG'].fields_by_name['enable_flow_control']._options = None + _globals['_ETHERNETCONFIG'].fields_by_name['enable_flow_control']._serialized_options = b'\342A\001\001' + _globals['_ETHERNETCONFIG'].fields_by_name['fec_mode']._options = None + _globals['_ETHERNETCONFIG'].fields_by_name['fec_mode']._serialized_options = b'\342A\001\001' + _globals['_ETHDUPLEXMODE']._serialized_start=3059 + _globals['_ETHDUPLEXMODE']._serialized_end=3159 + _globals['_ETHPORTSPEED']._serialized_start=3162 + _globals['_ETHPORTSPEED']._serialized_end=3578 + _globals['_ETHFECMODE']._serialized_start=3581 + _globals['_ETHFECMODE']._serialized_end=3757 + _globals['_ETHERNETCONFIG']._serialized_start=117 + _globals['_ETHERNETCONFIG']._serialized_end=602 + _globals['_ETHERNETINDISTRIBUTION']._serialized_start=605 + _globals['_ETHERNETINDISTRIBUTION']._serialized_end=974 + _globals['_ETHERNETCOUNTERS']._serialized_start=977 + _globals['_ETHERNETCOUNTERS']._serialized_end=2014 + _globals['_ETHERNETSTATE']._serialized_start=2017 + _globals['_ETHERNETSTATE']._serialized_end=2795 + _globals['_ETHERNETIF']._serialized_start=2798 + _globals['_ETHERNETIF']._serialized_end=3057 +# @@protoc_insertion_point(module_scope) diff --git a/pydpu/proto/v1/networkethernet_pb2_grpc.py b/pydpu/proto/v1/networkethernet_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/pydpu/proto/v1/networkethernet_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/pydpu/proto/v1/openconfig_interfaces_pb2.py b/pydpu/proto/v1/networkinterfaces_pb2.py similarity index 53% rename from pydpu/proto/v1/openconfig_interfaces_pb2.py rename to pydpu/proto/v1/networkinterfaces_pb2.py index f8f82ae..5300caf 100644 --- a/pydpu/proto/v1/openconfig_interfaces_pb2.py +++ b/pydpu/proto/v1/networkinterfaces_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: openconfig_interfaces.proto +# source: networkinterfaces.proto # Protobuf Python Version: 4.25.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor @@ -13,6 +13,8 @@ import networktypes_pb2 as networktypes__pb2 +import networkvlan_pb2 as networkvlan__pb2 +import networkethernet_pb2 as networkethernet__pb2 from google.api import client_pb2 as google_dot_api_dot_client__pb2 from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 @@ -20,14 +22,14 @@ from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bopenconfig_interfaces.proto\x12%opi_api.network.opinetcommon.v1alpha1\x1a\x12networktypes.proto\x1a\x17google/api/client.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\"\xfd\x01\n\x06\x43onfig\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02R\x04name\x12N\n\x04type\x18\x02 \x01(\x0e\x32\x34.opi_api.network.opinetcommon.v1alpha1.InterfaceTypeB\x04\xe2\x41\x01\x02R\x04type\x12\x16\n\x03mtu\x18\x03 \x01(\rB\x04\xe2\x41\x01\x02R\x03mtu\x12)\n\rloopback_mode\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x02R\x0cloopbackMode\x12&\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x04\xe2\x41\x01\x02R\x0b\x64\x65scription\x12\x1e\n\x07\x65nabled\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x02R\x07\x65nabled\"\x98\x06\n\x08\x43ounters\x12!\n\trx_octets\x18\x01 \x01(\x04\x42\x04\xe2\x41\x01\x03R\x08rxOctets\x12#\n\nrx_packets\x18\x02 \x01(\x04\x42\x04\xe2\x41\x01\x03R\trxPackets\x12,\n\x0frx_unicast_pkts\x18\x03 \x01(\x04\x42\x04\xe2\x41\x01\x03R\rrxUnicastPkts\x12\x30\n\x11rx_broadcast_pkts\x18\x04 \x01(\x04\x42\x04\xe2\x41\x01\x03R\x0frxBroadcastPkts\x12\x30\n\x11rx_multicast_pkts\x18\x05 \x01(\x04\x42\x04\xe2\x41\x01\x03R\x0frxMulticastPkts\x12%\n\x0brx_discards\x18\x06 \x01(\x04\x42\x04\xe2\x41\x01\x03R\nrxDiscards\x12!\n\trx_errors\x18\x07 \x01(\x04\x42\x04\xe2\x41\x01\x03R\x08rxErrors\x12\x30\n\x11rx_unknown_protos\x18\x08 \x01(\x04\x42\x04\xe2\x41\x01\x03R\x0frxUnknownProtos\x12(\n\rrx_fcs_errors\x18\t \x01(\x04\x42\x04\xe2\x41\x01\x03R\x0brxFcsErrors\x12#\n\nout_octets\x18\n \x01(\x04\x42\x04\xe2\x41\x01\x03R\toutOctets\x12%\n\x0bout_packets\x18\x0b \x01(\x04\x42\x04\xe2\x41\x01\x03R\noutPackets\x12.\n\x10out_unicast_pkts\x18\x0c \x01(\x04\x42\x04\xe2\x41\x01\x03R\x0eoutUnicastPkts\x12\x32\n\x12out_broadcast_pkts\x18\r \x01(\x04\x42\x04\xe2\x41\x01\x03R\x10outBroadcastPkts\x12\x32\n\x12out_multicast_pkts\x18\x0e \x01(\x04\x42\x04\xe2\x41\x01\x03R\x10outMulticastPkts\x12\'\n\x0cout_discards\x18\x0f \x01(\x04\x42\x04\xe2\x41\x01\x03R\x0boutDiscards\x12#\n\nout_errors\x18\x10 \x01(\x04\x42\x04\xe2\x41\x01\x03R\toutErrors\x12\x35\n\x13\x63\x61rrier_transitions\x18\x11 \x01(\x04\x42\x04\xe2\x41\x01\x03R\x12\x63\x61rrierTransitions\x12#\n\nlast_clear\x18\x12 \x01(\x04\x42\x04\xe2\x41\x01\x03R\tlastClear\"\xa5\x05\n\x05State\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03R\x04name\x12N\n\x04type\x18\x02 \x01(\x0e\x32\x34.opi_api.network.opinetcommon.v1alpha1.InterfaceTypeB\x04\xe2\x41\x01\x03R\x04type\x12\x16\n\x03mtu\x18\x03 \x01(\rB\x04\xe2\x41\x01\x03R\x03mtu\x12)\n\rloopback_mode\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x03R\x0cloopbackMode\x12&\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x04\xe2\x41\x01\x03R\x0b\x64\x65scription\x12\x1e\n\x07\x65nabled\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x03R\x07\x65nabled\x12\x1e\n\x07ifindex\x18\x07 \x01(\rB\x04\xe2\x41\x01\x03R\x07ifindex\x12X\n\x0b\x61\x64min_state\x18\x08 \x01(\x0e\x32\x31.opi_api.network.opinetcommon.v1alpha1.AdminStateB\x04\xe2\x41\x01\x03R\nadminState\x12U\n\noper_state\x18\t \x01(\x0e\x32\x30.opi_api.network.opinetcommon.v1alpha1.OperStateB\x04\xe2\x41\x01\x03R\toperState\x12%\n\x0blast_change\x18\n \x01(\x04\x42\x04\xe2\x41\x01\x03R\nlastChange\x12\x1e\n\x07logical\x18\x0b \x01(\x08\x42\x04\xe2\x41\x01\x03R\x07logical\x12$\n\nmanagement\x18\x0c \x01(\x08\x42\x04\xe2\x41\x01\x03R\nmanagement\x12\x16\n\x03\x63pu\x18\r \x01(\x08\x42\x04\xe2\x41\x01\x03R\x03\x63pu\x12Q\n\x08\x63ounters\x18\x0e \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.CountersB\x04\xe2\x41\x01\x03R\x08\x63ounters\"\xd9\n\n\x0cNetInterface\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12K\n\x06\x63onfig\x18\x02 \x01(\x0b\x32-.opi_api.network.opinetcommon.v1alpha1.ConfigB\x04\xe2\x41\x01\x02R\x06\x63onfig\x12H\n\x05state\x18\x03 \x01(\x0b\x32,.opi_api.network.opinetcommon.v1alpha1.StateB\x04\xe2\x41\x01\x03R\x05state\x12^\n\x08holdtime\x18\x04 \x01(\x0b\x32<.opi_api.network.opinetcommon.v1alpha1.NetInterface.HoldTimeB\x04\xe2\x41\x01\x01R\x08holdtime\x12m\n\rsubinterfaces\x18\x05 \x01(\x0b\x32\x41.opi_api.network.opinetcommon.v1alpha1.NetInterface.SubinterfacesB\x04\xe2\x41\x01\x01R\rsubinterfaces\x1a\xe2\x02\n\x08HoldTime\x12n\n\x0bhold_config\x18\x01 \x01(\x0b\x32G.opi_api.network.opinetcommon.v1alpha1.NetInterface.HoldTime.HoldConfigB\x04\xe2\x41\x01\x01R\nholdConfig\x12k\n\nhold_state\x18\x02 \x01(\x0b\x32\x46.opi_api.network.opinetcommon.v1alpha1.NetInterface.HoldTime.HoldStateB\x04\xe2\x41\x01\x03R\tholdState\x1a<\n\nHoldConfig\x12\x14\n\x02up\x18\x01 \x01(\rB\x04\xe2\x41\x01\x01R\x02up\x12\x18\n\x04\x64own\x18\x02 \x01(\rB\x04\xe2\x41\x01\x01R\x04\x64own\x1a;\n\tHoldState\x12\x14\n\x02up\x18\x01 \x01(\rB\x04\xe2\x41\x01\x03R\x02up\x12\x18\n\x04\x64own\x18\x02 \x01(\rB\x04\xe2\x41\x01\x03R\x04\x64own\x1a\xf9\x03\n\rSubinterfaces\x12x\n\x0csubinterface\x18\x02 \x03(\x0b\x32N.opi_api.network.opinetcommon.v1alpha1.NetInterface.Subinterfaces.SubinterfaceB\x04\xe2\x41\x01\x01R\x0csubinterface\x1a\xed\x02\n\x0cSubinterface\x12\x1a\n\x05index\x18\x01 \x01(\x03\x42\x04\xe2\x41\x01\x01R\x05index\x12\x83\x01\n\x0csubif_config\x18\x02 \x01(\x0b\x32Z.opi_api.network.opinetcommon.v1alpha1.NetInterface.Subinterfaces.Subinterface.SubifConfigB\x04\xe2\x41\x01\x01R\x0bsubifConfig\x12H\n\x05state\x18\x03 \x01(\x0b\x32,.opi_api.network.opinetcommon.v1alpha1.StateB\x04\xe2\x41\x01\x03R\x05state\x1aq\n\x0bSubifConfig\x12\x1a\n\x05index\x18\x01 \x01(\x04\x42\x04\xe2\x41\x01\x01R\x05index\x12&\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\x0b\x64\x65scription\x12\x1e\n\x07\x65nabled\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x07\x65nabled:h\xea\x41\x65\n,opi_api.network.common.v1alpha1/NetInterface\x12\x18netInterface/{interface}*\rnetInterfaces2\x0cnetInterface\"T\n\x16GetNetInterfaceRequest\x12:\n\x04name\x18\x01 \x01(\tB&\xe2\x41\x01\x02\xfa\x41\x1f\n\x1dopi_api.network.v1/InterfacesR\x04name\"\xa2\x01\n\x18ListNetInterfacesRequest\x12>\n\x06parent\x18\x01 \x01(\tB&\xe2\x41\x01\x02\xfa\x41\x1f\n\x1dopi_api.network.v1/InterfacesR\x06parent\x12!\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"\x9f\x01\n\x19ListNetInterfacesResponse\x12Z\n\x0enet_interfaces\x18\x01 \x03(\x0b\x32\x33.opi_api.network.opinetcommon.v1alpha1.NetInterfaceR\rnetInterfaces\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xe9\x01\n\x19UpdateNetInterfaceRequest\x12^\n\rnet_interface\x18\x01 \x01(\x0b\x32\x33.opi_api.network.opinetcommon.v1alpha1.NetInterfaceB\x04\xe2\x41\x01\x02R\x0cnetInterface\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing*i\n\rInterfaceType\x12\x1e\n\x1aINTERFACE_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17INTERFACE_TYPE_ETHERNET\x10\x01\x12\x1b\n\x17INTERFACE_TYPE_LOOPBACK\x10\x02*\xd4\x01\n\tOperState\x12\x1a\n\x16OPER_STATE_UNSPECIFIED\x10\x00\x12\x11\n\rOPER_STATE_UP\x10\x02\x12\x13\n\x0fOPER_STATE_DOWN\x10\x03\x12\x16\n\x12OPER_STATE_TESTING\x10\x04\x12\x16\n\x12OPER_STATE_UNKNOWN\x10\x05\x12\x16\n\x12OPER_STATE_DORMANT\x10\x06\x12\x1a\n\x16OPER_STATE_NOT_PRESENT\x10\x07\x12\x1f\n\x1bOPER_STATE_LOWER_LAYER_DOWN\x10\x08\x32\x88\x05\n\x13NetInterfaceService\x12\xb9\x01\n\x0fGetNetInterface\x12=.opi_api.network.opinetcommon.v1alpha1.GetNetInterfaceRequest\x1a\x33.opi_api.network.opinetcommon.v1alpha1.NetInterface\"2\xda\x41\x04name\x82\xd3\xe4\x93\x02%\x12#/v1/{name=interfaces/*/interface/*}\x12\xc0\x01\n\x11ListNetInterfaces\x12?.opi_api.network.opinetcommon.v1alpha1.ListNetInterfacesRequest\x1a@.opi_api.network.opinetcommon.v1alpha1.ListNetInterfacesResponse\"(\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x19\x12\x17/v1/{parent=interfaces}\x12\xf1\x01\n\x12UpdateNetInterface\x12@.opi_api.network.opinetcommon.v1alpha1.UpdateNetInterfaceRequest\x1a\x33.opi_api.network.opinetcommon.v1alpha1.NetInterface\"d\xda\x41\x19net_interface,update_mask\x82\xd3\xe4\x93\x02\x42\x32\x31/v1/{net_interface.name=interfaces/*/interface/*}:\rnet_interfaceB\x88\x01\n%opi_api.network.opinetcommon.v1alpha1B\x19OpenconfigInterfacesProtoP\x01ZBgithub.com/opiproject/opi-api/network/opinetcommon/v1alpha1/gen/gob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17networkinterfaces.proto\x12%opi_api.network.opinetcommon.v1alpha1\x1a\x12networktypes.proto\x1a\x11networkvlan.proto\x1a\x15networkethernet.proto\x1a\x17google/api/client.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\"\xc9\x02\n\x06\x43onfig\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02R\x04name\x12N\n\x04type\x18\x02 \x01(\x0e\x32\x34.opi_api.network.opinetcommon.v1alpha1.InterfaceTypeB\x04\xe2\x41\x01\x02R\x04type\x12\x16\n\x03mtu\x18\x03 \x01(\rB\x04\xe2\x41\x01\x02R\x03mtu\x12)\n\rloopback_mode\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x02R\x0cloopbackMode\x12&\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x04\xe2\x41\x01\x02R\x0b\x64\x65scription\x12\x1e\n\x07\x65nabled\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x02R\x07\x65nabled\x12J\n\x04tpid\x18\x07 \x01(\x0e\x32\x30.opi_api.network.opinetcommon.v1alpha1.TpidTypesB\x04\xe2\x41\x01\x01R\x04tpid\"\x98\x06\n\x08\x43ounters\x12!\n\trx_octets\x18\x01 \x01(\x04\x42\x04\xe2\x41\x01\x03R\x08rxOctets\x12#\n\nrx_packets\x18\x02 \x01(\x04\x42\x04\xe2\x41\x01\x03R\trxPackets\x12,\n\x0frx_unicast_pkts\x18\x03 \x01(\x04\x42\x04\xe2\x41\x01\x03R\rrxUnicastPkts\x12\x30\n\x11rx_broadcast_pkts\x18\x04 \x01(\x04\x42\x04\xe2\x41\x01\x03R\x0frxBroadcastPkts\x12\x30\n\x11rx_multicast_pkts\x18\x05 \x01(\x04\x42\x04\xe2\x41\x01\x03R\x0frxMulticastPkts\x12%\n\x0brx_discards\x18\x06 \x01(\x04\x42\x04\xe2\x41\x01\x03R\nrxDiscards\x12!\n\trx_errors\x18\x07 \x01(\x04\x42\x04\xe2\x41\x01\x03R\x08rxErrors\x12\x30\n\x11rx_unknown_protos\x18\x08 \x01(\x04\x42\x04\xe2\x41\x01\x03R\x0frxUnknownProtos\x12(\n\rrx_fcs_errors\x18\t \x01(\x04\x42\x04\xe2\x41\x01\x03R\x0brxFcsErrors\x12#\n\nout_octets\x18\n \x01(\x04\x42\x04\xe2\x41\x01\x03R\toutOctets\x12%\n\x0bout_packets\x18\x0b \x01(\x04\x42\x04\xe2\x41\x01\x03R\noutPackets\x12.\n\x10out_unicast_pkts\x18\x0c \x01(\x04\x42\x04\xe2\x41\x01\x03R\x0eoutUnicastPkts\x12\x32\n\x12out_broadcast_pkts\x18\r \x01(\x04\x42\x04\xe2\x41\x01\x03R\x10outBroadcastPkts\x12\x32\n\x12out_multicast_pkts\x18\x0e \x01(\x04\x42\x04\xe2\x41\x01\x03R\x10outMulticastPkts\x12\'\n\x0cout_discards\x18\x0f \x01(\x04\x42\x04\xe2\x41\x01\x03R\x0boutDiscards\x12#\n\nout_errors\x18\x10 \x01(\x04\x42\x04\xe2\x41\x01\x03R\toutErrors\x12\x35\n\x13\x63\x61rrier_transitions\x18\x11 \x01(\x04\x42\x04\xe2\x41\x01\x03R\x12\x63\x61rrierTransitions\x12#\n\nlast_clear\x18\x12 \x01(\x04\x42\x04\xe2\x41\x01\x03R\tlastClear\"\xf1\x05\n\x05State\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03R\x04name\x12N\n\x04type\x18\x02 \x01(\x0e\x32\x34.opi_api.network.opinetcommon.v1alpha1.InterfaceTypeB\x04\xe2\x41\x01\x03R\x04type\x12\x16\n\x03mtu\x18\x03 \x01(\rB\x04\xe2\x41\x01\x03R\x03mtu\x12)\n\rloopback_mode\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x03R\x0cloopbackMode\x12&\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x04\xe2\x41\x01\x03R\x0b\x64\x65scription\x12\x1e\n\x07\x65nabled\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x03R\x07\x65nabled\x12\x1e\n\x07ifindex\x18\x07 \x01(\rB\x04\xe2\x41\x01\x03R\x07ifindex\x12X\n\x0b\x61\x64min_state\x18\x08 \x01(\x0e\x32\x31.opi_api.network.opinetcommon.v1alpha1.AdminStateB\x04\xe2\x41\x01\x03R\nadminState\x12U\n\noper_state\x18\t \x01(\x0e\x32\x30.opi_api.network.opinetcommon.v1alpha1.OperStateB\x04\xe2\x41\x01\x03R\toperState\x12%\n\x0blast_change\x18\n \x01(\x04\x42\x04\xe2\x41\x01\x03R\nlastChange\x12\x1e\n\x07logical\x18\x0b \x01(\x08\x42\x04\xe2\x41\x01\x03R\x07logical\x12$\n\nmanagement\x18\x0c \x01(\x08\x42\x04\xe2\x41\x01\x03R\nmanagement\x12\x16\n\x03\x63pu\x18\r \x01(\x08\x42\x04\xe2\x41\x01\x03R\x03\x63pu\x12Q\n\x08\x63ounters\x18\x0e \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.CountersB\x04\xe2\x41\x01\x03R\x08\x63ounters\x12J\n\x04tpid\x18\x0f \x01(\x0e\x32\x30.opi_api.network.opinetcommon.v1alpha1.TpidTypesB\x04\xe2\x41\x01\x03R\x04tpid\"\xfd\x0b\n\x0cNetInterface\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12K\n\x06\x63onfig\x18\x02 \x01(\x0b\x32-.opi_api.network.opinetcommon.v1alpha1.ConfigB\x04\xe2\x41\x01\x02R\x06\x63onfig\x12H\n\x05state\x18\x03 \x01(\x0b\x32,.opi_api.network.opinetcommon.v1alpha1.StateB\x04\xe2\x41\x01\x03R\x05state\x12^\n\x08holdtime\x18\x04 \x01(\x0b\x32<.opi_api.network.opinetcommon.v1alpha1.NetInterface.HoldTimeB\x04\xe2\x41\x01\x01R\x08holdtime\x12m\n\rsubinterfaces\x18\x05 \x01(\x0b\x32\x41.opi_api.network.opinetcommon.v1alpha1.NetInterface.SubinterfacesB\x04\xe2\x41\x01\x01R\rsubinterfaces\x12S\n\x08\x65thernet\x18\x06 \x01(\x0b\x32\x31.opi_api.network.opinetcommon.v1alpha1.EthernetIfB\x04\xe2\x41\x01\x01R\x08\x65thernet\x1a\xe2\x02\n\x08HoldTime\x12n\n\x0bhold_config\x18\x01 \x01(\x0b\x32G.opi_api.network.opinetcommon.v1alpha1.NetInterface.HoldTime.HoldConfigB\x04\xe2\x41\x01\x01R\nholdConfig\x12k\n\nhold_state\x18\x02 \x01(\x0b\x32\x46.opi_api.network.opinetcommon.v1alpha1.NetInterface.HoldTime.HoldStateB\x04\xe2\x41\x01\x03R\tholdState\x1a<\n\nHoldConfig\x12\x14\n\x02up\x18\x01 \x01(\rB\x04\xe2\x41\x01\x01R\x02up\x12\x18\n\x04\x64own\x18\x02 \x01(\rB\x04\xe2\x41\x01\x01R\x04\x64own\x1a;\n\tHoldState\x12\x14\n\x02up\x18\x01 \x01(\rB\x04\xe2\x41\x01\x03R\x02up\x12\x18\n\x04\x64own\x18\x02 \x01(\rB\x04\xe2\x41\x01\x03R\x04\x64own\x1a\xc2\x04\n\rSubinterfaces\x12x\n\x0csubinterface\x18\x02 \x03(\x0b\x32N.opi_api.network.opinetcommon.v1alpha1.NetInterface.Subinterfaces.SubinterfaceB\x04\xe2\x41\x01\x01R\x0csubinterface\x1a\xb6\x03\n\x0cSubinterface\x12\x1a\n\x05index\x18\x01 \x01(\x03\x42\x04\xe2\x41\x01\x01R\x05index\x12\x83\x01\n\x0csubif_config\x18\x02 \x01(\x0b\x32Z.opi_api.network.opinetcommon.v1alpha1.NetInterface.Subinterfaces.Subinterface.SubifConfigB\x04\xe2\x41\x01\x01R\x0bsubifConfig\x12H\n\x05state\x18\x03 \x01(\x0b\x32,.opi_api.network.opinetcommon.v1alpha1.StateB\x04\xe2\x41\x01\x03R\x05state\x12G\n\x04vlan\x18\x04 \x01(\x0b\x32-.opi_api.network.opinetcommon.v1alpha1.VlanIfB\x04\xe2\x41\x01\x01R\x04vlan\x1aq\n\x0bSubifConfig\x12\x1a\n\x05index\x18\x01 \x01(\x04\x42\x04\xe2\x41\x01\x01R\x05index\x12&\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\x0b\x64\x65scription\x12\x1e\n\x07\x65nabled\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x07\x65nabled:n\xea\x41k\n2opi_api.network.opinetcommon.v1alpha1/NetInterface\x12\x18netInterface/{interface}*\rnetInterfaces2\x0cnetInterface\"T\n\x16GetNetInterfaceRequest\x12:\n\x04name\x18\x01 \x01(\tB&\xe2\x41\x01\x02\xfa\x41\x1f\n\x1dopi_api.network.v1/InterfacesR\x04name\"\xa2\x01\n\x18ListNetInterfacesRequest\x12>\n\x06parent\x18\x01 \x01(\tB&\xe2\x41\x01\x02\xfa\x41\x1f\n\x1dopi_api.network.v1/InterfacesR\x06parent\x12!\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"\x9f\x01\n\x19ListNetInterfacesResponse\x12Z\n\x0enet_interfaces\x18\x01 \x03(\x0b\x32\x33.opi_api.network.opinetcommon.v1alpha1.NetInterfaceR\rnetInterfaces\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xe9\x01\n\x19UpdateNetInterfaceRequest\x12^\n\rnet_interface\x18\x01 \x01(\x0b\x32\x33.opi_api.network.opinetcommon.v1alpha1.NetInterfaceB\x04\xe2\x41\x01\x02R\x0cnetInterface\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing*i\n\rInterfaceType\x12\x1e\n\x1aINTERFACE_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17INTERFACE_TYPE_ETHERNET\x10\x01\x12\x1b\n\x17INTERFACE_TYPE_LOOPBACK\x10\x02*\xd4\x01\n\tOperState\x12\x1a\n\x16OPER_STATE_UNSPECIFIED\x10\x00\x12\x11\n\rOPER_STATE_UP\x10\x02\x12\x13\n\x0fOPER_STATE_DOWN\x10\x03\x12\x16\n\x12OPER_STATE_TESTING\x10\x04\x12\x16\n\x12OPER_STATE_UNKNOWN\x10\x05\x12\x16\n\x12OPER_STATE_DORMANT\x10\x06\x12\x1a\n\x16OPER_STATE_NOT_PRESENT\x10\x07\x12\x1f\n\x1bOPER_STATE_LOWER_LAYER_DOWN\x10\x08\x32\x88\x05\n\x13NetInterfaceService\x12\xb9\x01\n\x0fGetNetInterface\x12=.opi_api.network.opinetcommon.v1alpha1.GetNetInterfaceRequest\x1a\x33.opi_api.network.opinetcommon.v1alpha1.NetInterface\"2\xda\x41\x04name\x82\xd3\xe4\x93\x02%\x12#/v1/{name=interfaces/*/interface/*}\x12\xc0\x01\n\x11ListNetInterfaces\x12?.opi_api.network.opinetcommon.v1alpha1.ListNetInterfacesRequest\x1a@.opi_api.network.opinetcommon.v1alpha1.ListNetInterfacesResponse\"(\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x19\x12\x17/v1/{parent=interfaces}\x12\xf1\x01\n\x12UpdateNetInterface\x12@.opi_api.network.opinetcommon.v1alpha1.UpdateNetInterfaceRequest\x1a\x33.opi_api.network.opinetcommon.v1alpha1.NetInterface\"d\xda\x41\x19net_interface,update_mask\x82\xd3\xe4\x93\x02\x42\x32\x31/v1/{net_interface.name=interfaces/*/interface/*}:\rnet_interfaceB\x85\x01\n%opi_api.network.opinetcommon.v1alpha1B\x16NetworkInterfacesProtoP\x01ZBgithub.com/opiproject/opi-api/network/opinetcommon/v1alpha1/gen/gob\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'openconfig_interfaces_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'networkinterfaces_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n%opi_api.network.opinetcommon.v1alpha1B\031OpenconfigInterfacesProtoP\001ZBgithub.com/opiproject/opi-api/network/opinetcommon/v1alpha1/gen/go' + _globals['DESCRIPTOR']._serialized_options = b'\n%opi_api.network.opinetcommon.v1alpha1B\026NetworkInterfacesProtoP\001ZBgithub.com/opiproject/opi-api/network/opinetcommon/v1alpha1/gen/go' _globals['_CONFIG'].fields_by_name['name']._options = None _globals['_CONFIG'].fields_by_name['name']._serialized_options = b'\342A\001\002' _globals['_CONFIG'].fields_by_name['type']._options = None @@ -40,6 +42,8 @@ _globals['_CONFIG'].fields_by_name['description']._serialized_options = b'\342A\001\002' _globals['_CONFIG'].fields_by_name['enabled']._options = None _globals['_CONFIG'].fields_by_name['enabled']._serialized_options = b'\342A\001\002' + _globals['_CONFIG'].fields_by_name['tpid']._options = None + _globals['_CONFIG'].fields_by_name['tpid']._serialized_options = b'\342A\001\001' _globals['_COUNTERS'].fields_by_name['rx_octets']._options = None _globals['_COUNTERS'].fields_by_name['rx_octets']._serialized_options = b'\342A\001\003' _globals['_COUNTERS'].fields_by_name['rx_packets']._options = None @@ -104,6 +108,8 @@ _globals['_STATE'].fields_by_name['cpu']._serialized_options = b'\342A\001\003' _globals['_STATE'].fields_by_name['counters']._options = None _globals['_STATE'].fields_by_name['counters']._serialized_options = b'\342A\001\003' + _globals['_STATE'].fields_by_name['tpid']._options = None + _globals['_STATE'].fields_by_name['tpid']._serialized_options = b'\342A\001\003' _globals['_NETINTERFACE_HOLDTIME_HOLDCONFIG'].fields_by_name['up']._options = None _globals['_NETINTERFACE_HOLDTIME_HOLDCONFIG'].fields_by_name['up']._serialized_options = b'\342A\001\001' _globals['_NETINTERFACE_HOLDTIME_HOLDCONFIG'].fields_by_name['down']._options = None @@ -128,6 +134,8 @@ _globals['_NETINTERFACE_SUBINTERFACES_SUBINTERFACE'].fields_by_name['subif_config']._serialized_options = b'\342A\001\001' _globals['_NETINTERFACE_SUBINTERFACES_SUBINTERFACE'].fields_by_name['state']._options = None _globals['_NETINTERFACE_SUBINTERFACES_SUBINTERFACE'].fields_by_name['state']._serialized_options = b'\342A\001\003' + _globals['_NETINTERFACE_SUBINTERFACES_SUBINTERFACE'].fields_by_name['vlan']._options = None + _globals['_NETINTERFACE_SUBINTERFACES_SUBINTERFACE'].fields_by_name['vlan']._serialized_options = b'\342A\001\001' _globals['_NETINTERFACE_SUBINTERFACES'].fields_by_name['subinterface']._options = None _globals['_NETINTERFACE_SUBINTERFACES'].fields_by_name['subinterface']._serialized_options = b'\342A\001\001' _globals['_NETINTERFACE'].fields_by_name['name']._options = None @@ -140,8 +148,10 @@ _globals['_NETINTERFACE'].fields_by_name['holdtime']._serialized_options = b'\342A\001\001' _globals['_NETINTERFACE'].fields_by_name['subinterfaces']._options = None _globals['_NETINTERFACE'].fields_by_name['subinterfaces']._serialized_options = b'\342A\001\001' + _globals['_NETINTERFACE'].fields_by_name['ethernet']._options = None + _globals['_NETINTERFACE'].fields_by_name['ethernet']._serialized_options = b'\342A\001\001' _globals['_NETINTERFACE']._options = None - _globals['_NETINTERFACE']._serialized_options = b'\352Ae\n,opi_api.network.common.v1alpha1/NetInterface\022\030netInterface/{interface}*\rnetInterfaces2\014netInterface' + _globals['_NETINTERFACE']._serialized_options = b'\352Ak\n2opi_api.network.opinetcommon.v1alpha1/NetInterface\022\030netInterface/{interface}*\rnetInterfaces2\014netInterface' _globals['_GETNETINTERFACEREQUEST'].fields_by_name['name']._options = None _globals['_GETNETINTERFACEREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A\037\n\035opi_api.network.v1/Interfaces' _globals['_LISTNETINTERFACESREQUEST'].fields_by_name['parent']._options = None @@ -162,38 +172,38 @@ _globals['_NETINTERFACESERVICE'].methods_by_name['ListNetInterfaces']._serialized_options = b'\332A\006parent\202\323\344\223\002\031\022\027/v1/{parent=interfaces}' _globals['_NETINTERFACESERVICE'].methods_by_name['UpdateNetInterface']._options = None _globals['_NETINTERFACESERVICE'].methods_by_name['UpdateNetInterface']._serialized_options = b'\332A\031net_interface,update_mask\202\323\344\223\002B21/v1/{net_interface.name=interfaces/*/interface/*}:\rnet_interface' - _globals['_INTERFACETYPE']._serialized_start=3991 - _globals['_INTERFACETYPE']._serialized_end=4096 - _globals['_OPERSTATE']._serialized_start=4099 - _globals['_OPERSTATE']._serialized_end=4311 - _globals['_CONFIG']._serialized_start=240 - _globals['_CONFIG']._serialized_end=493 - _globals['_COUNTERS']._serialized_start=496 - _globals['_COUNTERS']._serialized_end=1288 - _globals['_STATE']._serialized_start=1291 - _globals['_STATE']._serialized_end=1968 - _globals['_NETINTERFACE']._serialized_start=1971 - _globals['_NETINTERFACE']._serialized_end=3340 - _globals['_NETINTERFACE_HOLDTIME']._serialized_start=2372 - _globals['_NETINTERFACE_HOLDTIME']._serialized_end=2726 - _globals['_NETINTERFACE_HOLDTIME_HOLDCONFIG']._serialized_start=2605 - _globals['_NETINTERFACE_HOLDTIME_HOLDCONFIG']._serialized_end=2665 - _globals['_NETINTERFACE_HOLDTIME_HOLDSTATE']._serialized_start=2667 - _globals['_NETINTERFACE_HOLDTIME_HOLDSTATE']._serialized_end=2726 - _globals['_NETINTERFACE_SUBINTERFACES']._serialized_start=2729 - _globals['_NETINTERFACE_SUBINTERFACES']._serialized_end=3234 - _globals['_NETINTERFACE_SUBINTERFACES_SUBINTERFACE']._serialized_start=2869 - _globals['_NETINTERFACE_SUBINTERFACES_SUBINTERFACE']._serialized_end=3234 - _globals['_NETINTERFACE_SUBINTERFACES_SUBINTERFACE_SUBIFCONFIG']._serialized_start=3121 - _globals['_NETINTERFACE_SUBINTERFACES_SUBINTERFACE_SUBIFCONFIG']._serialized_end=3234 - _globals['_GETNETINTERFACEREQUEST']._serialized_start=3342 - _globals['_GETNETINTERFACEREQUEST']._serialized_end=3426 - _globals['_LISTNETINTERFACESREQUEST']._serialized_start=3429 - _globals['_LISTNETINTERFACESREQUEST']._serialized_end=3591 - _globals['_LISTNETINTERFACESRESPONSE']._serialized_start=3594 - _globals['_LISTNETINTERFACESRESPONSE']._serialized_end=3753 - _globals['_UPDATENETINTERFACEREQUEST']._serialized_start=3756 - _globals['_UPDATENETINTERFACEREQUEST']._serialized_end=3989 - _globals['_NETINTERFACESERVICE']._serialized_start=4314 - _globals['_NETINTERFACESERVICE']._serialized_end=4962 + _globals['_INTERFACETYPE']._serialized_start=4345 + _globals['_INTERFACETYPE']._serialized_end=4450 + _globals['_OPERSTATE']._serialized_start=4453 + _globals['_OPERSTATE']._serialized_end=4665 + _globals['_CONFIG']._serialized_start=278 + _globals['_CONFIG']._serialized_end=607 + _globals['_COUNTERS']._serialized_start=610 + _globals['_COUNTERS']._serialized_end=1402 + _globals['_STATE']._serialized_start=1405 + _globals['_STATE']._serialized_end=2158 + _globals['_NETINTERFACE']._serialized_start=2161 + _globals['_NETINTERFACE']._serialized_end=3694 + _globals['_NETINTERFACE_HOLDTIME']._serialized_start=2647 + _globals['_NETINTERFACE_HOLDTIME']._serialized_end=3001 + _globals['_NETINTERFACE_HOLDTIME_HOLDCONFIG']._serialized_start=2880 + _globals['_NETINTERFACE_HOLDTIME_HOLDCONFIG']._serialized_end=2940 + _globals['_NETINTERFACE_HOLDTIME_HOLDSTATE']._serialized_start=2942 + _globals['_NETINTERFACE_HOLDTIME_HOLDSTATE']._serialized_end=3001 + _globals['_NETINTERFACE_SUBINTERFACES']._serialized_start=3004 + _globals['_NETINTERFACE_SUBINTERFACES']._serialized_end=3582 + _globals['_NETINTERFACE_SUBINTERFACES_SUBINTERFACE']._serialized_start=3144 + _globals['_NETINTERFACE_SUBINTERFACES_SUBINTERFACE']._serialized_end=3582 + _globals['_NETINTERFACE_SUBINTERFACES_SUBINTERFACE_SUBIFCONFIG']._serialized_start=3469 + _globals['_NETINTERFACE_SUBINTERFACES_SUBINTERFACE_SUBIFCONFIG']._serialized_end=3582 + _globals['_GETNETINTERFACEREQUEST']._serialized_start=3696 + _globals['_GETNETINTERFACEREQUEST']._serialized_end=3780 + _globals['_LISTNETINTERFACESREQUEST']._serialized_start=3783 + _globals['_LISTNETINTERFACESREQUEST']._serialized_end=3945 + _globals['_LISTNETINTERFACESRESPONSE']._serialized_start=3948 + _globals['_LISTNETINTERFACESRESPONSE']._serialized_end=4107 + _globals['_UPDATENETINTERFACEREQUEST']._serialized_start=4110 + _globals['_UPDATENETINTERFACEREQUEST']._serialized_end=4343 + _globals['_NETINTERFACESERVICE']._serialized_start=4668 + _globals['_NETINTERFACESERVICE']._serialized_end=5316 # @@protoc_insertion_point(module_scope) diff --git a/pydpu/proto/v1/openconfig_interfaces_pb2_grpc.py b/pydpu/proto/v1/networkinterfaces_pb2_grpc.py similarity index 72% rename from pydpu/proto/v1/openconfig_interfaces_pb2_grpc.py rename to pydpu/proto/v1/networkinterfaces_pb2_grpc.py index d271a46..a854de8 100644 --- a/pydpu/proto/v1/openconfig_interfaces_pb2_grpc.py +++ b/pydpu/proto/v1/networkinterfaces_pb2_grpc.py @@ -2,7 +2,7 @@ """Client and server classes corresponding to protobuf-defined services.""" import grpc -import openconfig_interfaces_pb2 as openconfig__interfaces__pb2 +import networkinterfaces_pb2 as networkinterfaces__pb2 class NetInterfaceServiceStub(object): @@ -17,18 +17,18 @@ def __init__(self, channel): """ self.GetNetInterface = channel.unary_unary( '/opi_api.network.opinetcommon.v1alpha1.NetInterfaceService/GetNetInterface', - request_serializer=openconfig__interfaces__pb2.GetNetInterfaceRequest.SerializeToString, - response_deserializer=openconfig__interfaces__pb2.NetInterface.FromString, + request_serializer=networkinterfaces__pb2.GetNetInterfaceRequest.SerializeToString, + response_deserializer=networkinterfaces__pb2.NetInterface.FromString, ) self.ListNetInterfaces = channel.unary_unary( '/opi_api.network.opinetcommon.v1alpha1.NetInterfaceService/ListNetInterfaces', - request_serializer=openconfig__interfaces__pb2.ListNetInterfacesRequest.SerializeToString, - response_deserializer=openconfig__interfaces__pb2.ListNetInterfacesResponse.FromString, + request_serializer=networkinterfaces__pb2.ListNetInterfacesRequest.SerializeToString, + response_deserializer=networkinterfaces__pb2.ListNetInterfacesResponse.FromString, ) self.UpdateNetInterface = channel.unary_unary( '/opi_api.network.opinetcommon.v1alpha1.NetInterfaceService/UpdateNetInterface', - request_serializer=openconfig__interfaces__pb2.UpdateNetInterfaceRequest.SerializeToString, - response_deserializer=openconfig__interfaces__pb2.NetInterface.FromString, + request_serializer=networkinterfaces__pb2.UpdateNetInterfaceRequest.SerializeToString, + response_deserializer=networkinterfaces__pb2.NetInterface.FromString, ) @@ -62,18 +62,18 @@ def add_NetInterfaceServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'GetNetInterface': grpc.unary_unary_rpc_method_handler( servicer.GetNetInterface, - request_deserializer=openconfig__interfaces__pb2.GetNetInterfaceRequest.FromString, - response_serializer=openconfig__interfaces__pb2.NetInterface.SerializeToString, + request_deserializer=networkinterfaces__pb2.GetNetInterfaceRequest.FromString, + response_serializer=networkinterfaces__pb2.NetInterface.SerializeToString, ), 'ListNetInterfaces': grpc.unary_unary_rpc_method_handler( servicer.ListNetInterfaces, - request_deserializer=openconfig__interfaces__pb2.ListNetInterfacesRequest.FromString, - response_serializer=openconfig__interfaces__pb2.ListNetInterfacesResponse.SerializeToString, + request_deserializer=networkinterfaces__pb2.ListNetInterfacesRequest.FromString, + response_serializer=networkinterfaces__pb2.ListNetInterfacesResponse.SerializeToString, ), 'UpdateNetInterface': grpc.unary_unary_rpc_method_handler( servicer.UpdateNetInterface, - request_deserializer=openconfig__interfaces__pb2.UpdateNetInterfaceRequest.FromString, - response_serializer=openconfig__interfaces__pb2.NetInterface.SerializeToString, + request_deserializer=networkinterfaces__pb2.UpdateNetInterfaceRequest.FromString, + response_serializer=networkinterfaces__pb2.NetInterface.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( @@ -98,8 +98,8 @@ def GetNetInterface(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/opi_api.network.opinetcommon.v1alpha1.NetInterfaceService/GetNetInterface', - openconfig__interfaces__pb2.GetNetInterfaceRequest.SerializeToString, - openconfig__interfaces__pb2.NetInterface.FromString, + networkinterfaces__pb2.GetNetInterfaceRequest.SerializeToString, + networkinterfaces__pb2.NetInterface.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -115,8 +115,8 @@ def ListNetInterfaces(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/opi_api.network.opinetcommon.v1alpha1.NetInterfaceService/ListNetInterfaces', - openconfig__interfaces__pb2.ListNetInterfacesRequest.SerializeToString, - openconfig__interfaces__pb2.ListNetInterfacesResponse.FromString, + networkinterfaces__pb2.ListNetInterfacesRequest.SerializeToString, + networkinterfaces__pb2.ListNetInterfacesResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -132,7 +132,7 @@ def UpdateNetInterface(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/opi_api.network.opinetcommon.v1alpha1.NetInterfaceService/UpdateNetInterface', - openconfig__interfaces__pb2.UpdateNetInterfaceRequest.SerializeToString, - openconfig__interfaces__pb2.NetInterface.FromString, + networkinterfaces__pb2.UpdateNetInterfaceRequest.SerializeToString, + networkinterfaces__pb2.NetInterface.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/pydpu/proto/v1/networkvlan_pb2.py b/pydpu/proto/v1/networkvlan_pb2.py new file mode 100644 index 0000000..f8da0e7 --- /dev/null +++ b/pydpu/proto/v1/networkvlan_pb2.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: networkvlan.proto +# Protobuf Python Version: 4.25.2 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11networkvlan.proto\x12%opi_api.network.opinetcommon.v1alpha1\"\xdb\x01\n\x13SwitchedVlanSetting\x12\x61\n\x13vlan_interface_mode\x18\x01 \x01(\x0e\x32\x31.opi_api.network.opinetcommon.v1alpha1.VlanIfModeR\x11vlanInterfaceMode\x12\x1f\n\x0bnative_vlan\x18\x02 \x01(\rR\nnativeVlan\x12\x1f\n\x0b\x61\x63\x63\x65ss_vlan\x18\x03 \x01(\rR\naccessVlan\x12\x1f\n\x0btrunk_vlans\x18\x04 \x01(\tR\ntrunkVlans\"\xb6\x01\n\x0eVlanSwitchedIf\x12R\n\x06\x63onfig\x18\x01 \x01(\x0b\x32:.opi_api.network.opinetcommon.v1alpha1.SwitchedVlanSettingR\x06\x63onfig\x12P\n\x05state\x18\x02 \x01(\x0b\x32:.opi_api.network.opinetcommon.v1alpha1.SwitchedVlanSettingR\x05state\"\xdb\x01\n\x18VlanIngressEgressSetting\x12`\n\x0fvlanstackaction\x18\x01 \x01(\x0e\x32\x36.opi_api.network.opinetcommon.v1alpha1.VlanStackActionR\x0fvlanstackaction\x12\x17\n\x07vlan_id\x18\x02 \x01(\rR\x06vlanId\x12\x44\n\x04tpid\x18\x03 \x01(\x0e\x32\x30.opi_api.network.opinetcommon.v1alpha1.TpidTypesR\x04tpid\"\xac\x0c\n\x06VlanIf\x12M\n\x05match\x18\x01 \x01(\x0b\x32\x37.opi_api.network.opinetcommon.v1alpha1.VlanIf.VlanMatchR\x05match\x12h\n\x0eingressmapping\x18\x02 \x01(\x0b\x32@.opi_api.network.opinetcommon.v1alpha1.VlanIf.VlanIngressMappingR\x0eingressmapping\x12\x65\n\regressmapping\x18\x03 \x01(\x0b\x32?.opi_api.network.opinetcommon.v1alpha1.VlanIf.VlanEgressMappingR\regressmapping\x1a\xf4\x06\n\tVlanMatch\x12h\n\x0csingletagged\x18\x01 \x01(\x0b\x32\x44.opi_api.network.opinetcommon.v1alpha1.VlanIf.VlanMatch.SingleTaggedR\x0csingletagged\x12t\n\x10singletaggedlist\x18\x02 \x01(\x0b\x32H.opi_api.network.opinetcommon.v1alpha1.VlanIf.VlanMatch.SingleTaggedListR\x10singletaggedlist\x1a\xbe\x02\n\x0cSingleTagged\x12l\n\x06\x63onfig\x18\x01 \x01(\x0b\x32T.opi_api.network.opinetcommon.v1alpha1.VlanIf.VlanMatch.SingleTagged.SingleTagConfigR\x06\x63onfig\x12i\n\x05state\x18\x02 \x01(\x0b\x32S.opi_api.network.opinetcommon.v1alpha1.VlanIf.VlanMatch.SingleTagged.SingleTagStateR\x05state\x1a*\n\x0fSingleTagConfig\x12\x17\n\x07vlan_id\x18\x01 \x01(\rR\x06vlanId\x1a)\n\x0eSingleTagState\x12\x17\n\x07vlan_id\x18\x01 \x01(\rR\x06vlanId\x1a\xc5\x02\n\x10SingleTaggedList\x12n\n\x06\x63onfig\x18\x01 \x01(\x0b\x32V.opi_api.network.opinetcommon.v1alpha1.VlanIf.VlanMatch.SingleTaggedList.TagListConfigR\x06\x63onfig\x12n\n\x06status\x18\x02 \x01(\x0b\x32V.opi_api.network.opinetcommon.v1alpha1.VlanIf.VlanMatch.SingleTaggedList.TagListStatusR\x06status\x1a(\n\rTagListConfig\x12\x17\n\x07vlan_id\x18\x01 \x03(\rR\x06vlanId\x1a\'\n\rTagListStatus\x12\x16\n\x06vlanid\x18\x01 \x03(\rR\x06vlanid\x1a\xc4\x01\n\x12VlanIngressMapping\x12W\n\x06\x63onfig\x18\x01 \x01(\x0b\x32?.opi_api.network.opinetcommon.v1alpha1.VlanIngressEgressSettingR\x06\x63onfig\x12U\n\x05state\x18\x02 \x01(\x0b\x32?.opi_api.network.opinetcommon.v1alpha1.VlanIngressEgressSettingR\x05state\x1a\xc3\x01\n\x11VlanEgressMapping\x12W\n\x06\x63onfig\x18\x01 \x01(\x0b\x32?.opi_api.network.opinetcommon.v1alpha1.VlanIngressEgressSettingR\x06\x63onfig\x12U\n\x05state\x18\x02 \x01(\x0b\x32?.opi_api.network.opinetcommon.v1alpha1.VlanIngressEgressSettingR\x05state*\x97\x01\n\tTpidTypes\x12\x1a\n\x16TPID_TYPES_UNSPECIFIED\x10\x00\x12\x15\n\x11TPID_TYPES_0X8100\x10\x01\x12\x15\n\x11TPID_TYPES_0X88A8\x10\x02\x12\x15\n\x11TPID_TYPES_0X9100\x10\x03\x12\x15\n\x11TPID_TYPES_0X9200\x10\x04\x12\x12\n\x0eTPID_TYPES_ANY\x10\x05*\x87\x01\n\x0fVlanStackAction\x12!\n\x1dVLAN_STACK_ACTION_UNSPECIFIED\x10\x00\x12\x1a\n\x16VLAN_STACK_ACTION_PUSH\x10\x01\x12\x19\n\x15VLAN_STACK_ACTION_POP\x10\x02\x12\x1a\n\x16VLAN_STACK_ACTION_SWAP\x10\x03*[\n\nVlanIfMode\x12\x1c\n\x18VLAN_IF_MODE_UNSPECIFIED\x10\x00\x12\x17\n\x13VLAN_IF_MODE_ACCESS\x10\x01\x12\x16\n\x12VLAN_IF_MODE_TRUNK\x10\x02\x42\x7f\n%opi_api.network.opinetcommon.v1alpha1B\x10NetworkVlanProtoP\x01ZBgithub.com/opiproject/opi-api/network/opinetcommon/v1alpha1/gen/gob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'networkvlan_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n%opi_api.network.opinetcommon.v1alpha1B\020NetworkVlanProtoP\001ZBgithub.com/opiproject/opi-api/network/opinetcommon/v1alpha1/gen/go' + _globals['_TPIDTYPES']._serialized_start=2273 + _globals['_TPIDTYPES']._serialized_end=2424 + _globals['_VLANSTACKACTION']._serialized_start=2427 + _globals['_VLANSTACKACTION']._serialized_end=2562 + _globals['_VLANIFMODE']._serialized_start=2564 + _globals['_VLANIFMODE']._serialized_end=2655 + _globals['_SWITCHEDVLANSETTING']._serialized_start=61 + _globals['_SWITCHEDVLANSETTING']._serialized_end=280 + _globals['_VLANSWITCHEDIF']._serialized_start=283 + _globals['_VLANSWITCHEDIF']._serialized_end=465 + _globals['_VLANINGRESSEGRESSSETTING']._serialized_start=468 + _globals['_VLANINGRESSEGRESSSETTING']._serialized_end=687 + _globals['_VLANIF']._serialized_start=690 + _globals['_VLANIF']._serialized_end=2270 + _globals['_VLANIF_VLANMATCH']._serialized_start=989 + _globals['_VLANIF_VLANMATCH']._serialized_end=1873 + _globals['_VLANIF_VLANMATCH_SINGLETAGGED']._serialized_start=1227 + _globals['_VLANIF_VLANMATCH_SINGLETAGGED']._serialized_end=1545 + _globals['_VLANIF_VLANMATCH_SINGLETAGGED_SINGLETAGCONFIG']._serialized_start=1460 + _globals['_VLANIF_VLANMATCH_SINGLETAGGED_SINGLETAGCONFIG']._serialized_end=1502 + _globals['_VLANIF_VLANMATCH_SINGLETAGGED_SINGLETAGSTATE']._serialized_start=1504 + _globals['_VLANIF_VLANMATCH_SINGLETAGGED_SINGLETAGSTATE']._serialized_end=1545 + _globals['_VLANIF_VLANMATCH_SINGLETAGGEDLIST']._serialized_start=1548 + _globals['_VLANIF_VLANMATCH_SINGLETAGGEDLIST']._serialized_end=1873 + _globals['_VLANIF_VLANMATCH_SINGLETAGGEDLIST_TAGLISTCONFIG']._serialized_start=1792 + _globals['_VLANIF_VLANMATCH_SINGLETAGGEDLIST_TAGLISTCONFIG']._serialized_end=1832 + _globals['_VLANIF_VLANMATCH_SINGLETAGGEDLIST_TAGLISTSTATUS']._serialized_start=1834 + _globals['_VLANIF_VLANMATCH_SINGLETAGGEDLIST_TAGLISTSTATUS']._serialized_end=1873 + _globals['_VLANIF_VLANINGRESSMAPPING']._serialized_start=1876 + _globals['_VLANIF_VLANINGRESSMAPPING']._serialized_end=2072 + _globals['_VLANIF_VLANEGRESSMAPPING']._serialized_start=2075 + _globals['_VLANIF_VLANEGRESSMAPPING']._serialized_end=2270 +# @@protoc_insertion_point(module_scope) diff --git a/pydpu/proto/v1/networkvlan_pb2_grpc.py b/pydpu/proto/v1/networkvlan_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/pydpu/proto/v1/networkvlan_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc +