diff --git a/src/device/service/drivers/qkd/QKDDriver.py b/src/device/service/drivers/qkd/QKDDriver.py index beded9bad730c55557c7a3605dd886f5794cc84a..a49144d6fc0840498c5f5f1267d1cef25cb1177a 100644 --- a/src/device/service/drivers/qkd/QKDDriver.py +++ b/src/device/service/drivers/qkd/QKDDriver.py @@ -166,4 +166,3 @@ class QKDDriver(_Driver): # TODO: QKD API Driver does not support monitoring by now LOGGER.info(f'GetState {self.address} called') return [] - diff --git a/src/device/service/drivers/qkd/__init__.py b/src/device/service/drivers/qkd/__init__.py index 15a32c5746ad2d6c6cc22c00f834da70d65841c5..e24e5523a216f79dcec21f2ac21b2262426acc04 100644 --- a/src/device/service/drivers/qkd/__init__.py +++ b/src/device/service/drivers/qkd/__init__.py @@ -24,4 +24,4 @@ RESOURCE_KEY_MAPPINGS = { RESOURCE_APPS : 'apps', RESOURCE_CAPABILITES : 'capabilities', RESOURCE_NODE : 'node' -} \ No newline at end of file +} diff --git a/src/device/tests/qkd/integration/test_external_qkd_retrieve_information.py b/src/device/tests/qkd/integration/test_external_qkd_retrieve_information.py index 7007825239eb92e021c559fc0acfaf24d03cdd11..0bb91191a96d0b3b6cfeef107b50a881c2261e60 100644 --- a/src/device/tests/qkd/integration/test_external_qkd_retrieve_information.py +++ b/src/device/tests/qkd/integration/test_external_qkd_retrieve_information.py @@ -16,8 +16,8 @@ import pytest import requests import json import os -from src.device.service.drivers.qkd.QKDDriver2 import QKDDriver -from src.device.service.drivers.qkd.Tools2 import ( +from device.service.drivers.qkd.QKDDriver2 import QKDDriver +from device.service.drivers.qkd.Tools2 import ( RESOURCE_INTERFACES, RESOURCE_LINKS, RESOURCE_CAPABILITES, diff --git a/src/device/tests/qkd/unit/generated/context_pb2.py b/src/device/tests/qkd/unit/generated/context_pb2.py deleted file mode 100644 index 89c70075bbe224d7f5f2a47578a9775537985c51..0000000000000000000000000000000000000000 --- a/src/device/tests/qkd/unit/generated/context_pb2.py +++ /dev/null @@ -1,994 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: context.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -import acl_pb2 as acl__pb2 -import kpi_sample_types_pb2 as kpi__sample__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rcontext.proto\x12\x07\x63ontext\x1a\tacl.proto\x1a\x16kpi_sample_types.proto\"\x07\n\x05\x45mpty\"\x14\n\x04Uuid\x12\x0c\n\x04uuid\x18\x01 \x01(\t\"\x1e\n\tTimestamp\x12\x11\n\ttimestamp\x18\x01 \x01(\x01\"Z\n\x05\x45vent\x12%\n\ttimestamp\x18\x01 \x01(\x0b\x32\x12.context.Timestamp\x12*\n\nevent_type\x18\x02 \x01(\x0e\x32\x16.context.EventTypeEnum\"0\n\tContextId\x12#\n\x0c\x63ontext_uuid\x18\x01 \x01(\x0b\x32\r.context.Uuid\"\xe9\x01\n\x07\x43ontext\x12&\n\ncontext_id\x18\x01 \x01(\x0b\x32\x12.context.ContextId\x12\x0c\n\x04name\x18\x02 \x01(\t\x12)\n\x0ctopology_ids\x18\x03 \x03(\x0b\x32\x13.context.TopologyId\x12\'\n\x0bservice_ids\x18\x04 \x03(\x0b\x32\x12.context.ServiceId\x12#\n\tslice_ids\x18\x05 \x03(\x0b\x32\x10.context.SliceId\x12/\n\ncontroller\x18\x06 \x01(\x0b\x32\x1b.context.TeraFlowController\"8\n\rContextIdList\x12\'\n\x0b\x63ontext_ids\x18\x01 \x03(\x0b\x32\x12.context.ContextId\"1\n\x0b\x43ontextList\x12\"\n\x08\x63ontexts\x18\x01 \x03(\x0b\x32\x10.context.Context\"U\n\x0c\x43ontextEvent\x12\x1d\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x0e.context.Event\x12&\n\ncontext_id\x18\x02 \x01(\x0b\x32\x12.context.ContextId\"Z\n\nTopologyId\x12&\n\ncontext_id\x18\x01 \x01(\x0b\x32\x12.context.ContextId\x12$\n\rtopology_uuid\x18\x02 \x01(\x0b\x32\r.context.Uuid\"\x8c\x01\n\x08Topology\x12(\n\x0btopology_id\x18\x01 \x01(\x0b\x32\x13.context.TopologyId\x12\x0c\n\x04name\x18\x02 \x01(\t\x12%\n\ndevice_ids\x18\x03 \x03(\x0b\x32\x11.context.DeviceId\x12!\n\x08link_ids\x18\x04 \x03(\x0b\x32\x0f.context.LinkId\"\x89\x01\n\x0fTopologyDetails\x12(\n\x0btopology_id\x18\x01 \x01(\x0b\x32\x13.context.TopologyId\x12\x0c\n\x04name\x18\x02 \x01(\t\x12 \n\x07\x64\x65vices\x18\x03 \x03(\x0b\x32\x0f.context.Device\x12\x1c\n\x05links\x18\x04 \x03(\x0b\x32\r.context.Link\";\n\x0eTopologyIdList\x12)\n\x0ctopology_ids\x18\x01 \x03(\x0b\x32\x13.context.TopologyId\"5\n\x0cTopologyList\x12%\n\ntopologies\x18\x01 \x03(\x0b\x32\x11.context.Topology\"X\n\rTopologyEvent\x12\x1d\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x0e.context.Event\x12(\n\x0btopology_id\x18\x02 \x01(\x0b\x32\x13.context.TopologyId\".\n\x08\x44\x65viceId\x12\"\n\x0b\x64\x65vice_uuid\x18\x01 \x01(\x0b\x32\r.context.Uuid\"\xfa\x02\n\x06\x44\x65vice\x12$\n\tdevice_id\x18\x01 \x01(\x0b\x32\x11.context.DeviceId\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65vice_type\x18\x03 \x01(\t\x12,\n\rdevice_config\x18\x04 \x01(\x0b\x32\x15.context.DeviceConfig\x12G\n\x19\x64\x65vice_operational_status\x18\x05 \x01(\x0e\x32$.context.DeviceOperationalStatusEnum\x12\x31\n\x0e\x64\x65vice_drivers\x18\x06 \x03(\x0e\x32\x19.context.DeviceDriverEnum\x12+\n\x10\x64\x65vice_endpoints\x18\x07 \x03(\x0b\x32\x11.context.EndPoint\x12&\n\ncomponents\x18\x08 \x03(\x0b\x32\x12.context.Component\x12(\n\rcontroller_id\x18\t \x01(\x0b\x32\x11.context.DeviceId\"\xc9\x01\n\tComponent\x12%\n\x0e\x63omponent_uuid\x18\x01 \x01(\x0b\x32\r.context.Uuid\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x36\n\nattributes\x18\x04 \x03(\x0b\x32\".context.Component.AttributesEntry\x12\x0e\n\x06parent\x18\x05 \x01(\t\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"9\n\x0c\x44\x65viceConfig\x12)\n\x0c\x63onfig_rules\x18\x01 \x03(\x0b\x32\x13.context.ConfigRule\"5\n\x0c\x44\x65viceIdList\x12%\n\ndevice_ids\x18\x01 \x03(\x0b\x32\x11.context.DeviceId\".\n\nDeviceList\x12 \n\x07\x64\x65vices\x18\x01 \x03(\x0b\x32\x0f.context.Device\"\x8e\x01\n\x0c\x44\x65viceFilter\x12)\n\ndevice_ids\x18\x01 \x01(\x0b\x32\x15.context.DeviceIdList\x12\x19\n\x11include_endpoints\x18\x02 \x01(\x08\x12\x1c\n\x14include_config_rules\x18\x03 \x01(\x08\x12\x1a\n\x12include_components\x18\x04 \x01(\x08\"\x80\x01\n\x0b\x44\x65viceEvent\x12\x1d\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x0e.context.Event\x12$\n\tdevice_id\x18\x02 \x01(\x0b\x32\x11.context.DeviceId\x12,\n\rdevice_config\x18\x03 \x01(\x0b\x32\x15.context.DeviceConfig\"*\n\x06LinkId\x12 \n\tlink_uuid\x18\x01 \x01(\x0b\x32\r.context.Uuid\"I\n\x0eLinkAttributes\x12\x1b\n\x13total_capacity_gbps\x18\x01 \x01(\x02\x12\x1a\n\x12used_capacity_gbps\x18\x02 \x01(\x02\"\x93\x01\n\x04Link\x12 \n\x07link_id\x18\x01 \x01(\x0b\x32\x0f.context.LinkId\x12\x0c\n\x04name\x18\x02 \x01(\t\x12.\n\x11link_endpoint_ids\x18\x03 \x03(\x0b\x32\x13.context.EndPointId\x12+\n\nattributes\x18\x04 \x01(\x0b\x32\x17.context.LinkAttributes\"/\n\nLinkIdList\x12!\n\x08link_ids\x18\x01 \x03(\x0b\x32\x0f.context.LinkId\"(\n\x08LinkList\x12\x1c\n\x05links\x18\x01 \x03(\x0b\x32\r.context.Link\"L\n\tLinkEvent\x12\x1d\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x0e.context.Event\x12 \n\x07link_id\x18\x02 \x01(\x0b\x32\x0f.context.LinkId\"X\n\tServiceId\x12&\n\ncontext_id\x18\x01 \x01(\x0b\x32\x12.context.ContextId\x12#\n\x0cservice_uuid\x18\x02 \x01(\x0b\x32\r.context.Uuid\"\xdb\x02\n\x07Service\x12&\n\nservice_id\x18\x01 \x01(\x0b\x32\x12.context.ServiceId\x12\x0c\n\x04name\x18\x02 \x01(\t\x12.\n\x0cservice_type\x18\x03 \x01(\x0e\x32\x18.context.ServiceTypeEnum\x12\x31\n\x14service_endpoint_ids\x18\x04 \x03(\x0b\x32\x13.context.EndPointId\x12\x30\n\x13service_constraints\x18\x05 \x03(\x0b\x32\x13.context.Constraint\x12.\n\x0eservice_status\x18\x06 \x01(\x0b\x32\x16.context.ServiceStatus\x12.\n\x0eservice_config\x18\x07 \x01(\x0b\x32\x16.context.ServiceConfig\x12%\n\ttimestamp\x18\x08 \x01(\x0b\x32\x12.context.Timestamp\"C\n\rServiceStatus\x12\x32\n\x0eservice_status\x18\x01 \x01(\x0e\x32\x1a.context.ServiceStatusEnum\":\n\rServiceConfig\x12)\n\x0c\x63onfig_rules\x18\x01 \x03(\x0b\x32\x13.context.ConfigRule\"8\n\rServiceIdList\x12\'\n\x0bservice_ids\x18\x01 \x03(\x0b\x32\x12.context.ServiceId\"1\n\x0bServiceList\x12\"\n\x08services\x18\x01 \x03(\x0b\x32\x10.context.Service\"\x95\x01\n\rServiceFilter\x12+\n\x0bservice_ids\x18\x01 \x01(\x0b\x32\x16.context.ServiceIdList\x12\x1c\n\x14include_endpoint_ids\x18\x02 \x01(\x08\x12\x1b\n\x13include_constraints\x18\x03 \x01(\x08\x12\x1c\n\x14include_config_rules\x18\x04 \x01(\x08\"U\n\x0cServiceEvent\x12\x1d\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x0e.context.Event\x12&\n\nservice_id\x18\x02 \x01(\x0b\x32\x12.context.ServiceId\"T\n\x07SliceId\x12&\n\ncontext_id\x18\x01 \x01(\x0b\x32\x12.context.ContextId\x12!\n\nslice_uuid\x18\x02 \x01(\x0b\x32\r.context.Uuid\"\xa0\x03\n\x05Slice\x12\"\n\x08slice_id\x18\x01 \x01(\x0b\x32\x10.context.SliceId\x12\x0c\n\x04name\x18\x02 \x01(\t\x12/\n\x12slice_endpoint_ids\x18\x03 \x03(\x0b\x32\x13.context.EndPointId\x12.\n\x11slice_constraints\x18\x04 \x03(\x0b\x32\x13.context.Constraint\x12-\n\x11slice_service_ids\x18\x05 \x03(\x0b\x32\x12.context.ServiceId\x12,\n\x12slice_subslice_ids\x18\x06 \x03(\x0b\x32\x10.context.SliceId\x12*\n\x0cslice_status\x18\x07 \x01(\x0b\x32\x14.context.SliceStatus\x12*\n\x0cslice_config\x18\x08 \x01(\x0b\x32\x14.context.SliceConfig\x12(\n\x0bslice_owner\x18\t \x01(\x0b\x32\x13.context.SliceOwner\x12%\n\ttimestamp\x18\n \x01(\x0b\x32\x12.context.Timestamp\"E\n\nSliceOwner\x12!\n\nowner_uuid\x18\x01 \x01(\x0b\x32\r.context.Uuid\x12\x14\n\x0cowner_string\x18\x02 \x01(\t\"=\n\x0bSliceStatus\x12.\n\x0cslice_status\x18\x01 \x01(\x0e\x32\x18.context.SliceStatusEnum\"8\n\x0bSliceConfig\x12)\n\x0c\x63onfig_rules\x18\x01 \x03(\x0b\x32\x13.context.ConfigRule\"2\n\x0bSliceIdList\x12#\n\tslice_ids\x18\x01 \x03(\x0b\x32\x10.context.SliceId\"+\n\tSliceList\x12\x1e\n\x06slices\x18\x01 \x03(\x0b\x32\x0e.context.Slice\"\xca\x01\n\x0bSliceFilter\x12\'\n\tslice_ids\x18\x01 \x01(\x0b\x32\x14.context.SliceIdList\x12\x1c\n\x14include_endpoint_ids\x18\x02 \x01(\x08\x12\x1b\n\x13include_constraints\x18\x03 \x01(\x08\x12\x1b\n\x13include_service_ids\x18\x04 \x01(\x08\x12\x1c\n\x14include_subslice_ids\x18\x05 \x01(\x08\x12\x1c\n\x14include_config_rules\x18\x06 \x01(\x08\"O\n\nSliceEvent\x12\x1d\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x0e.context.Event\x12\"\n\x08slice_id\x18\x02 \x01(\x0b\x32\x10.context.SliceId\"6\n\x0c\x43onnectionId\x12&\n\x0f\x63onnection_uuid\x18\x01 \x01(\x0b\x32\r.context.Uuid\"2\n\x15\x43onnectionSettings_L0\x12\x19\n\x11lsp_symbolic_name\x18\x01 \x01(\t\"\x9e\x01\n\x15\x43onnectionSettings_L2\x12\x17\n\x0fsrc_mac_address\x18\x01 \x01(\t\x12\x17\n\x0f\x64st_mac_address\x18\x02 \x01(\t\x12\x12\n\nether_type\x18\x03 \x01(\r\x12\x0f\n\x07vlan_id\x18\x04 \x01(\r\x12\x12\n\nmpls_label\x18\x05 \x01(\r\x12\x1a\n\x12mpls_traffic_class\x18\x06 \x01(\r\"t\n\x15\x43onnectionSettings_L3\x12\x16\n\x0esrc_ip_address\x18\x01 \x01(\t\x12\x16\n\x0e\x64st_ip_address\x18\x02 \x01(\t\x12\x0c\n\x04\x64scp\x18\x03 \x01(\r\x12\x10\n\x08protocol\x18\x04 \x01(\r\x12\x0b\n\x03ttl\x18\x05 \x01(\r\"[\n\x15\x43onnectionSettings_L4\x12\x10\n\x08src_port\x18\x01 \x01(\r\x12\x10\n\x08\x64st_port\x18\x02 \x01(\r\x12\x11\n\ttcp_flags\x18\x03 \x01(\r\x12\x0b\n\x03ttl\x18\x04 \x01(\r\"\xc4\x01\n\x12\x43onnectionSettings\x12*\n\x02l0\x18\x01 \x01(\x0b\x32\x1e.context.ConnectionSettings_L0\x12*\n\x02l2\x18\x02 \x01(\x0b\x32\x1e.context.ConnectionSettings_L2\x12*\n\x02l3\x18\x03 \x01(\x0b\x32\x1e.context.ConnectionSettings_L3\x12*\n\x02l4\x18\x04 \x01(\x0b\x32\x1e.context.ConnectionSettings_L4\"\xf3\x01\n\nConnection\x12,\n\rconnection_id\x18\x01 \x01(\x0b\x32\x15.context.ConnectionId\x12&\n\nservice_id\x18\x02 \x01(\x0b\x32\x12.context.ServiceId\x12\x33\n\x16path_hops_endpoint_ids\x18\x03 \x03(\x0b\x32\x13.context.EndPointId\x12+\n\x0fsub_service_ids\x18\x04 \x03(\x0b\x32\x12.context.ServiceId\x12-\n\x08settings\x18\x05 \x01(\x0b\x32\x1b.context.ConnectionSettings\"A\n\x10\x43onnectionIdList\x12-\n\x0e\x63onnection_ids\x18\x01 \x03(\x0b\x32\x15.context.ConnectionId\":\n\x0e\x43onnectionList\x12(\n\x0b\x63onnections\x18\x01 \x03(\x0b\x32\x13.context.Connection\"^\n\x0f\x43onnectionEvent\x12\x1d\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x0e.context.Event\x12,\n\rconnection_id\x18\x02 \x01(\x0b\x32\x15.context.ConnectionId\"\x82\x01\n\nEndPointId\x12(\n\x0btopology_id\x18\x01 \x01(\x0b\x32\x13.context.TopologyId\x12$\n\tdevice_id\x18\x02 \x01(\x0b\x32\x11.context.DeviceId\x12$\n\rendpoint_uuid\x18\x03 \x01(\x0b\x32\r.context.Uuid\"\xc2\x01\n\x08\x45ndPoint\x12(\n\x0b\x65ndpoint_id\x18\x01 \x01(\x0b\x32\x13.context.EndPointId\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x15\n\rendpoint_type\x18\x03 \x01(\t\x12\x39\n\x10kpi_sample_types\x18\x04 \x03(\x0e\x32\x1f.kpi_sample_types.KpiSampleType\x12,\n\x11\x65ndpoint_location\x18\x05 \x01(\x0b\x32\x11.context.Location\"{\n\x0c\x45ndPointName\x12(\n\x0b\x65ndpoint_id\x18\x01 \x01(\x0b\x32\x13.context.EndPointId\x12\x13\n\x0b\x64\x65vice_name\x18\x02 \x01(\t\x12\x15\n\rendpoint_name\x18\x03 \x01(\t\x12\x15\n\rendpoint_type\x18\x04 \x01(\t\";\n\x0e\x45ndPointIdList\x12)\n\x0c\x65ndpoint_ids\x18\x01 \x03(\x0b\x32\x13.context.EndPointId\"A\n\x10\x45ndPointNameList\x12-\n\x0e\x65ndpoint_names\x18\x01 \x03(\x0b\x32\x15.context.EndPointName\"A\n\x11\x43onfigRule_Custom\x12\x14\n\x0cresource_key\x18\x01 \x01(\t\x12\x16\n\x0eresource_value\x18\x02 \x01(\t\"]\n\x0e\x43onfigRule_ACL\x12(\n\x0b\x65ndpoint_id\x18\x01 \x01(\x0b\x32\x13.context.EndPointId\x12!\n\x08rule_set\x18\x02 \x01(\x0b\x32\x0f.acl.AclRuleSet\"\x9c\x01\n\nConfigRule\x12)\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x19.context.ConfigActionEnum\x12,\n\x06\x63ustom\x18\x02 \x01(\x0b\x32\x1a.context.ConfigRule_CustomH\x00\x12&\n\x03\x61\x63l\x18\x03 \x01(\x0b\x32\x17.context.ConfigRule_ACLH\x00\x42\r\n\x0b\x63onfig_rule\"F\n\x11\x43onstraint_Custom\x12\x17\n\x0f\x63onstraint_type\x18\x01 \x01(\t\x12\x18\n\x10\x63onstraint_value\x18\x02 \x01(\t\"E\n\x13\x43onstraint_Schedule\x12\x17\n\x0fstart_timestamp\x18\x01 \x01(\x02\x12\x15\n\rduration_days\x18\x02 \x01(\x02\"3\n\x0cGPS_Position\x12\x10\n\x08latitude\x18\x01 \x01(\x02\x12\x11\n\tlongitude\x18\x02 \x01(\x02\"W\n\x08Location\x12\x10\n\x06region\x18\x01 \x01(\tH\x00\x12-\n\x0cgps_position\x18\x02 \x01(\x0b\x32\x15.context.GPS_PositionH\x00\x42\n\n\x08location\"l\n\x1b\x43onstraint_EndPointLocation\x12(\n\x0b\x65ndpoint_id\x18\x01 \x01(\x0b\x32\x13.context.EndPointId\x12#\n\x08location\x18\x02 \x01(\x0b\x32\x11.context.Location\"Y\n\x1b\x43onstraint_EndPointPriority\x12(\n\x0b\x65ndpoint_id\x18\x01 \x01(\x0b\x32\x13.context.EndPointId\x12\x10\n\x08priority\x18\x02 \x01(\r\"0\n\x16\x43onstraint_SLA_Latency\x12\x16\n\x0e\x65\x32\x65_latency_ms\x18\x01 \x01(\x02\"0\n\x17\x43onstraint_SLA_Capacity\x12\x15\n\rcapacity_gbps\x18\x01 \x01(\x02\"c\n\x1b\x43onstraint_SLA_Availability\x12\x1a\n\x12num_disjoint_paths\x18\x01 \x01(\r\x12\x12\n\nall_active\x18\x02 \x01(\x08\x12\x14\n\x0c\x61vailability\x18\x03 \x01(\x02\"V\n\x1e\x43onstraint_SLA_Isolation_level\x12\x34\n\x0fisolation_level\x18\x01 \x03(\x0e\x32\x1b.context.IsolationLevelEnum\"\xa2\x01\n\x15\x43onstraint_Exclusions\x12\x14\n\x0cis_permanent\x18\x01 \x01(\x08\x12%\n\ndevice_ids\x18\x02 \x03(\x0b\x32\x11.context.DeviceId\x12)\n\x0c\x65ndpoint_ids\x18\x03 \x03(\x0b\x32\x13.context.EndPointId\x12!\n\x08link_ids\x18\x04 \x03(\x0b\x32\x0f.context.LinkId\"\xdb\x04\n\nConstraint\x12-\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x1d.context.ConstraintActionEnum\x12,\n\x06\x63ustom\x18\x02 \x01(\x0b\x32\x1a.context.Constraint_CustomH\x00\x12\x30\n\x08schedule\x18\x03 \x01(\x0b\x32\x1c.context.Constraint_ScheduleH\x00\x12\x41\n\x11\x65ndpoint_location\x18\x04 \x01(\x0b\x32$.context.Constraint_EndPointLocationH\x00\x12\x41\n\x11\x65ndpoint_priority\x18\x05 \x01(\x0b\x32$.context.Constraint_EndPointPriorityH\x00\x12\x38\n\x0csla_capacity\x18\x06 \x01(\x0b\x32 .context.Constraint_SLA_CapacityH\x00\x12\x36\n\x0bsla_latency\x18\x07 \x01(\x0b\x32\x1f.context.Constraint_SLA_LatencyH\x00\x12@\n\x10sla_availability\x18\x08 \x01(\x0b\x32$.context.Constraint_SLA_AvailabilityH\x00\x12@\n\rsla_isolation\x18\t \x01(\x0b\x32\'.context.Constraint_SLA_Isolation_levelH\x00\x12\x34\n\nexclusions\x18\n \x01(\x0b\x32\x1e.context.Constraint_ExclusionsH\x00\x42\x0c\n\nconstraint\"^\n\x12TeraFlowController\x12&\n\ncontext_id\x18\x01 \x01(\x0b\x32\x12.context.ContextId\x12\x12\n\nip_address\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\r\"U\n\x14\x41uthenticationResult\x12&\n\ncontext_id\x18\x01 \x01(\x0b\x32\x12.context.ContextId\x12\x15\n\rauthenticated\x18\x02 \x01(\x08\"-\n\x0fOpticalConfigId\x12\x1a\n\x12opticalconfig_uuid\x18\x01 \x01(\t\"S\n\rOpticalConfig\x12\x32\n\x10opticalconfig_id\x18\x01 \x01(\x0b\x32\x18.context.OpticalConfigId\x12\x0e\n\x06\x63onfig\x18\x02 \x01(\t\"C\n\x11OpticalConfigList\x12.\n\x0eopticalconfigs\x18\x01 \x03(\x0b\x32\x16.context.OpticalConfig\"9\n\rOpticalLinkId\x12(\n\x11optical_link_uuid\x18\x01 \x01(\x0b\x32\r.context.Uuid\",\n\x07\x46iberId\x12!\n\nfiber_uuid\x18\x01 \x01(\x0b\x32\r.context.Uuid\"\xe1\x01\n\x05\x46iber\x12\n\n\x02ID\x18\n \x01(\t\x12\x10\n\x08src_port\x18\x01 \x01(\t\x12\x10\n\x08\x64st_port\x18\x02 \x01(\t\x12\x17\n\x0flocal_peer_port\x18\x03 \x01(\t\x12\x18\n\x10remote_peer_port\x18\x04 \x01(\t\x12\x0f\n\x07\x63_slots\x18\x05 \x03(\x05\x12\x0f\n\x07l_slots\x18\x06 \x03(\x05\x12\x0f\n\x07s_slots\x18\x07 \x03(\x05\x12\x0e\n\x06length\x18\x08 \x01(\x02\x12\x0c\n\x04used\x18\t \x01(\x08\x12$\n\nfiber_uuid\x18\x0b \x01(\x0b\x32\x10.context.FiberId\"d\n\x12OpticalLinkDetails\x12\x0e\n\x06length\x18\x01 \x01(\x02\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x0e\n\x06target\x18\x03 \x01(\t\x12\x1e\n\x06\x66ibers\x18\x04 \x03(\x0b\x32\x0e.context.Fiber\"|\n\x0bOpticalLink\x12\x0c\n\x04name\x18\x01 \x01(\t\x12,\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x1b.context.OpticalLinkDetails\x12\x31\n\x11optical_link_uuid\x18\x03 \x01(\x0b\x32\x16.context.OpticalLinkId*j\n\rEventTypeEnum\x12\x17\n\x13\x45VENTTYPE_UNDEFINED\x10\x00\x12\x14\n\x10\x45VENTTYPE_CREATE\x10\x01\x12\x14\n\x10\x45VENTTYPE_UPDATE\x10\x02\x12\x14\n\x10\x45VENTTYPE_REMOVE\x10\x03*\xfe\x02\n\x10\x44\x65viceDriverEnum\x12\x1a\n\x16\x44\x45VICEDRIVER_UNDEFINED\x10\x00\x12\x1b\n\x17\x44\x45VICEDRIVER_OPENCONFIG\x10\x01\x12\x1e\n\x1a\x44\x45VICEDRIVER_TRANSPORT_API\x10\x02\x12\x13\n\x0f\x44\x45VICEDRIVER_P4\x10\x03\x12&\n\"DEVICEDRIVER_IETF_NETWORK_TOPOLOGY\x10\x04\x12\x1b\n\x17\x44\x45VICEDRIVER_ONF_TR_532\x10\x05\x12\x13\n\x0f\x44\x45VICEDRIVER_XR\x10\x06\x12\x1b\n\x17\x44\x45VICEDRIVER_IETF_L2VPN\x10\x07\x12 \n\x1c\x44\x45VICEDRIVER_GNMI_OPENCONFIG\x10\x08\x12\x1c\n\x18\x44\x45VICEDRIVER_OPTICAL_TFS\x10\t\x12\x1a\n\x16\x44\x45VICEDRIVER_IETF_ACTN\x10\n\x12\x13\n\x0f\x44\x45VICEDRIVER_OC\x10\x0b\x12\x14\n\x10\x44\x45VICEDRIVER_QKD\x10\x0c*\x8f\x01\n\x1b\x44\x65viceOperationalStatusEnum\x12%\n!DEVICEOPERATIONALSTATUS_UNDEFINED\x10\x00\x12$\n DEVICEOPERATIONALSTATUS_DISABLED\x10\x01\x12#\n\x1f\x44\x45VICEOPERATIONALSTATUS_ENABLED\x10\x02*\xe5\x01\n\x0fServiceTypeEnum\x12\x17\n\x13SERVICETYPE_UNKNOWN\x10\x00\x12\x14\n\x10SERVICETYPE_L3NM\x10\x01\x12\x14\n\x10SERVICETYPE_L2NM\x10\x02\x12)\n%SERVICETYPE_TAPI_CONNECTIVITY_SERVICE\x10\x03\x12\x12\n\x0eSERVICETYPE_TE\x10\x04\x12\x13\n\x0fSERVICETYPE_E2E\x10\x05\x12$\n SERVICETYPE_OPTICAL_CONNECTIVITY\x10\x06\x12\x13\n\x0fSERVICETYPE_QKD\x10\x07*\xc4\x01\n\x11ServiceStatusEnum\x12\x1b\n\x17SERVICESTATUS_UNDEFINED\x10\x00\x12\x19\n\x15SERVICESTATUS_PLANNED\x10\x01\x12\x18\n\x14SERVICESTATUS_ACTIVE\x10\x02\x12\x1a\n\x16SERVICESTATUS_UPDATING\x10\x03\x12!\n\x1dSERVICESTATUS_PENDING_REMOVAL\x10\x04\x12\x1e\n\x1aSERVICESTATUS_SLA_VIOLATED\x10\x05*\xa9\x01\n\x0fSliceStatusEnum\x12\x19\n\x15SLICESTATUS_UNDEFINED\x10\x00\x12\x17\n\x13SLICESTATUS_PLANNED\x10\x01\x12\x14\n\x10SLICESTATUS_INIT\x10\x02\x12\x16\n\x12SLICESTATUS_ACTIVE\x10\x03\x12\x16\n\x12SLICESTATUS_DEINIT\x10\x04\x12\x1c\n\x18SLICESTATUS_SLA_VIOLATED\x10\x05*]\n\x10\x43onfigActionEnum\x12\x1a\n\x16\x43ONFIGACTION_UNDEFINED\x10\x00\x12\x14\n\x10\x43ONFIGACTION_SET\x10\x01\x12\x17\n\x13\x43ONFIGACTION_DELETE\x10\x02*m\n\x14\x43onstraintActionEnum\x12\x1e\n\x1a\x43ONSTRAINTACTION_UNDEFINED\x10\x00\x12\x18\n\x14\x43ONSTRAINTACTION_SET\x10\x01\x12\x1b\n\x17\x43ONSTRAINTACTION_DELETE\x10\x02*\x83\x02\n\x12IsolationLevelEnum\x12\x10\n\x0cNO_ISOLATION\x10\x00\x12\x16\n\x12PHYSICAL_ISOLATION\x10\x01\x12\x15\n\x11LOGICAL_ISOLATION\x10\x02\x12\x15\n\x11PROCESS_ISOLATION\x10\x03\x12\x1d\n\x19PHYSICAL_MEMORY_ISOLATION\x10\x04\x12\x1e\n\x1aPHYSICAL_NETWORK_ISOLATION\x10\x05\x12\x1e\n\x1aVIRTUAL_RESOURCE_ISOLATION\x10\x06\x12\x1f\n\x1bNETWORK_FUNCTIONS_ISOLATION\x10\x07\x12\x15\n\x11SERVICE_ISOLATION\x10\x08\x32\xa6\x19\n\x0e\x43ontextService\x12:\n\x0eListContextIds\x12\x0e.context.Empty\x1a\x16.context.ContextIdList\"\x00\x12\x36\n\x0cListContexts\x12\x0e.context.Empty\x1a\x14.context.ContextList\"\x00\x12\x34\n\nGetContext\x12\x12.context.ContextId\x1a\x10.context.Context\"\x00\x12\x34\n\nSetContext\x12\x10.context.Context\x1a\x12.context.ContextId\"\x00\x12\x35\n\rRemoveContext\x12\x12.context.ContextId\x1a\x0e.context.Empty\"\x00\x12=\n\x10GetContextEvents\x12\x0e.context.Empty\x1a\x15.context.ContextEvent\"\x00\x30\x01\x12@\n\x0fListTopologyIds\x12\x12.context.ContextId\x1a\x17.context.TopologyIdList\"\x00\x12=\n\x0eListTopologies\x12\x12.context.ContextId\x1a\x15.context.TopologyList\"\x00\x12\x37\n\x0bGetTopology\x12\x13.context.TopologyId\x1a\x11.context.Topology\"\x00\x12\x45\n\x12GetTopologyDetails\x12\x13.context.TopologyId\x1a\x18.context.TopologyDetails\"\x00\x12\x37\n\x0bSetTopology\x12\x11.context.Topology\x1a\x13.context.TopologyId\"\x00\x12\x37\n\x0eRemoveTopology\x12\x13.context.TopologyId\x1a\x0e.context.Empty\"\x00\x12?\n\x11GetTopologyEvents\x12\x0e.context.Empty\x1a\x16.context.TopologyEvent\"\x00\x30\x01\x12\x38\n\rListDeviceIds\x12\x0e.context.Empty\x1a\x15.context.DeviceIdList\"\x00\x12\x34\n\x0bListDevices\x12\x0e.context.Empty\x1a\x13.context.DeviceList\"\x00\x12\x31\n\tGetDevice\x12\x11.context.DeviceId\x1a\x0f.context.Device\"\x00\x12\x31\n\tSetDevice\x12\x0f.context.Device\x1a\x11.context.DeviceId\"\x00\x12\x33\n\x0cRemoveDevice\x12\x11.context.DeviceId\x1a\x0e.context.Empty\"\x00\x12;\n\x0fGetDeviceEvents\x12\x0e.context.Empty\x1a\x14.context.DeviceEvent\"\x00\x30\x01\x12<\n\x0cSelectDevice\x12\x15.context.DeviceFilter\x1a\x13.context.DeviceList\"\x00\x12I\n\x11ListEndPointNames\x12\x17.context.EndPointIdList\x1a\x19.context.EndPointNameList\"\x00\x12\x34\n\x0bListLinkIds\x12\x0e.context.Empty\x1a\x13.context.LinkIdList\"\x00\x12\x30\n\tListLinks\x12\x0e.context.Empty\x1a\x11.context.LinkList\"\x00\x12+\n\x07GetLink\x12\x0f.context.LinkId\x1a\r.context.Link\"\x00\x12+\n\x07SetLink\x12\r.context.Link\x1a\x0f.context.LinkId\"\x00\x12/\n\nRemoveLink\x12\x0f.context.LinkId\x1a\x0e.context.Empty\"\x00\x12\x37\n\rGetLinkEvents\x12\x0e.context.Empty\x1a\x12.context.LinkEvent\"\x00\x30\x01\x12>\n\x0eListServiceIds\x12\x12.context.ContextId\x1a\x16.context.ServiceIdList\"\x00\x12:\n\x0cListServices\x12\x12.context.ContextId\x1a\x14.context.ServiceList\"\x00\x12\x34\n\nGetService\x12\x12.context.ServiceId\x1a\x10.context.Service\"\x00\x12\x34\n\nSetService\x12\x10.context.Service\x1a\x12.context.ServiceId\"\x00\x12\x36\n\x0cUnsetService\x12\x10.context.Service\x1a\x12.context.ServiceId\"\x00\x12\x35\n\rRemoveService\x12\x12.context.ServiceId\x1a\x0e.context.Empty\"\x00\x12=\n\x10GetServiceEvents\x12\x0e.context.Empty\x1a\x15.context.ServiceEvent\"\x00\x30\x01\x12?\n\rSelectService\x12\x16.context.ServiceFilter\x1a\x14.context.ServiceList\"\x00\x12:\n\x0cListSliceIds\x12\x12.context.ContextId\x1a\x14.context.SliceIdList\"\x00\x12\x36\n\nListSlices\x12\x12.context.ContextId\x1a\x12.context.SliceList\"\x00\x12.\n\x08GetSlice\x12\x10.context.SliceId\x1a\x0e.context.Slice\"\x00\x12.\n\x08SetSlice\x12\x0e.context.Slice\x1a\x10.context.SliceId\"\x00\x12\x30\n\nUnsetSlice\x12\x0e.context.Slice\x1a\x10.context.SliceId\"\x00\x12\x31\n\x0bRemoveSlice\x12\x10.context.SliceId\x1a\x0e.context.Empty\"\x00\x12\x39\n\x0eGetSliceEvents\x12\x0e.context.Empty\x1a\x13.context.SliceEvent\"\x00\x30\x01\x12\x39\n\x0bSelectSlice\x12\x14.context.SliceFilter\x1a\x12.context.SliceList\"\x00\x12\x44\n\x11ListConnectionIds\x12\x12.context.ServiceId\x1a\x19.context.ConnectionIdList\"\x00\x12@\n\x0fListConnections\x12\x12.context.ServiceId\x1a\x17.context.ConnectionList\"\x00\x12=\n\rGetConnection\x12\x15.context.ConnectionId\x1a\x13.context.Connection\"\x00\x12=\n\rSetConnection\x12\x13.context.Connection\x1a\x15.context.ConnectionId\"\x00\x12;\n\x10RemoveConnection\x12\x15.context.ConnectionId\x1a\x0e.context.Empty\"\x00\x12\x43\n\x13GetConnectionEvents\x12\x0e.context.Empty\x1a\x18.context.ConnectionEvent\"\x00\x30\x01\x12@\n\x10GetOpticalConfig\x12\x0e.context.Empty\x1a\x1a.context.OpticalConfigList\"\x00\x12\x46\n\x10SetOpticalConfig\x12\x16.context.OpticalConfig\x1a\x18.context.OpticalConfigId\"\x00\x12I\n\x13SelectOpticalConfig\x12\x18.context.OpticalConfigId\x1a\x16.context.OpticalConfig\"\x00\x12\x38\n\x0eSetOpticalLink\x12\x14.context.OpticalLink\x1a\x0e.context.Empty\"\x00\x12@\n\x0eGetOpticalLink\x12\x16.context.OpticalLinkId\x1a\x14.context.OpticalLink\"\x00\x12.\n\x08GetFiber\x12\x10.context.FiberId\x1a\x0e.context.Fiber\"\x00\x62\x06proto3') - -_EVENTTYPEENUM = DESCRIPTOR.enum_types_by_name['EventTypeEnum'] -EventTypeEnum = enum_type_wrapper.EnumTypeWrapper(_EVENTTYPEENUM) -_DEVICEDRIVERENUM = DESCRIPTOR.enum_types_by_name['DeviceDriverEnum'] -DeviceDriverEnum = enum_type_wrapper.EnumTypeWrapper(_DEVICEDRIVERENUM) -_DEVICEOPERATIONALSTATUSENUM = DESCRIPTOR.enum_types_by_name['DeviceOperationalStatusEnum'] -DeviceOperationalStatusEnum = enum_type_wrapper.EnumTypeWrapper(_DEVICEOPERATIONALSTATUSENUM) -_SERVICETYPEENUM = DESCRIPTOR.enum_types_by_name['ServiceTypeEnum'] -ServiceTypeEnum = enum_type_wrapper.EnumTypeWrapper(_SERVICETYPEENUM) -_SERVICESTATUSENUM = DESCRIPTOR.enum_types_by_name['ServiceStatusEnum'] -ServiceStatusEnum = enum_type_wrapper.EnumTypeWrapper(_SERVICESTATUSENUM) -_SLICESTATUSENUM = DESCRIPTOR.enum_types_by_name['SliceStatusEnum'] -SliceStatusEnum = enum_type_wrapper.EnumTypeWrapper(_SLICESTATUSENUM) -_CONFIGACTIONENUM = DESCRIPTOR.enum_types_by_name['ConfigActionEnum'] -ConfigActionEnum = enum_type_wrapper.EnumTypeWrapper(_CONFIGACTIONENUM) -_CONSTRAINTACTIONENUM = DESCRIPTOR.enum_types_by_name['ConstraintActionEnum'] -ConstraintActionEnum = enum_type_wrapper.EnumTypeWrapper(_CONSTRAINTACTIONENUM) -_ISOLATIONLEVELENUM = DESCRIPTOR.enum_types_by_name['IsolationLevelEnum'] -IsolationLevelEnum = enum_type_wrapper.EnumTypeWrapper(_ISOLATIONLEVELENUM) -EVENTTYPE_UNDEFINED = 0 -EVENTTYPE_CREATE = 1 -EVENTTYPE_UPDATE = 2 -EVENTTYPE_REMOVE = 3 -DEVICEDRIVER_UNDEFINED = 0 -DEVICEDRIVER_OPENCONFIG = 1 -DEVICEDRIVER_TRANSPORT_API = 2 -DEVICEDRIVER_P4 = 3 -DEVICEDRIVER_IETF_NETWORK_TOPOLOGY = 4 -DEVICEDRIVER_ONF_TR_532 = 5 -DEVICEDRIVER_XR = 6 -DEVICEDRIVER_IETF_L2VPN = 7 -DEVICEDRIVER_GNMI_OPENCONFIG = 8 -DEVICEDRIVER_OPTICAL_TFS = 9 -DEVICEDRIVER_IETF_ACTN = 10 -DEVICEDRIVER_OC = 11 -DEVICEDRIVER_QKD = 12 -DEVICEOPERATIONALSTATUS_UNDEFINED = 0 -DEVICEOPERATIONALSTATUS_DISABLED = 1 -DEVICEOPERATIONALSTATUS_ENABLED = 2 -SERVICETYPE_UNKNOWN = 0 -SERVICETYPE_L3NM = 1 -SERVICETYPE_L2NM = 2 -SERVICETYPE_TAPI_CONNECTIVITY_SERVICE = 3 -SERVICETYPE_TE = 4 -SERVICETYPE_E2E = 5 -SERVICETYPE_OPTICAL_CONNECTIVITY = 6 -SERVICETYPE_QKD = 7 -SERVICESTATUS_UNDEFINED = 0 -SERVICESTATUS_PLANNED = 1 -SERVICESTATUS_ACTIVE = 2 -SERVICESTATUS_UPDATING = 3 -SERVICESTATUS_PENDING_REMOVAL = 4 -SERVICESTATUS_SLA_VIOLATED = 5 -SLICESTATUS_UNDEFINED = 0 -SLICESTATUS_PLANNED = 1 -SLICESTATUS_INIT = 2 -SLICESTATUS_ACTIVE = 3 -SLICESTATUS_DEINIT = 4 -SLICESTATUS_SLA_VIOLATED = 5 -CONFIGACTION_UNDEFINED = 0 -CONFIGACTION_SET = 1 -CONFIGACTION_DELETE = 2 -CONSTRAINTACTION_UNDEFINED = 0 -CONSTRAINTACTION_SET = 1 -CONSTRAINTACTION_DELETE = 2 -NO_ISOLATION = 0 -PHYSICAL_ISOLATION = 1 -LOGICAL_ISOLATION = 2 -PROCESS_ISOLATION = 3 -PHYSICAL_MEMORY_ISOLATION = 4 -PHYSICAL_NETWORK_ISOLATION = 5 -VIRTUAL_RESOURCE_ISOLATION = 6 -NETWORK_FUNCTIONS_ISOLATION = 7 -SERVICE_ISOLATION = 8 - - -_EMPTY = DESCRIPTOR.message_types_by_name['Empty'] -_UUID = DESCRIPTOR.message_types_by_name['Uuid'] -_TIMESTAMP = DESCRIPTOR.message_types_by_name['Timestamp'] -_EVENT = DESCRIPTOR.message_types_by_name['Event'] -_CONTEXTID = DESCRIPTOR.message_types_by_name['ContextId'] -_CONTEXT = DESCRIPTOR.message_types_by_name['Context'] -_CONTEXTIDLIST = DESCRIPTOR.message_types_by_name['ContextIdList'] -_CONTEXTLIST = DESCRIPTOR.message_types_by_name['ContextList'] -_CONTEXTEVENT = DESCRIPTOR.message_types_by_name['ContextEvent'] -_TOPOLOGYID = DESCRIPTOR.message_types_by_name['TopologyId'] -_TOPOLOGY = DESCRIPTOR.message_types_by_name['Topology'] -_TOPOLOGYDETAILS = DESCRIPTOR.message_types_by_name['TopologyDetails'] -_TOPOLOGYIDLIST = DESCRIPTOR.message_types_by_name['TopologyIdList'] -_TOPOLOGYLIST = DESCRIPTOR.message_types_by_name['TopologyList'] -_TOPOLOGYEVENT = DESCRIPTOR.message_types_by_name['TopologyEvent'] -_DEVICEID = DESCRIPTOR.message_types_by_name['DeviceId'] -_DEVICE = DESCRIPTOR.message_types_by_name['Device'] -_COMPONENT = DESCRIPTOR.message_types_by_name['Component'] -_COMPONENT_ATTRIBUTESENTRY = _COMPONENT.nested_types_by_name['AttributesEntry'] -_DEVICECONFIG = DESCRIPTOR.message_types_by_name['DeviceConfig'] -_DEVICEIDLIST = DESCRIPTOR.message_types_by_name['DeviceIdList'] -_DEVICELIST = DESCRIPTOR.message_types_by_name['DeviceList'] -_DEVICEFILTER = DESCRIPTOR.message_types_by_name['DeviceFilter'] -_DEVICEEVENT = DESCRIPTOR.message_types_by_name['DeviceEvent'] -_LINKID = DESCRIPTOR.message_types_by_name['LinkId'] -_LINKATTRIBUTES = DESCRIPTOR.message_types_by_name['LinkAttributes'] -_LINK = DESCRIPTOR.message_types_by_name['Link'] -_LINKIDLIST = DESCRIPTOR.message_types_by_name['LinkIdList'] -_LINKLIST = DESCRIPTOR.message_types_by_name['LinkList'] -_LINKEVENT = DESCRIPTOR.message_types_by_name['LinkEvent'] -_SERVICEID = DESCRIPTOR.message_types_by_name['ServiceId'] -_SERVICE = DESCRIPTOR.message_types_by_name['Service'] -_SERVICESTATUS = DESCRIPTOR.message_types_by_name['ServiceStatus'] -_SERVICECONFIG = DESCRIPTOR.message_types_by_name['ServiceConfig'] -_SERVICEIDLIST = DESCRIPTOR.message_types_by_name['ServiceIdList'] -_SERVICELIST = DESCRIPTOR.message_types_by_name['ServiceList'] -_SERVICEFILTER = DESCRIPTOR.message_types_by_name['ServiceFilter'] -_SERVICEEVENT = DESCRIPTOR.message_types_by_name['ServiceEvent'] -_SLICEID = DESCRIPTOR.message_types_by_name['SliceId'] -_SLICE = DESCRIPTOR.message_types_by_name['Slice'] -_SLICEOWNER = DESCRIPTOR.message_types_by_name['SliceOwner'] -_SLICESTATUS = DESCRIPTOR.message_types_by_name['SliceStatus'] -_SLICECONFIG = DESCRIPTOR.message_types_by_name['SliceConfig'] -_SLICEIDLIST = DESCRIPTOR.message_types_by_name['SliceIdList'] -_SLICELIST = DESCRIPTOR.message_types_by_name['SliceList'] -_SLICEFILTER = DESCRIPTOR.message_types_by_name['SliceFilter'] -_SLICEEVENT = DESCRIPTOR.message_types_by_name['SliceEvent'] -_CONNECTIONID = DESCRIPTOR.message_types_by_name['ConnectionId'] -_CONNECTIONSETTINGS_L0 = DESCRIPTOR.message_types_by_name['ConnectionSettings_L0'] -_CONNECTIONSETTINGS_L2 = DESCRIPTOR.message_types_by_name['ConnectionSettings_L2'] -_CONNECTIONSETTINGS_L3 = DESCRIPTOR.message_types_by_name['ConnectionSettings_L3'] -_CONNECTIONSETTINGS_L4 = DESCRIPTOR.message_types_by_name['ConnectionSettings_L4'] -_CONNECTIONSETTINGS = DESCRIPTOR.message_types_by_name['ConnectionSettings'] -_CONNECTION = DESCRIPTOR.message_types_by_name['Connection'] -_CONNECTIONIDLIST = DESCRIPTOR.message_types_by_name['ConnectionIdList'] -_CONNECTIONLIST = DESCRIPTOR.message_types_by_name['ConnectionList'] -_CONNECTIONEVENT = DESCRIPTOR.message_types_by_name['ConnectionEvent'] -_ENDPOINTID = DESCRIPTOR.message_types_by_name['EndPointId'] -_ENDPOINT = DESCRIPTOR.message_types_by_name['EndPoint'] -_ENDPOINTNAME = DESCRIPTOR.message_types_by_name['EndPointName'] -_ENDPOINTIDLIST = DESCRIPTOR.message_types_by_name['EndPointIdList'] -_ENDPOINTNAMELIST = DESCRIPTOR.message_types_by_name['EndPointNameList'] -_CONFIGRULE_CUSTOM = DESCRIPTOR.message_types_by_name['ConfigRule_Custom'] -_CONFIGRULE_ACL = DESCRIPTOR.message_types_by_name['ConfigRule_ACL'] -_CONFIGRULE = DESCRIPTOR.message_types_by_name['ConfigRule'] -_CONSTRAINT_CUSTOM = DESCRIPTOR.message_types_by_name['Constraint_Custom'] -_CONSTRAINT_SCHEDULE = DESCRIPTOR.message_types_by_name['Constraint_Schedule'] -_GPS_POSITION = DESCRIPTOR.message_types_by_name['GPS_Position'] -_LOCATION = DESCRIPTOR.message_types_by_name['Location'] -_CONSTRAINT_ENDPOINTLOCATION = DESCRIPTOR.message_types_by_name['Constraint_EndPointLocation'] -_CONSTRAINT_ENDPOINTPRIORITY = DESCRIPTOR.message_types_by_name['Constraint_EndPointPriority'] -_CONSTRAINT_SLA_LATENCY = DESCRIPTOR.message_types_by_name['Constraint_SLA_Latency'] -_CONSTRAINT_SLA_CAPACITY = DESCRIPTOR.message_types_by_name['Constraint_SLA_Capacity'] -_CONSTRAINT_SLA_AVAILABILITY = DESCRIPTOR.message_types_by_name['Constraint_SLA_Availability'] -_CONSTRAINT_SLA_ISOLATION_LEVEL = DESCRIPTOR.message_types_by_name['Constraint_SLA_Isolation_level'] -_CONSTRAINT_EXCLUSIONS = DESCRIPTOR.message_types_by_name['Constraint_Exclusions'] -_CONSTRAINT = DESCRIPTOR.message_types_by_name['Constraint'] -_TERAFLOWCONTROLLER = DESCRIPTOR.message_types_by_name['TeraFlowController'] -_AUTHENTICATIONRESULT = DESCRIPTOR.message_types_by_name['AuthenticationResult'] -_OPTICALCONFIGID = DESCRIPTOR.message_types_by_name['OpticalConfigId'] -_OPTICALCONFIG = DESCRIPTOR.message_types_by_name['OpticalConfig'] -_OPTICALCONFIGLIST = DESCRIPTOR.message_types_by_name['OpticalConfigList'] -_OPTICALLINKID = DESCRIPTOR.message_types_by_name['OpticalLinkId'] -_FIBERID = DESCRIPTOR.message_types_by_name['FiberId'] -_FIBER = DESCRIPTOR.message_types_by_name['Fiber'] -_OPTICALLINKDETAILS = DESCRIPTOR.message_types_by_name['OpticalLinkDetails'] -_OPTICALLINK = DESCRIPTOR.message_types_by_name['OpticalLink'] -Empty = _reflection.GeneratedProtocolMessageType('Empty', (_message.Message,), { - 'DESCRIPTOR' : _EMPTY, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Empty) - }) -_sym_db.RegisterMessage(Empty) - -Uuid = _reflection.GeneratedProtocolMessageType('Uuid', (_message.Message,), { - 'DESCRIPTOR' : _UUID, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Uuid) - }) -_sym_db.RegisterMessage(Uuid) - -Timestamp = _reflection.GeneratedProtocolMessageType('Timestamp', (_message.Message,), { - 'DESCRIPTOR' : _TIMESTAMP, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Timestamp) - }) -_sym_db.RegisterMessage(Timestamp) - -Event = _reflection.GeneratedProtocolMessageType('Event', (_message.Message,), { - 'DESCRIPTOR' : _EVENT, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Event) - }) -_sym_db.RegisterMessage(Event) - -ContextId = _reflection.GeneratedProtocolMessageType('ContextId', (_message.Message,), { - 'DESCRIPTOR' : _CONTEXTID, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ContextId) - }) -_sym_db.RegisterMessage(ContextId) - -Context = _reflection.GeneratedProtocolMessageType('Context', (_message.Message,), { - 'DESCRIPTOR' : _CONTEXT, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Context) - }) -_sym_db.RegisterMessage(Context) - -ContextIdList = _reflection.GeneratedProtocolMessageType('ContextIdList', (_message.Message,), { - 'DESCRIPTOR' : _CONTEXTIDLIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ContextIdList) - }) -_sym_db.RegisterMessage(ContextIdList) - -ContextList = _reflection.GeneratedProtocolMessageType('ContextList', (_message.Message,), { - 'DESCRIPTOR' : _CONTEXTLIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ContextList) - }) -_sym_db.RegisterMessage(ContextList) - -ContextEvent = _reflection.GeneratedProtocolMessageType('ContextEvent', (_message.Message,), { - 'DESCRIPTOR' : _CONTEXTEVENT, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ContextEvent) - }) -_sym_db.RegisterMessage(ContextEvent) - -TopologyId = _reflection.GeneratedProtocolMessageType('TopologyId', (_message.Message,), { - 'DESCRIPTOR' : _TOPOLOGYID, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.TopologyId) - }) -_sym_db.RegisterMessage(TopologyId) - -Topology = _reflection.GeneratedProtocolMessageType('Topology', (_message.Message,), { - 'DESCRIPTOR' : _TOPOLOGY, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Topology) - }) -_sym_db.RegisterMessage(Topology) - -TopologyDetails = _reflection.GeneratedProtocolMessageType('TopologyDetails', (_message.Message,), { - 'DESCRIPTOR' : _TOPOLOGYDETAILS, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.TopologyDetails) - }) -_sym_db.RegisterMessage(TopologyDetails) - -TopologyIdList = _reflection.GeneratedProtocolMessageType('TopologyIdList', (_message.Message,), { - 'DESCRIPTOR' : _TOPOLOGYIDLIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.TopologyIdList) - }) -_sym_db.RegisterMessage(TopologyIdList) - -TopologyList = _reflection.GeneratedProtocolMessageType('TopologyList', (_message.Message,), { - 'DESCRIPTOR' : _TOPOLOGYLIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.TopologyList) - }) -_sym_db.RegisterMessage(TopologyList) - -TopologyEvent = _reflection.GeneratedProtocolMessageType('TopologyEvent', (_message.Message,), { - 'DESCRIPTOR' : _TOPOLOGYEVENT, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.TopologyEvent) - }) -_sym_db.RegisterMessage(TopologyEvent) - -DeviceId = _reflection.GeneratedProtocolMessageType('DeviceId', (_message.Message,), { - 'DESCRIPTOR' : _DEVICEID, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.DeviceId) - }) -_sym_db.RegisterMessage(DeviceId) - -Device = _reflection.GeneratedProtocolMessageType('Device', (_message.Message,), { - 'DESCRIPTOR' : _DEVICE, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Device) - }) -_sym_db.RegisterMessage(Device) - -Component = _reflection.GeneratedProtocolMessageType('Component', (_message.Message,), { - - 'AttributesEntry' : _reflection.GeneratedProtocolMessageType('AttributesEntry', (_message.Message,), { - 'DESCRIPTOR' : _COMPONENT_ATTRIBUTESENTRY, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Component.AttributesEntry) - }) - , - 'DESCRIPTOR' : _COMPONENT, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Component) - }) -_sym_db.RegisterMessage(Component) -_sym_db.RegisterMessage(Component.AttributesEntry) - -DeviceConfig = _reflection.GeneratedProtocolMessageType('DeviceConfig', (_message.Message,), { - 'DESCRIPTOR' : _DEVICECONFIG, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.DeviceConfig) - }) -_sym_db.RegisterMessage(DeviceConfig) - -DeviceIdList = _reflection.GeneratedProtocolMessageType('DeviceIdList', (_message.Message,), { - 'DESCRIPTOR' : _DEVICEIDLIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.DeviceIdList) - }) -_sym_db.RegisterMessage(DeviceIdList) - -DeviceList = _reflection.GeneratedProtocolMessageType('DeviceList', (_message.Message,), { - 'DESCRIPTOR' : _DEVICELIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.DeviceList) - }) -_sym_db.RegisterMessage(DeviceList) - -DeviceFilter = _reflection.GeneratedProtocolMessageType('DeviceFilter', (_message.Message,), { - 'DESCRIPTOR' : _DEVICEFILTER, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.DeviceFilter) - }) -_sym_db.RegisterMessage(DeviceFilter) - -DeviceEvent = _reflection.GeneratedProtocolMessageType('DeviceEvent', (_message.Message,), { - 'DESCRIPTOR' : _DEVICEEVENT, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.DeviceEvent) - }) -_sym_db.RegisterMessage(DeviceEvent) - -LinkId = _reflection.GeneratedProtocolMessageType('LinkId', (_message.Message,), { - 'DESCRIPTOR' : _LINKID, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.LinkId) - }) -_sym_db.RegisterMessage(LinkId) - -LinkAttributes = _reflection.GeneratedProtocolMessageType('LinkAttributes', (_message.Message,), { - 'DESCRIPTOR' : _LINKATTRIBUTES, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.LinkAttributes) - }) -_sym_db.RegisterMessage(LinkAttributes) - -Link = _reflection.GeneratedProtocolMessageType('Link', (_message.Message,), { - 'DESCRIPTOR' : _LINK, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Link) - }) -_sym_db.RegisterMessage(Link) - -LinkIdList = _reflection.GeneratedProtocolMessageType('LinkIdList', (_message.Message,), { - 'DESCRIPTOR' : _LINKIDLIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.LinkIdList) - }) -_sym_db.RegisterMessage(LinkIdList) - -LinkList = _reflection.GeneratedProtocolMessageType('LinkList', (_message.Message,), { - 'DESCRIPTOR' : _LINKLIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.LinkList) - }) -_sym_db.RegisterMessage(LinkList) - -LinkEvent = _reflection.GeneratedProtocolMessageType('LinkEvent', (_message.Message,), { - 'DESCRIPTOR' : _LINKEVENT, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.LinkEvent) - }) -_sym_db.RegisterMessage(LinkEvent) - -ServiceId = _reflection.GeneratedProtocolMessageType('ServiceId', (_message.Message,), { - 'DESCRIPTOR' : _SERVICEID, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ServiceId) - }) -_sym_db.RegisterMessage(ServiceId) - -Service = _reflection.GeneratedProtocolMessageType('Service', (_message.Message,), { - 'DESCRIPTOR' : _SERVICE, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Service) - }) -_sym_db.RegisterMessage(Service) - -ServiceStatus = _reflection.GeneratedProtocolMessageType('ServiceStatus', (_message.Message,), { - 'DESCRIPTOR' : _SERVICESTATUS, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ServiceStatus) - }) -_sym_db.RegisterMessage(ServiceStatus) - -ServiceConfig = _reflection.GeneratedProtocolMessageType('ServiceConfig', (_message.Message,), { - 'DESCRIPTOR' : _SERVICECONFIG, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ServiceConfig) - }) -_sym_db.RegisterMessage(ServiceConfig) - -ServiceIdList = _reflection.GeneratedProtocolMessageType('ServiceIdList', (_message.Message,), { - 'DESCRIPTOR' : _SERVICEIDLIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ServiceIdList) - }) -_sym_db.RegisterMessage(ServiceIdList) - -ServiceList = _reflection.GeneratedProtocolMessageType('ServiceList', (_message.Message,), { - 'DESCRIPTOR' : _SERVICELIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ServiceList) - }) -_sym_db.RegisterMessage(ServiceList) - -ServiceFilter = _reflection.GeneratedProtocolMessageType('ServiceFilter', (_message.Message,), { - 'DESCRIPTOR' : _SERVICEFILTER, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ServiceFilter) - }) -_sym_db.RegisterMessage(ServiceFilter) - -ServiceEvent = _reflection.GeneratedProtocolMessageType('ServiceEvent', (_message.Message,), { - 'DESCRIPTOR' : _SERVICEEVENT, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ServiceEvent) - }) -_sym_db.RegisterMessage(ServiceEvent) - -SliceId = _reflection.GeneratedProtocolMessageType('SliceId', (_message.Message,), { - 'DESCRIPTOR' : _SLICEID, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.SliceId) - }) -_sym_db.RegisterMessage(SliceId) - -Slice = _reflection.GeneratedProtocolMessageType('Slice', (_message.Message,), { - 'DESCRIPTOR' : _SLICE, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Slice) - }) -_sym_db.RegisterMessage(Slice) - -SliceOwner = _reflection.GeneratedProtocolMessageType('SliceOwner', (_message.Message,), { - 'DESCRIPTOR' : _SLICEOWNER, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.SliceOwner) - }) -_sym_db.RegisterMessage(SliceOwner) - -SliceStatus = _reflection.GeneratedProtocolMessageType('SliceStatus', (_message.Message,), { - 'DESCRIPTOR' : _SLICESTATUS, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.SliceStatus) - }) -_sym_db.RegisterMessage(SliceStatus) - -SliceConfig = _reflection.GeneratedProtocolMessageType('SliceConfig', (_message.Message,), { - 'DESCRIPTOR' : _SLICECONFIG, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.SliceConfig) - }) -_sym_db.RegisterMessage(SliceConfig) - -SliceIdList = _reflection.GeneratedProtocolMessageType('SliceIdList', (_message.Message,), { - 'DESCRIPTOR' : _SLICEIDLIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.SliceIdList) - }) -_sym_db.RegisterMessage(SliceIdList) - -SliceList = _reflection.GeneratedProtocolMessageType('SliceList', (_message.Message,), { - 'DESCRIPTOR' : _SLICELIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.SliceList) - }) -_sym_db.RegisterMessage(SliceList) - -SliceFilter = _reflection.GeneratedProtocolMessageType('SliceFilter', (_message.Message,), { - 'DESCRIPTOR' : _SLICEFILTER, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.SliceFilter) - }) -_sym_db.RegisterMessage(SliceFilter) - -SliceEvent = _reflection.GeneratedProtocolMessageType('SliceEvent', (_message.Message,), { - 'DESCRIPTOR' : _SLICEEVENT, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.SliceEvent) - }) -_sym_db.RegisterMessage(SliceEvent) - -ConnectionId = _reflection.GeneratedProtocolMessageType('ConnectionId', (_message.Message,), { - 'DESCRIPTOR' : _CONNECTIONID, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ConnectionId) - }) -_sym_db.RegisterMessage(ConnectionId) - -ConnectionSettings_L0 = _reflection.GeneratedProtocolMessageType('ConnectionSettings_L0', (_message.Message,), { - 'DESCRIPTOR' : _CONNECTIONSETTINGS_L0, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ConnectionSettings_L0) - }) -_sym_db.RegisterMessage(ConnectionSettings_L0) - -ConnectionSettings_L2 = _reflection.GeneratedProtocolMessageType('ConnectionSettings_L2', (_message.Message,), { - 'DESCRIPTOR' : _CONNECTIONSETTINGS_L2, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ConnectionSettings_L2) - }) -_sym_db.RegisterMessage(ConnectionSettings_L2) - -ConnectionSettings_L3 = _reflection.GeneratedProtocolMessageType('ConnectionSettings_L3', (_message.Message,), { - 'DESCRIPTOR' : _CONNECTIONSETTINGS_L3, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ConnectionSettings_L3) - }) -_sym_db.RegisterMessage(ConnectionSettings_L3) - -ConnectionSettings_L4 = _reflection.GeneratedProtocolMessageType('ConnectionSettings_L4', (_message.Message,), { - 'DESCRIPTOR' : _CONNECTIONSETTINGS_L4, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ConnectionSettings_L4) - }) -_sym_db.RegisterMessage(ConnectionSettings_L4) - -ConnectionSettings = _reflection.GeneratedProtocolMessageType('ConnectionSettings', (_message.Message,), { - 'DESCRIPTOR' : _CONNECTIONSETTINGS, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ConnectionSettings) - }) -_sym_db.RegisterMessage(ConnectionSettings) - -Connection = _reflection.GeneratedProtocolMessageType('Connection', (_message.Message,), { - 'DESCRIPTOR' : _CONNECTION, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Connection) - }) -_sym_db.RegisterMessage(Connection) - -ConnectionIdList = _reflection.GeneratedProtocolMessageType('ConnectionIdList', (_message.Message,), { - 'DESCRIPTOR' : _CONNECTIONIDLIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ConnectionIdList) - }) -_sym_db.RegisterMessage(ConnectionIdList) - -ConnectionList = _reflection.GeneratedProtocolMessageType('ConnectionList', (_message.Message,), { - 'DESCRIPTOR' : _CONNECTIONLIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ConnectionList) - }) -_sym_db.RegisterMessage(ConnectionList) - -ConnectionEvent = _reflection.GeneratedProtocolMessageType('ConnectionEvent', (_message.Message,), { - 'DESCRIPTOR' : _CONNECTIONEVENT, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ConnectionEvent) - }) -_sym_db.RegisterMessage(ConnectionEvent) - -EndPointId = _reflection.GeneratedProtocolMessageType('EndPointId', (_message.Message,), { - 'DESCRIPTOR' : _ENDPOINTID, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.EndPointId) - }) -_sym_db.RegisterMessage(EndPointId) - -EndPoint = _reflection.GeneratedProtocolMessageType('EndPoint', (_message.Message,), { - 'DESCRIPTOR' : _ENDPOINT, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.EndPoint) - }) -_sym_db.RegisterMessage(EndPoint) - -EndPointName = _reflection.GeneratedProtocolMessageType('EndPointName', (_message.Message,), { - 'DESCRIPTOR' : _ENDPOINTNAME, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.EndPointName) - }) -_sym_db.RegisterMessage(EndPointName) - -EndPointIdList = _reflection.GeneratedProtocolMessageType('EndPointIdList', (_message.Message,), { - 'DESCRIPTOR' : _ENDPOINTIDLIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.EndPointIdList) - }) -_sym_db.RegisterMessage(EndPointIdList) - -EndPointNameList = _reflection.GeneratedProtocolMessageType('EndPointNameList', (_message.Message,), { - 'DESCRIPTOR' : _ENDPOINTNAMELIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.EndPointNameList) - }) -_sym_db.RegisterMessage(EndPointNameList) - -ConfigRule_Custom = _reflection.GeneratedProtocolMessageType('ConfigRule_Custom', (_message.Message,), { - 'DESCRIPTOR' : _CONFIGRULE_CUSTOM, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ConfigRule_Custom) - }) -_sym_db.RegisterMessage(ConfigRule_Custom) - -ConfigRule_ACL = _reflection.GeneratedProtocolMessageType('ConfigRule_ACL', (_message.Message,), { - 'DESCRIPTOR' : _CONFIGRULE_ACL, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ConfigRule_ACL) - }) -_sym_db.RegisterMessage(ConfigRule_ACL) - -ConfigRule = _reflection.GeneratedProtocolMessageType('ConfigRule', (_message.Message,), { - 'DESCRIPTOR' : _CONFIGRULE, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.ConfigRule) - }) -_sym_db.RegisterMessage(ConfigRule) - -Constraint_Custom = _reflection.GeneratedProtocolMessageType('Constraint_Custom', (_message.Message,), { - 'DESCRIPTOR' : _CONSTRAINT_CUSTOM, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Constraint_Custom) - }) -_sym_db.RegisterMessage(Constraint_Custom) - -Constraint_Schedule = _reflection.GeneratedProtocolMessageType('Constraint_Schedule', (_message.Message,), { - 'DESCRIPTOR' : _CONSTRAINT_SCHEDULE, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Constraint_Schedule) - }) -_sym_db.RegisterMessage(Constraint_Schedule) - -GPS_Position = _reflection.GeneratedProtocolMessageType('GPS_Position', (_message.Message,), { - 'DESCRIPTOR' : _GPS_POSITION, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.GPS_Position) - }) -_sym_db.RegisterMessage(GPS_Position) - -Location = _reflection.GeneratedProtocolMessageType('Location', (_message.Message,), { - 'DESCRIPTOR' : _LOCATION, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Location) - }) -_sym_db.RegisterMessage(Location) - -Constraint_EndPointLocation = _reflection.GeneratedProtocolMessageType('Constraint_EndPointLocation', (_message.Message,), { - 'DESCRIPTOR' : _CONSTRAINT_ENDPOINTLOCATION, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Constraint_EndPointLocation) - }) -_sym_db.RegisterMessage(Constraint_EndPointLocation) - -Constraint_EndPointPriority = _reflection.GeneratedProtocolMessageType('Constraint_EndPointPriority', (_message.Message,), { - 'DESCRIPTOR' : _CONSTRAINT_ENDPOINTPRIORITY, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Constraint_EndPointPriority) - }) -_sym_db.RegisterMessage(Constraint_EndPointPriority) - -Constraint_SLA_Latency = _reflection.GeneratedProtocolMessageType('Constraint_SLA_Latency', (_message.Message,), { - 'DESCRIPTOR' : _CONSTRAINT_SLA_LATENCY, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Constraint_SLA_Latency) - }) -_sym_db.RegisterMessage(Constraint_SLA_Latency) - -Constraint_SLA_Capacity = _reflection.GeneratedProtocolMessageType('Constraint_SLA_Capacity', (_message.Message,), { - 'DESCRIPTOR' : _CONSTRAINT_SLA_CAPACITY, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Constraint_SLA_Capacity) - }) -_sym_db.RegisterMessage(Constraint_SLA_Capacity) - -Constraint_SLA_Availability = _reflection.GeneratedProtocolMessageType('Constraint_SLA_Availability', (_message.Message,), { - 'DESCRIPTOR' : _CONSTRAINT_SLA_AVAILABILITY, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Constraint_SLA_Availability) - }) -_sym_db.RegisterMessage(Constraint_SLA_Availability) - -Constraint_SLA_Isolation_level = _reflection.GeneratedProtocolMessageType('Constraint_SLA_Isolation_level', (_message.Message,), { - 'DESCRIPTOR' : _CONSTRAINT_SLA_ISOLATION_LEVEL, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Constraint_SLA_Isolation_level) - }) -_sym_db.RegisterMessage(Constraint_SLA_Isolation_level) - -Constraint_Exclusions = _reflection.GeneratedProtocolMessageType('Constraint_Exclusions', (_message.Message,), { - 'DESCRIPTOR' : _CONSTRAINT_EXCLUSIONS, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Constraint_Exclusions) - }) -_sym_db.RegisterMessage(Constraint_Exclusions) - -Constraint = _reflection.GeneratedProtocolMessageType('Constraint', (_message.Message,), { - 'DESCRIPTOR' : _CONSTRAINT, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Constraint) - }) -_sym_db.RegisterMessage(Constraint) - -TeraFlowController = _reflection.GeneratedProtocolMessageType('TeraFlowController', (_message.Message,), { - 'DESCRIPTOR' : _TERAFLOWCONTROLLER, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.TeraFlowController) - }) -_sym_db.RegisterMessage(TeraFlowController) - -AuthenticationResult = _reflection.GeneratedProtocolMessageType('AuthenticationResult', (_message.Message,), { - 'DESCRIPTOR' : _AUTHENTICATIONRESULT, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.AuthenticationResult) - }) -_sym_db.RegisterMessage(AuthenticationResult) - -OpticalConfigId = _reflection.GeneratedProtocolMessageType('OpticalConfigId', (_message.Message,), { - 'DESCRIPTOR' : _OPTICALCONFIGID, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.OpticalConfigId) - }) -_sym_db.RegisterMessage(OpticalConfigId) - -OpticalConfig = _reflection.GeneratedProtocolMessageType('OpticalConfig', (_message.Message,), { - 'DESCRIPTOR' : _OPTICALCONFIG, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.OpticalConfig) - }) -_sym_db.RegisterMessage(OpticalConfig) - -OpticalConfigList = _reflection.GeneratedProtocolMessageType('OpticalConfigList', (_message.Message,), { - 'DESCRIPTOR' : _OPTICALCONFIGLIST, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.OpticalConfigList) - }) -_sym_db.RegisterMessage(OpticalConfigList) - -OpticalLinkId = _reflection.GeneratedProtocolMessageType('OpticalLinkId', (_message.Message,), { - 'DESCRIPTOR' : _OPTICALLINKID, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.OpticalLinkId) - }) -_sym_db.RegisterMessage(OpticalLinkId) - -FiberId = _reflection.GeneratedProtocolMessageType('FiberId', (_message.Message,), { - 'DESCRIPTOR' : _FIBERID, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.FiberId) - }) -_sym_db.RegisterMessage(FiberId) - -Fiber = _reflection.GeneratedProtocolMessageType('Fiber', (_message.Message,), { - 'DESCRIPTOR' : _FIBER, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.Fiber) - }) -_sym_db.RegisterMessage(Fiber) - -OpticalLinkDetails = _reflection.GeneratedProtocolMessageType('OpticalLinkDetails', (_message.Message,), { - 'DESCRIPTOR' : _OPTICALLINKDETAILS, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.OpticalLinkDetails) - }) -_sym_db.RegisterMessage(OpticalLinkDetails) - -OpticalLink = _reflection.GeneratedProtocolMessageType('OpticalLink', (_message.Message,), { - 'DESCRIPTOR' : _OPTICALLINK, - '__module__' : 'context_pb2' - # @@protoc_insertion_point(class_scope:context.OpticalLink) - }) -_sym_db.RegisterMessage(OpticalLink) - -_CONTEXTSERVICE = DESCRIPTOR.services_by_name['ContextService'] -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - _COMPONENT_ATTRIBUTESENTRY._options = None - _COMPONENT_ATTRIBUTESENTRY._serialized_options = b'8\001' - _EVENTTYPEENUM._serialized_start=9328 - _EVENTTYPEENUM._serialized_end=9434 - _DEVICEDRIVERENUM._serialized_start=9437 - _DEVICEDRIVERENUM._serialized_end=9819 - _DEVICEOPERATIONALSTATUSENUM._serialized_start=9822 - _DEVICEOPERATIONALSTATUSENUM._serialized_end=9965 - _SERVICETYPEENUM._serialized_start=9968 - _SERVICETYPEENUM._serialized_end=10197 - _SERVICESTATUSENUM._serialized_start=10200 - _SERVICESTATUSENUM._serialized_end=10396 - _SLICESTATUSENUM._serialized_start=10399 - _SLICESTATUSENUM._serialized_end=10568 - _CONFIGACTIONENUM._serialized_start=10570 - _CONFIGACTIONENUM._serialized_end=10663 - _CONSTRAINTACTIONENUM._serialized_start=10665 - _CONSTRAINTACTIONENUM._serialized_end=10774 - _ISOLATIONLEVELENUM._serialized_start=10777 - _ISOLATIONLEVELENUM._serialized_end=11036 - _EMPTY._serialized_start=61 - _EMPTY._serialized_end=68 - _UUID._serialized_start=70 - _UUID._serialized_end=90 - _TIMESTAMP._serialized_start=92 - _TIMESTAMP._serialized_end=122 - _EVENT._serialized_start=124 - _EVENT._serialized_end=214 - _CONTEXTID._serialized_start=216 - _CONTEXTID._serialized_end=264 - _CONTEXT._serialized_start=267 - _CONTEXT._serialized_end=500 - _CONTEXTIDLIST._serialized_start=502 - _CONTEXTIDLIST._serialized_end=558 - _CONTEXTLIST._serialized_start=560 - _CONTEXTLIST._serialized_end=609 - _CONTEXTEVENT._serialized_start=611 - _CONTEXTEVENT._serialized_end=696 - _TOPOLOGYID._serialized_start=698 - _TOPOLOGYID._serialized_end=788 - _TOPOLOGY._serialized_start=791 - _TOPOLOGY._serialized_end=931 - _TOPOLOGYDETAILS._serialized_start=934 - _TOPOLOGYDETAILS._serialized_end=1071 - _TOPOLOGYIDLIST._serialized_start=1073 - _TOPOLOGYIDLIST._serialized_end=1132 - _TOPOLOGYLIST._serialized_start=1134 - _TOPOLOGYLIST._serialized_end=1187 - _TOPOLOGYEVENT._serialized_start=1189 - _TOPOLOGYEVENT._serialized_end=1277 - _DEVICEID._serialized_start=1279 - _DEVICEID._serialized_end=1325 - _DEVICE._serialized_start=1328 - _DEVICE._serialized_end=1706 - _COMPONENT._serialized_start=1709 - _COMPONENT._serialized_end=1910 - _COMPONENT_ATTRIBUTESENTRY._serialized_start=1861 - _COMPONENT_ATTRIBUTESENTRY._serialized_end=1910 - _DEVICECONFIG._serialized_start=1912 - _DEVICECONFIG._serialized_end=1969 - _DEVICEIDLIST._serialized_start=1971 - _DEVICEIDLIST._serialized_end=2024 - _DEVICELIST._serialized_start=2026 - _DEVICELIST._serialized_end=2072 - _DEVICEFILTER._serialized_start=2075 - _DEVICEFILTER._serialized_end=2217 - _DEVICEEVENT._serialized_start=2220 - _DEVICEEVENT._serialized_end=2348 - _LINKID._serialized_start=2350 - _LINKID._serialized_end=2392 - _LINKATTRIBUTES._serialized_start=2394 - _LINKATTRIBUTES._serialized_end=2467 - _LINK._serialized_start=2470 - _LINK._serialized_end=2617 - _LINKIDLIST._serialized_start=2619 - _LINKIDLIST._serialized_end=2666 - _LINKLIST._serialized_start=2668 - _LINKLIST._serialized_end=2708 - _LINKEVENT._serialized_start=2710 - _LINKEVENT._serialized_end=2786 - _SERVICEID._serialized_start=2788 - _SERVICEID._serialized_end=2876 - _SERVICE._serialized_start=2879 - _SERVICE._serialized_end=3226 - _SERVICESTATUS._serialized_start=3228 - _SERVICESTATUS._serialized_end=3295 - _SERVICECONFIG._serialized_start=3297 - _SERVICECONFIG._serialized_end=3355 - _SERVICEIDLIST._serialized_start=3357 - _SERVICEIDLIST._serialized_end=3413 - _SERVICELIST._serialized_start=3415 - _SERVICELIST._serialized_end=3464 - _SERVICEFILTER._serialized_start=3467 - _SERVICEFILTER._serialized_end=3616 - _SERVICEEVENT._serialized_start=3618 - _SERVICEEVENT._serialized_end=3703 - _SLICEID._serialized_start=3705 - _SLICEID._serialized_end=3789 - _SLICE._serialized_start=3792 - _SLICE._serialized_end=4208 - _SLICEOWNER._serialized_start=4210 - _SLICEOWNER._serialized_end=4279 - _SLICESTATUS._serialized_start=4281 - _SLICESTATUS._serialized_end=4342 - _SLICECONFIG._serialized_start=4344 - _SLICECONFIG._serialized_end=4400 - _SLICEIDLIST._serialized_start=4402 - _SLICEIDLIST._serialized_end=4452 - _SLICELIST._serialized_start=4454 - _SLICELIST._serialized_end=4497 - _SLICEFILTER._serialized_start=4500 - _SLICEFILTER._serialized_end=4702 - _SLICEEVENT._serialized_start=4704 - _SLICEEVENT._serialized_end=4783 - _CONNECTIONID._serialized_start=4785 - _CONNECTIONID._serialized_end=4839 - _CONNECTIONSETTINGS_L0._serialized_start=4841 - _CONNECTIONSETTINGS_L0._serialized_end=4891 - _CONNECTIONSETTINGS_L2._serialized_start=4894 - _CONNECTIONSETTINGS_L2._serialized_end=5052 - _CONNECTIONSETTINGS_L3._serialized_start=5054 - _CONNECTIONSETTINGS_L3._serialized_end=5170 - _CONNECTIONSETTINGS_L4._serialized_start=5172 - _CONNECTIONSETTINGS_L4._serialized_end=5263 - _CONNECTIONSETTINGS._serialized_start=5266 - _CONNECTIONSETTINGS._serialized_end=5462 - _CONNECTION._serialized_start=5465 - _CONNECTION._serialized_end=5708 - _CONNECTIONIDLIST._serialized_start=5710 - _CONNECTIONIDLIST._serialized_end=5775 - _CONNECTIONLIST._serialized_start=5777 - _CONNECTIONLIST._serialized_end=5835 - _CONNECTIONEVENT._serialized_start=5837 - _CONNECTIONEVENT._serialized_end=5931 - _ENDPOINTID._serialized_start=5934 - _ENDPOINTID._serialized_end=6064 - _ENDPOINT._serialized_start=6067 - _ENDPOINT._serialized_end=6261 - _ENDPOINTNAME._serialized_start=6263 - _ENDPOINTNAME._serialized_end=6386 - _ENDPOINTIDLIST._serialized_start=6388 - _ENDPOINTIDLIST._serialized_end=6447 - _ENDPOINTNAMELIST._serialized_start=6449 - _ENDPOINTNAMELIST._serialized_end=6514 - _CONFIGRULE_CUSTOM._serialized_start=6516 - _CONFIGRULE_CUSTOM._serialized_end=6581 - _CONFIGRULE_ACL._serialized_start=6583 - _CONFIGRULE_ACL._serialized_end=6676 - _CONFIGRULE._serialized_start=6679 - _CONFIGRULE._serialized_end=6835 - _CONSTRAINT_CUSTOM._serialized_start=6837 - _CONSTRAINT_CUSTOM._serialized_end=6907 - _CONSTRAINT_SCHEDULE._serialized_start=6909 - _CONSTRAINT_SCHEDULE._serialized_end=6978 - _GPS_POSITION._serialized_start=6980 - _GPS_POSITION._serialized_end=7031 - _LOCATION._serialized_start=7033 - _LOCATION._serialized_end=7120 - _CONSTRAINT_ENDPOINTLOCATION._serialized_start=7122 - _CONSTRAINT_ENDPOINTLOCATION._serialized_end=7230 - _CONSTRAINT_ENDPOINTPRIORITY._serialized_start=7232 - _CONSTRAINT_ENDPOINTPRIORITY._serialized_end=7321 - _CONSTRAINT_SLA_LATENCY._serialized_start=7323 - _CONSTRAINT_SLA_LATENCY._serialized_end=7371 - _CONSTRAINT_SLA_CAPACITY._serialized_start=7373 - _CONSTRAINT_SLA_CAPACITY._serialized_end=7421 - _CONSTRAINT_SLA_AVAILABILITY._serialized_start=7423 - _CONSTRAINT_SLA_AVAILABILITY._serialized_end=7522 - _CONSTRAINT_SLA_ISOLATION_LEVEL._serialized_start=7524 - _CONSTRAINT_SLA_ISOLATION_LEVEL._serialized_end=7610 - _CONSTRAINT_EXCLUSIONS._serialized_start=7613 - _CONSTRAINT_EXCLUSIONS._serialized_end=7775 - _CONSTRAINT._serialized_start=7778 - _CONSTRAINT._serialized_end=8381 - _TERAFLOWCONTROLLER._serialized_start=8383 - _TERAFLOWCONTROLLER._serialized_end=8477 - _AUTHENTICATIONRESULT._serialized_start=8479 - _AUTHENTICATIONRESULT._serialized_end=8564 - _OPTICALCONFIGID._serialized_start=8566 - _OPTICALCONFIGID._serialized_end=8611 - _OPTICALCONFIG._serialized_start=8613 - _OPTICALCONFIG._serialized_end=8696 - _OPTICALCONFIGLIST._serialized_start=8698 - _OPTICALCONFIGLIST._serialized_end=8765 - _OPTICALLINKID._serialized_start=8767 - _OPTICALLINKID._serialized_end=8824 - _FIBERID._serialized_start=8826 - _FIBERID._serialized_end=8870 - _FIBER._serialized_start=8873 - _FIBER._serialized_end=9098 - _OPTICALLINKDETAILS._serialized_start=9100 - _OPTICALLINKDETAILS._serialized_end=9200 - _OPTICALLINK._serialized_start=9202 - _OPTICALLINK._serialized_end=9326 - _CONTEXTSERVICE._serialized_start=11039 - _CONTEXTSERVICE._serialized_end=14277 -# @@protoc_insertion_point(module_scope) diff --git a/src/device/tests/qkd/unit/generated/context_pb2_grpc.py b/src/device/tests/qkd/unit/generated/context_pb2_grpc.py deleted file mode 100644 index ed6e153bae63087427556757d23afec3ee595561..0000000000000000000000000000000000000000 --- a/src/device/tests/qkd/unit/generated/context_pb2_grpc.py +++ /dev/null @@ -1,1849 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -import context_pb2 as context__pb2 - - -class ContextServiceStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.ListContextIds = channel.unary_unary( - '/context.ContextService/ListContextIds', - request_serializer=context__pb2.Empty.SerializeToString, - response_deserializer=context__pb2.ContextIdList.FromString, - ) - self.ListContexts = channel.unary_unary( - '/context.ContextService/ListContexts', - request_serializer=context__pb2.Empty.SerializeToString, - response_deserializer=context__pb2.ContextList.FromString, - ) - self.GetContext = channel.unary_unary( - '/context.ContextService/GetContext', - request_serializer=context__pb2.ContextId.SerializeToString, - response_deserializer=context__pb2.Context.FromString, - ) - self.SetContext = channel.unary_unary( - '/context.ContextService/SetContext', - request_serializer=context__pb2.Context.SerializeToString, - response_deserializer=context__pb2.ContextId.FromString, - ) - self.RemoveContext = channel.unary_unary( - '/context.ContextService/RemoveContext', - request_serializer=context__pb2.ContextId.SerializeToString, - response_deserializer=context__pb2.Empty.FromString, - ) - self.GetContextEvents = channel.unary_stream( - '/context.ContextService/GetContextEvents', - request_serializer=context__pb2.Empty.SerializeToString, - response_deserializer=context__pb2.ContextEvent.FromString, - ) - self.ListTopologyIds = channel.unary_unary( - '/context.ContextService/ListTopologyIds', - request_serializer=context__pb2.ContextId.SerializeToString, - response_deserializer=context__pb2.TopologyIdList.FromString, - ) - self.ListTopologies = channel.unary_unary( - '/context.ContextService/ListTopologies', - request_serializer=context__pb2.ContextId.SerializeToString, - response_deserializer=context__pb2.TopologyList.FromString, - ) - self.GetTopology = channel.unary_unary( - '/context.ContextService/GetTopology', - request_serializer=context__pb2.TopologyId.SerializeToString, - response_deserializer=context__pb2.Topology.FromString, - ) - self.GetTopologyDetails = channel.unary_unary( - '/context.ContextService/GetTopologyDetails', - request_serializer=context__pb2.TopologyId.SerializeToString, - response_deserializer=context__pb2.TopologyDetails.FromString, - ) - self.SetTopology = channel.unary_unary( - '/context.ContextService/SetTopology', - request_serializer=context__pb2.Topology.SerializeToString, - response_deserializer=context__pb2.TopologyId.FromString, - ) - self.RemoveTopology = channel.unary_unary( - '/context.ContextService/RemoveTopology', - request_serializer=context__pb2.TopologyId.SerializeToString, - response_deserializer=context__pb2.Empty.FromString, - ) - self.GetTopologyEvents = channel.unary_stream( - '/context.ContextService/GetTopologyEvents', - request_serializer=context__pb2.Empty.SerializeToString, - response_deserializer=context__pb2.TopologyEvent.FromString, - ) - self.ListDeviceIds = channel.unary_unary( - '/context.ContextService/ListDeviceIds', - request_serializer=context__pb2.Empty.SerializeToString, - response_deserializer=context__pb2.DeviceIdList.FromString, - ) - self.ListDevices = channel.unary_unary( - '/context.ContextService/ListDevices', - request_serializer=context__pb2.Empty.SerializeToString, - response_deserializer=context__pb2.DeviceList.FromString, - ) - self.GetDevice = channel.unary_unary( - '/context.ContextService/GetDevice', - request_serializer=context__pb2.DeviceId.SerializeToString, - response_deserializer=context__pb2.Device.FromString, - ) - self.SetDevice = channel.unary_unary( - '/context.ContextService/SetDevice', - request_serializer=context__pb2.Device.SerializeToString, - response_deserializer=context__pb2.DeviceId.FromString, - ) - self.RemoveDevice = channel.unary_unary( - '/context.ContextService/RemoveDevice', - request_serializer=context__pb2.DeviceId.SerializeToString, - response_deserializer=context__pb2.Empty.FromString, - ) - self.GetDeviceEvents = channel.unary_stream( - '/context.ContextService/GetDeviceEvents', - request_serializer=context__pb2.Empty.SerializeToString, - response_deserializer=context__pb2.DeviceEvent.FromString, - ) - self.SelectDevice = channel.unary_unary( - '/context.ContextService/SelectDevice', - request_serializer=context__pb2.DeviceFilter.SerializeToString, - response_deserializer=context__pb2.DeviceList.FromString, - ) - self.ListEndPointNames = channel.unary_unary( - '/context.ContextService/ListEndPointNames', - request_serializer=context__pb2.EndPointIdList.SerializeToString, - response_deserializer=context__pb2.EndPointNameList.FromString, - ) - self.ListLinkIds = channel.unary_unary( - '/context.ContextService/ListLinkIds', - request_serializer=context__pb2.Empty.SerializeToString, - response_deserializer=context__pb2.LinkIdList.FromString, - ) - self.ListLinks = channel.unary_unary( - '/context.ContextService/ListLinks', - request_serializer=context__pb2.Empty.SerializeToString, - response_deserializer=context__pb2.LinkList.FromString, - ) - self.GetLink = channel.unary_unary( - '/context.ContextService/GetLink', - request_serializer=context__pb2.LinkId.SerializeToString, - response_deserializer=context__pb2.Link.FromString, - ) - self.SetLink = channel.unary_unary( - '/context.ContextService/SetLink', - request_serializer=context__pb2.Link.SerializeToString, - response_deserializer=context__pb2.LinkId.FromString, - ) - self.RemoveLink = channel.unary_unary( - '/context.ContextService/RemoveLink', - request_serializer=context__pb2.LinkId.SerializeToString, - response_deserializer=context__pb2.Empty.FromString, - ) - self.GetLinkEvents = channel.unary_stream( - '/context.ContextService/GetLinkEvents', - request_serializer=context__pb2.Empty.SerializeToString, - response_deserializer=context__pb2.LinkEvent.FromString, - ) - self.ListServiceIds = channel.unary_unary( - '/context.ContextService/ListServiceIds', - request_serializer=context__pb2.ContextId.SerializeToString, - response_deserializer=context__pb2.ServiceIdList.FromString, - ) - self.ListServices = channel.unary_unary( - '/context.ContextService/ListServices', - request_serializer=context__pb2.ContextId.SerializeToString, - response_deserializer=context__pb2.ServiceList.FromString, - ) - self.GetService = channel.unary_unary( - '/context.ContextService/GetService', - request_serializer=context__pb2.ServiceId.SerializeToString, - response_deserializer=context__pb2.Service.FromString, - ) - self.SetService = channel.unary_unary( - '/context.ContextService/SetService', - request_serializer=context__pb2.Service.SerializeToString, - response_deserializer=context__pb2.ServiceId.FromString, - ) - self.UnsetService = channel.unary_unary( - '/context.ContextService/UnsetService', - request_serializer=context__pb2.Service.SerializeToString, - response_deserializer=context__pb2.ServiceId.FromString, - ) - self.RemoveService = channel.unary_unary( - '/context.ContextService/RemoveService', - request_serializer=context__pb2.ServiceId.SerializeToString, - response_deserializer=context__pb2.Empty.FromString, - ) - self.GetServiceEvents = channel.unary_stream( - '/context.ContextService/GetServiceEvents', - request_serializer=context__pb2.Empty.SerializeToString, - response_deserializer=context__pb2.ServiceEvent.FromString, - ) - self.SelectService = channel.unary_unary( - '/context.ContextService/SelectService', - request_serializer=context__pb2.ServiceFilter.SerializeToString, - response_deserializer=context__pb2.ServiceList.FromString, - ) - self.ListSliceIds = channel.unary_unary( - '/context.ContextService/ListSliceIds', - request_serializer=context__pb2.ContextId.SerializeToString, - response_deserializer=context__pb2.SliceIdList.FromString, - ) - self.ListSlices = channel.unary_unary( - '/context.ContextService/ListSlices', - request_serializer=context__pb2.ContextId.SerializeToString, - response_deserializer=context__pb2.SliceList.FromString, - ) - self.GetSlice = channel.unary_unary( - '/context.ContextService/GetSlice', - request_serializer=context__pb2.SliceId.SerializeToString, - response_deserializer=context__pb2.Slice.FromString, - ) - self.SetSlice = channel.unary_unary( - '/context.ContextService/SetSlice', - request_serializer=context__pb2.Slice.SerializeToString, - response_deserializer=context__pb2.SliceId.FromString, - ) - self.UnsetSlice = channel.unary_unary( - '/context.ContextService/UnsetSlice', - request_serializer=context__pb2.Slice.SerializeToString, - response_deserializer=context__pb2.SliceId.FromString, - ) - self.RemoveSlice = channel.unary_unary( - '/context.ContextService/RemoveSlice', - request_serializer=context__pb2.SliceId.SerializeToString, - response_deserializer=context__pb2.Empty.FromString, - ) - self.GetSliceEvents = channel.unary_stream( - '/context.ContextService/GetSliceEvents', - request_serializer=context__pb2.Empty.SerializeToString, - response_deserializer=context__pb2.SliceEvent.FromString, - ) - self.SelectSlice = channel.unary_unary( - '/context.ContextService/SelectSlice', - request_serializer=context__pb2.SliceFilter.SerializeToString, - response_deserializer=context__pb2.SliceList.FromString, - ) - self.ListConnectionIds = channel.unary_unary( - '/context.ContextService/ListConnectionIds', - request_serializer=context__pb2.ServiceId.SerializeToString, - response_deserializer=context__pb2.ConnectionIdList.FromString, - ) - self.ListConnections = channel.unary_unary( - '/context.ContextService/ListConnections', - request_serializer=context__pb2.ServiceId.SerializeToString, - response_deserializer=context__pb2.ConnectionList.FromString, - ) - self.GetConnection = channel.unary_unary( - '/context.ContextService/GetConnection', - request_serializer=context__pb2.ConnectionId.SerializeToString, - response_deserializer=context__pb2.Connection.FromString, - ) - self.SetConnection = channel.unary_unary( - '/context.ContextService/SetConnection', - request_serializer=context__pb2.Connection.SerializeToString, - response_deserializer=context__pb2.ConnectionId.FromString, - ) - self.RemoveConnection = channel.unary_unary( - '/context.ContextService/RemoveConnection', - request_serializer=context__pb2.ConnectionId.SerializeToString, - response_deserializer=context__pb2.Empty.FromString, - ) - self.GetConnectionEvents = channel.unary_stream( - '/context.ContextService/GetConnectionEvents', - request_serializer=context__pb2.Empty.SerializeToString, - response_deserializer=context__pb2.ConnectionEvent.FromString, - ) - self.GetOpticalConfig = channel.unary_unary( - '/context.ContextService/GetOpticalConfig', - request_serializer=context__pb2.Empty.SerializeToString, - response_deserializer=context__pb2.OpticalConfigList.FromString, - ) - self.SetOpticalConfig = channel.unary_unary( - '/context.ContextService/SetOpticalConfig', - request_serializer=context__pb2.OpticalConfig.SerializeToString, - response_deserializer=context__pb2.OpticalConfigId.FromString, - ) - self.SelectOpticalConfig = channel.unary_unary( - '/context.ContextService/SelectOpticalConfig', - request_serializer=context__pb2.OpticalConfigId.SerializeToString, - response_deserializer=context__pb2.OpticalConfig.FromString, - ) - self.SetOpticalLink = channel.unary_unary( - '/context.ContextService/SetOpticalLink', - request_serializer=context__pb2.OpticalLink.SerializeToString, - response_deserializer=context__pb2.Empty.FromString, - ) - self.GetOpticalLink = channel.unary_unary( - '/context.ContextService/GetOpticalLink', - request_serializer=context__pb2.OpticalLinkId.SerializeToString, - response_deserializer=context__pb2.OpticalLink.FromString, - ) - self.GetFiber = channel.unary_unary( - '/context.ContextService/GetFiber', - request_serializer=context__pb2.FiberId.SerializeToString, - response_deserializer=context__pb2.Fiber.FromString, - ) - - -class ContextServiceServicer(object): - """Missing associated documentation comment in .proto file.""" - - def ListContextIds(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListContexts(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetContext(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetContext(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RemoveContext(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetContextEvents(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListTopologyIds(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListTopologies(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTopology(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTopologyDetails(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetTopology(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RemoveTopology(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTopologyEvents(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListDeviceIds(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListDevices(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetDevice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetDevice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RemoveDevice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetDeviceEvents(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelectDevice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListEndPointNames(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListLinkIds(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListLinks(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetLink(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetLink(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RemoveLink(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetLinkEvents(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListServiceIds(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListServices(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetService(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetService(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UnsetService(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RemoveService(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetServiceEvents(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelectService(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListSliceIds(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListSlices(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSlice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetSlice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UnsetSlice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RemoveSlice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSliceEvents(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelectSlice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListConnectionIds(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListConnections(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetConnection(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetConnection(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RemoveConnection(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetConnectionEvents(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetOpticalConfig(self, request, context): - """------------------------------ Experimental ----------------------------- - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetOpticalConfig(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelectOpticalConfig(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetOpticalLink(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetOpticalLink(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetFiber(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ContextServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListContextIds': grpc.unary_unary_rpc_method_handler( - servicer.ListContextIds, - request_deserializer=context__pb2.Empty.FromString, - response_serializer=context__pb2.ContextIdList.SerializeToString, - ), - 'ListContexts': grpc.unary_unary_rpc_method_handler( - servicer.ListContexts, - request_deserializer=context__pb2.Empty.FromString, - response_serializer=context__pb2.ContextList.SerializeToString, - ), - 'GetContext': grpc.unary_unary_rpc_method_handler( - servicer.GetContext, - request_deserializer=context__pb2.ContextId.FromString, - response_serializer=context__pb2.Context.SerializeToString, - ), - 'SetContext': grpc.unary_unary_rpc_method_handler( - servicer.SetContext, - request_deserializer=context__pb2.Context.FromString, - response_serializer=context__pb2.ContextId.SerializeToString, - ), - 'RemoveContext': grpc.unary_unary_rpc_method_handler( - servicer.RemoveContext, - request_deserializer=context__pb2.ContextId.FromString, - response_serializer=context__pb2.Empty.SerializeToString, - ), - 'GetContextEvents': grpc.unary_stream_rpc_method_handler( - servicer.GetContextEvents, - request_deserializer=context__pb2.Empty.FromString, - response_serializer=context__pb2.ContextEvent.SerializeToString, - ), - 'ListTopologyIds': grpc.unary_unary_rpc_method_handler( - servicer.ListTopologyIds, - request_deserializer=context__pb2.ContextId.FromString, - response_serializer=context__pb2.TopologyIdList.SerializeToString, - ), - 'ListTopologies': grpc.unary_unary_rpc_method_handler( - servicer.ListTopologies, - request_deserializer=context__pb2.ContextId.FromString, - response_serializer=context__pb2.TopologyList.SerializeToString, - ), - 'GetTopology': grpc.unary_unary_rpc_method_handler( - servicer.GetTopology, - request_deserializer=context__pb2.TopologyId.FromString, - response_serializer=context__pb2.Topology.SerializeToString, - ), - 'GetTopologyDetails': grpc.unary_unary_rpc_method_handler( - servicer.GetTopologyDetails, - request_deserializer=context__pb2.TopologyId.FromString, - response_serializer=context__pb2.TopologyDetails.SerializeToString, - ), - 'SetTopology': grpc.unary_unary_rpc_method_handler( - servicer.SetTopology, - request_deserializer=context__pb2.Topology.FromString, - response_serializer=context__pb2.TopologyId.SerializeToString, - ), - 'RemoveTopology': grpc.unary_unary_rpc_method_handler( - servicer.RemoveTopology, - request_deserializer=context__pb2.TopologyId.FromString, - response_serializer=context__pb2.Empty.SerializeToString, - ), - 'GetTopologyEvents': grpc.unary_stream_rpc_method_handler( - servicer.GetTopologyEvents, - request_deserializer=context__pb2.Empty.FromString, - response_serializer=context__pb2.TopologyEvent.SerializeToString, - ), - 'ListDeviceIds': grpc.unary_unary_rpc_method_handler( - servicer.ListDeviceIds, - request_deserializer=context__pb2.Empty.FromString, - response_serializer=context__pb2.DeviceIdList.SerializeToString, - ), - 'ListDevices': grpc.unary_unary_rpc_method_handler( - servicer.ListDevices, - request_deserializer=context__pb2.Empty.FromString, - response_serializer=context__pb2.DeviceList.SerializeToString, - ), - 'GetDevice': grpc.unary_unary_rpc_method_handler( - servicer.GetDevice, - request_deserializer=context__pb2.DeviceId.FromString, - response_serializer=context__pb2.Device.SerializeToString, - ), - 'SetDevice': grpc.unary_unary_rpc_method_handler( - servicer.SetDevice, - request_deserializer=context__pb2.Device.FromString, - response_serializer=context__pb2.DeviceId.SerializeToString, - ), - 'RemoveDevice': grpc.unary_unary_rpc_method_handler( - servicer.RemoveDevice, - request_deserializer=context__pb2.DeviceId.FromString, - response_serializer=context__pb2.Empty.SerializeToString, - ), - 'GetDeviceEvents': grpc.unary_stream_rpc_method_handler( - servicer.GetDeviceEvents, - request_deserializer=context__pb2.Empty.FromString, - response_serializer=context__pb2.DeviceEvent.SerializeToString, - ), - 'SelectDevice': grpc.unary_unary_rpc_method_handler( - servicer.SelectDevice, - request_deserializer=context__pb2.DeviceFilter.FromString, - response_serializer=context__pb2.DeviceList.SerializeToString, - ), - 'ListEndPointNames': grpc.unary_unary_rpc_method_handler( - servicer.ListEndPointNames, - request_deserializer=context__pb2.EndPointIdList.FromString, - response_serializer=context__pb2.EndPointNameList.SerializeToString, - ), - 'ListLinkIds': grpc.unary_unary_rpc_method_handler( - servicer.ListLinkIds, - request_deserializer=context__pb2.Empty.FromString, - response_serializer=context__pb2.LinkIdList.SerializeToString, - ), - 'ListLinks': grpc.unary_unary_rpc_method_handler( - servicer.ListLinks, - request_deserializer=context__pb2.Empty.FromString, - response_serializer=context__pb2.LinkList.SerializeToString, - ), - 'GetLink': grpc.unary_unary_rpc_method_handler( - servicer.GetLink, - request_deserializer=context__pb2.LinkId.FromString, - response_serializer=context__pb2.Link.SerializeToString, - ), - 'SetLink': grpc.unary_unary_rpc_method_handler( - servicer.SetLink, - request_deserializer=context__pb2.Link.FromString, - response_serializer=context__pb2.LinkId.SerializeToString, - ), - 'RemoveLink': grpc.unary_unary_rpc_method_handler( - servicer.RemoveLink, - request_deserializer=context__pb2.LinkId.FromString, - response_serializer=context__pb2.Empty.SerializeToString, - ), - 'GetLinkEvents': grpc.unary_stream_rpc_method_handler( - servicer.GetLinkEvents, - request_deserializer=context__pb2.Empty.FromString, - response_serializer=context__pb2.LinkEvent.SerializeToString, - ), - 'ListServiceIds': grpc.unary_unary_rpc_method_handler( - servicer.ListServiceIds, - request_deserializer=context__pb2.ContextId.FromString, - response_serializer=context__pb2.ServiceIdList.SerializeToString, - ), - 'ListServices': grpc.unary_unary_rpc_method_handler( - servicer.ListServices, - request_deserializer=context__pb2.ContextId.FromString, - response_serializer=context__pb2.ServiceList.SerializeToString, - ), - 'GetService': grpc.unary_unary_rpc_method_handler( - servicer.GetService, - request_deserializer=context__pb2.ServiceId.FromString, - response_serializer=context__pb2.Service.SerializeToString, - ), - 'SetService': grpc.unary_unary_rpc_method_handler( - servicer.SetService, - request_deserializer=context__pb2.Service.FromString, - response_serializer=context__pb2.ServiceId.SerializeToString, - ), - 'UnsetService': grpc.unary_unary_rpc_method_handler( - servicer.UnsetService, - request_deserializer=context__pb2.Service.FromString, - response_serializer=context__pb2.ServiceId.SerializeToString, - ), - 'RemoveService': grpc.unary_unary_rpc_method_handler( - servicer.RemoveService, - request_deserializer=context__pb2.ServiceId.FromString, - response_serializer=context__pb2.Empty.SerializeToString, - ), - 'GetServiceEvents': grpc.unary_stream_rpc_method_handler( - servicer.GetServiceEvents, - request_deserializer=context__pb2.Empty.FromString, - response_serializer=context__pb2.ServiceEvent.SerializeToString, - ), - 'SelectService': grpc.unary_unary_rpc_method_handler( - servicer.SelectService, - request_deserializer=context__pb2.ServiceFilter.FromString, - response_serializer=context__pb2.ServiceList.SerializeToString, - ), - 'ListSliceIds': grpc.unary_unary_rpc_method_handler( - servicer.ListSliceIds, - request_deserializer=context__pb2.ContextId.FromString, - response_serializer=context__pb2.SliceIdList.SerializeToString, - ), - 'ListSlices': grpc.unary_unary_rpc_method_handler( - servicer.ListSlices, - request_deserializer=context__pb2.ContextId.FromString, - response_serializer=context__pb2.SliceList.SerializeToString, - ), - 'GetSlice': grpc.unary_unary_rpc_method_handler( - servicer.GetSlice, - request_deserializer=context__pb2.SliceId.FromString, - response_serializer=context__pb2.Slice.SerializeToString, - ), - 'SetSlice': grpc.unary_unary_rpc_method_handler( - servicer.SetSlice, - request_deserializer=context__pb2.Slice.FromString, - response_serializer=context__pb2.SliceId.SerializeToString, - ), - 'UnsetSlice': grpc.unary_unary_rpc_method_handler( - servicer.UnsetSlice, - request_deserializer=context__pb2.Slice.FromString, - response_serializer=context__pb2.SliceId.SerializeToString, - ), - 'RemoveSlice': grpc.unary_unary_rpc_method_handler( - servicer.RemoveSlice, - request_deserializer=context__pb2.SliceId.FromString, - response_serializer=context__pb2.Empty.SerializeToString, - ), - 'GetSliceEvents': grpc.unary_stream_rpc_method_handler( - servicer.GetSliceEvents, - request_deserializer=context__pb2.Empty.FromString, - response_serializer=context__pb2.SliceEvent.SerializeToString, - ), - 'SelectSlice': grpc.unary_unary_rpc_method_handler( - servicer.SelectSlice, - request_deserializer=context__pb2.SliceFilter.FromString, - response_serializer=context__pb2.SliceList.SerializeToString, - ), - 'ListConnectionIds': grpc.unary_unary_rpc_method_handler( - servicer.ListConnectionIds, - request_deserializer=context__pb2.ServiceId.FromString, - response_serializer=context__pb2.ConnectionIdList.SerializeToString, - ), - 'ListConnections': grpc.unary_unary_rpc_method_handler( - servicer.ListConnections, - request_deserializer=context__pb2.ServiceId.FromString, - response_serializer=context__pb2.ConnectionList.SerializeToString, - ), - 'GetConnection': grpc.unary_unary_rpc_method_handler( - servicer.GetConnection, - request_deserializer=context__pb2.ConnectionId.FromString, - response_serializer=context__pb2.Connection.SerializeToString, - ), - 'SetConnection': grpc.unary_unary_rpc_method_handler( - servicer.SetConnection, - request_deserializer=context__pb2.Connection.FromString, - response_serializer=context__pb2.ConnectionId.SerializeToString, - ), - 'RemoveConnection': grpc.unary_unary_rpc_method_handler( - servicer.RemoveConnection, - request_deserializer=context__pb2.ConnectionId.FromString, - response_serializer=context__pb2.Empty.SerializeToString, - ), - 'GetConnectionEvents': grpc.unary_stream_rpc_method_handler( - servicer.GetConnectionEvents, - request_deserializer=context__pb2.Empty.FromString, - response_serializer=context__pb2.ConnectionEvent.SerializeToString, - ), - 'GetOpticalConfig': grpc.unary_unary_rpc_method_handler( - servicer.GetOpticalConfig, - request_deserializer=context__pb2.Empty.FromString, - response_serializer=context__pb2.OpticalConfigList.SerializeToString, - ), - 'SetOpticalConfig': grpc.unary_unary_rpc_method_handler( - servicer.SetOpticalConfig, - request_deserializer=context__pb2.OpticalConfig.FromString, - response_serializer=context__pb2.OpticalConfigId.SerializeToString, - ), - 'SelectOpticalConfig': grpc.unary_unary_rpc_method_handler( - servicer.SelectOpticalConfig, - request_deserializer=context__pb2.OpticalConfigId.FromString, - response_serializer=context__pb2.OpticalConfig.SerializeToString, - ), - 'SetOpticalLink': grpc.unary_unary_rpc_method_handler( - servicer.SetOpticalLink, - request_deserializer=context__pb2.OpticalLink.FromString, - response_serializer=context__pb2.Empty.SerializeToString, - ), - 'GetOpticalLink': grpc.unary_unary_rpc_method_handler( - servicer.GetOpticalLink, - request_deserializer=context__pb2.OpticalLinkId.FromString, - response_serializer=context__pb2.OpticalLink.SerializeToString, - ), - 'GetFiber': grpc.unary_unary_rpc_method_handler( - servicer.GetFiber, - request_deserializer=context__pb2.FiberId.FromString, - response_serializer=context__pb2.Fiber.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'context.ContextService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class ContextService(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def ListContextIds(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, '/context.ContextService/ListContextIds', - context__pb2.Empty.SerializeToString, - context__pb2.ContextIdList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListContexts(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, '/context.ContextService/ListContexts', - context__pb2.Empty.SerializeToString, - context__pb2.ContextList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetContext(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, '/context.ContextService/GetContext', - context__pb2.ContextId.SerializeToString, - context__pb2.Context.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetContext(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, '/context.ContextService/SetContext', - context__pb2.Context.SerializeToString, - context__pb2.ContextId.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RemoveContext(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, '/context.ContextService/RemoveContext', - context__pb2.ContextId.SerializeToString, - context__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetContextEvents(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_stream(request, target, '/context.ContextService/GetContextEvents', - context__pb2.Empty.SerializeToString, - context__pb2.ContextEvent.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListTopologyIds(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, '/context.ContextService/ListTopologyIds', - context__pb2.ContextId.SerializeToString, - context__pb2.TopologyIdList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListTopologies(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, '/context.ContextService/ListTopologies', - context__pb2.ContextId.SerializeToString, - context__pb2.TopologyList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTopology(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, '/context.ContextService/GetTopology', - context__pb2.TopologyId.SerializeToString, - context__pb2.Topology.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTopologyDetails(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, '/context.ContextService/GetTopologyDetails', - context__pb2.TopologyId.SerializeToString, - context__pb2.TopologyDetails.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetTopology(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, '/context.ContextService/SetTopology', - context__pb2.Topology.SerializeToString, - context__pb2.TopologyId.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RemoveTopology(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, '/context.ContextService/RemoveTopology', - context__pb2.TopologyId.SerializeToString, - context__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTopologyEvents(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_stream(request, target, '/context.ContextService/GetTopologyEvents', - context__pb2.Empty.SerializeToString, - context__pb2.TopologyEvent.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListDeviceIds(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, '/context.ContextService/ListDeviceIds', - context__pb2.Empty.SerializeToString, - context__pb2.DeviceIdList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListDevices(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, '/context.ContextService/ListDevices', - context__pb2.Empty.SerializeToString, - context__pb2.DeviceList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetDevice(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, '/context.ContextService/GetDevice', - context__pb2.DeviceId.SerializeToString, - context__pb2.Device.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetDevice(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, '/context.ContextService/SetDevice', - context__pb2.Device.SerializeToString, - context__pb2.DeviceId.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RemoveDevice(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, '/context.ContextService/RemoveDevice', - context__pb2.DeviceId.SerializeToString, - context__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetDeviceEvents(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_stream(request, target, '/context.ContextService/GetDeviceEvents', - context__pb2.Empty.SerializeToString, - context__pb2.DeviceEvent.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelectDevice(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, '/context.ContextService/SelectDevice', - context__pb2.DeviceFilter.SerializeToString, - context__pb2.DeviceList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListEndPointNames(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, '/context.ContextService/ListEndPointNames', - context__pb2.EndPointIdList.SerializeToString, - context__pb2.EndPointNameList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListLinkIds(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, '/context.ContextService/ListLinkIds', - context__pb2.Empty.SerializeToString, - context__pb2.LinkIdList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListLinks(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, '/context.ContextService/ListLinks', - context__pb2.Empty.SerializeToString, - context__pb2.LinkList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetLink(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, '/context.ContextService/GetLink', - context__pb2.LinkId.SerializeToString, - context__pb2.Link.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetLink(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, '/context.ContextService/SetLink', - context__pb2.Link.SerializeToString, - context__pb2.LinkId.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RemoveLink(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, '/context.ContextService/RemoveLink', - context__pb2.LinkId.SerializeToString, - context__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetLinkEvents(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_stream(request, target, '/context.ContextService/GetLinkEvents', - context__pb2.Empty.SerializeToString, - context__pb2.LinkEvent.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListServiceIds(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, '/context.ContextService/ListServiceIds', - context__pb2.ContextId.SerializeToString, - context__pb2.ServiceIdList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListServices(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, '/context.ContextService/ListServices', - context__pb2.ContextId.SerializeToString, - context__pb2.ServiceList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetService(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, '/context.ContextService/GetService', - context__pb2.ServiceId.SerializeToString, - context__pb2.Service.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetService(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, '/context.ContextService/SetService', - context__pb2.Service.SerializeToString, - context__pb2.ServiceId.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UnsetService(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, '/context.ContextService/UnsetService', - context__pb2.Service.SerializeToString, - context__pb2.ServiceId.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RemoveService(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, '/context.ContextService/RemoveService', - context__pb2.ServiceId.SerializeToString, - context__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetServiceEvents(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_stream(request, target, '/context.ContextService/GetServiceEvents', - context__pb2.Empty.SerializeToString, - context__pb2.ServiceEvent.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelectService(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, '/context.ContextService/SelectService', - context__pb2.ServiceFilter.SerializeToString, - context__pb2.ServiceList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListSliceIds(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, '/context.ContextService/ListSliceIds', - context__pb2.ContextId.SerializeToString, - context__pb2.SliceIdList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListSlices(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, '/context.ContextService/ListSlices', - context__pb2.ContextId.SerializeToString, - context__pb2.SliceList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSlice(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, '/context.ContextService/GetSlice', - context__pb2.SliceId.SerializeToString, - context__pb2.Slice.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetSlice(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, '/context.ContextService/SetSlice', - context__pb2.Slice.SerializeToString, - context__pb2.SliceId.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UnsetSlice(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, '/context.ContextService/UnsetSlice', - context__pb2.Slice.SerializeToString, - context__pb2.SliceId.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RemoveSlice(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, '/context.ContextService/RemoveSlice', - context__pb2.SliceId.SerializeToString, - context__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSliceEvents(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_stream(request, target, '/context.ContextService/GetSliceEvents', - context__pb2.Empty.SerializeToString, - context__pb2.SliceEvent.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelectSlice(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, '/context.ContextService/SelectSlice', - context__pb2.SliceFilter.SerializeToString, - context__pb2.SliceList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListConnectionIds(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, '/context.ContextService/ListConnectionIds', - context__pb2.ServiceId.SerializeToString, - context__pb2.ConnectionIdList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListConnections(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, '/context.ContextService/ListConnections', - context__pb2.ServiceId.SerializeToString, - context__pb2.ConnectionList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetConnection(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, '/context.ContextService/GetConnection', - context__pb2.ConnectionId.SerializeToString, - context__pb2.Connection.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetConnection(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, '/context.ContextService/SetConnection', - context__pb2.Connection.SerializeToString, - context__pb2.ConnectionId.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RemoveConnection(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, '/context.ContextService/RemoveConnection', - context__pb2.ConnectionId.SerializeToString, - context__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetConnectionEvents(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_stream(request, target, '/context.ContextService/GetConnectionEvents', - context__pb2.Empty.SerializeToString, - context__pb2.ConnectionEvent.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetOpticalConfig(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, '/context.ContextService/GetOpticalConfig', - context__pb2.Empty.SerializeToString, - context__pb2.OpticalConfigList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetOpticalConfig(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, '/context.ContextService/SetOpticalConfig', - context__pb2.OpticalConfig.SerializeToString, - context__pb2.OpticalConfigId.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelectOpticalConfig(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, '/context.ContextService/SelectOpticalConfig', - context__pb2.OpticalConfigId.SerializeToString, - context__pb2.OpticalConfig.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetOpticalLink(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, '/context.ContextService/SetOpticalLink', - context__pb2.OpticalLink.SerializeToString, - context__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetOpticalLink(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, '/context.ContextService/GetOpticalLink', - context__pb2.OpticalLinkId.SerializeToString, - context__pb2.OpticalLink.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetFiber(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, '/context.ContextService/GetFiber', - context__pb2.FiberId.SerializeToString, - context__pb2.Fiber.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/src/device/tests/qkd/unit/test_application_deployment.py b/src/device/tests/qkd/unit/test_application_deployment.py index 972f96ce342d0f0a68d46943b261075af4a6c97c..92e16663b41556563aab884be2ee48518cd15ff7 100644 --- a/src/device/tests/qkd/unit/test_application_deployment.py +++ b/src/device/tests/qkd/unit/test_application_deployment.py @@ -14,7 +14,7 @@ import pytest import json -from src.device.service.drivers.qkd.QKDDriver2 import QKDDriver +from device.service.drivers.qkd.QKDDriver2 import QKDDriver MOCK_QKD_ADDRRESS = '127.0.0.1' MOCK_PORT = 11111 diff --git a/src/device/tests/qkd/unit/test_qkd_configuration.py b/src/device/tests/qkd/unit/test_qkd_configuration.py index d058978f978e70cd4171a944c8b1717806359b5c..15c4787c28a92ed07d8666b4c715954da1e690d6 100644 --- a/src/device/tests/qkd/unit/test_qkd_configuration.py +++ b/src/device/tests/qkd/unit/test_qkd_configuration.py @@ -15,9 +15,9 @@ import pytest import json from requests.exceptions import HTTPError -from src.device.service.drivers.qkd.QKDDriver2 import QKDDriver +from device.service.drivers.qkd.QKDDriver2 import QKDDriver import requests -from src.device.service.drivers.qkd.Tools2 import ( +from device.service.drivers.qkd.Tools2 import ( RESOURCE_INTERFACES, RESOURCE_LINKS, RESOURCE_ENDPOINTS, diff --git a/src/device/tests/qkd/unit/test_qkd_error_hanling.py b/src/device/tests/qkd/unit/test_qkd_error_hanling.py index 0d11b9b5c42967261dfde13f9872abd4ac3eb7d5..d93e3711136de496fd39365563032f827cfbe913 100644 --- a/src/device/tests/qkd/unit/test_qkd_error_hanling.py +++ b/src/device/tests/qkd/unit/test_qkd_error_hanling.py @@ -12,11 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -import pytest -from requests.exceptions import HTTPError -from src.device.service.drivers.qkd.QKDDriver2 import QKDDriver -from requests.exceptions import ConnectionError, Timeout -import requests +import pytest, requests +from requests.exceptions import ConnectionError, HTTPError, Timeout +from device.service.drivers.qkd.QKDDriver2 import QKDDriver MOCK_QKD_ADDRRESS = '127.0.0.1' MOCK_PORT = 11111 diff --git a/src/device/tests/qkd/unit/test_qkd_mock_connectivity.py b/src/device/tests/qkd/unit/test_qkd_mock_connectivity.py index 983ca89eae319d4a2d6d6b7c890ff6f9517e0658..150d00fd079b0a036f383653c833562279bb4d72 100644 --- a/src/device/tests/qkd/unit/test_qkd_mock_connectivity.py +++ b/src/device/tests/qkd/unit/test_qkd_mock_connectivity.py @@ -12,10 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -import pytest +import pytest, requests from unittest.mock import patch -from src.device.service.drivers.qkd.QKDDriver import QKDDriver -import requests +from device.service.drivers.qkd.QKDDriver import QKDDriver MOCK_QKD_ADDRRESS = '127.0.0.1' MOCK_PORT = 11111 @@ -34,7 +33,7 @@ def test_qkd_driver_invalid_connection(): assert qkd_driver.Connect() is False # Deliverable Test ID: SBI_Test_10 -@patch('src.device.service.drivers.qkd.QKDDriver2.requests.get') +@patch('device.service.drivers.qkd.QKDDriver2.requests.get') def test_qkd_driver_timeout_connection(mock_get, qkd_driver): mock_get.side_effect = requests.exceptions.Timeout qkd_driver.timeout = 0.001 # Simulate very short timeout diff --git a/src/device/tests/qkd/unit/test_qkd_performance.py b/src/device/tests/qkd/unit/test_qkd_performance.py index a2371a1e7c3315e4c2e7f1c56312c87e176763bd..b15d1ab070b61333c55f7674e39ba74aae891de6 100644 --- a/src/device/tests/qkd/unit/test_qkd_performance.py +++ b/src/device/tests/qkd/unit/test_qkd_performance.py @@ -14,9 +14,8 @@ # tests/unit/test_qkd_performance.py -import pytest -import time -from src.device.service.drivers.qkd.QKDDriver2 import QKDDriver +import pytest, time +from device.service.drivers.qkd.QKDDriver2 import QKDDriver MOCK_QKD_ADDRRESS = '127.0.0.1' MOCK_PORT = 11111 diff --git a/src/device/tests/qkd/unit/test_qkd_security.py b/src/device/tests/qkd/unit/test_qkd_security.py index 1f3ad3498dd8180e6ef3c2269a2d10b08b7a5382..f2942fd4685dce13f89832528d4298b267707886 100644 --- a/src/device/tests/qkd/unit/test_qkd_security.py +++ b/src/device/tests/qkd/unit/test_qkd_security.py @@ -12,13 +12,13 @@ # See the License for the specific language governing permissions and # limitations under the License. -import pytest import json import os -from requests.exceptions import HTTPError -from src.device.service.drivers.qkd.QKDDriver2 import QKDDriver -from src.device.service.drivers.qkd.Tools2 import RESOURCE_CAPABILITES +import pytest import requests +from requests.exceptions import HTTPError +from device.service.drivers.qkd.QKDDriver2 import QKDDriver +from device.service.drivers.qkd.Tools2 import RESOURCE_CAPABILITES # Helper function to print data in a formatted JSON style for debugging def print_data(label, data): diff --git a/src/device/tests/qkd/unit/test_qkd_subscription.py b/src/device/tests/qkd/unit/test_qkd_subscription.py index 975dc7b6b997ebbc6f54bddee6f55cb690ced8f3..883fe2a1a6defe85a995c12e824a5e7d88159981 100644 --- a/src/device/tests/qkd/unit/test_qkd_subscription.py +++ b/src/device/tests/qkd/unit/test_qkd_subscription.py @@ -13,8 +13,8 @@ # limitations under the License. import pytest -from src.device.service.drivers.qkd.QKDDriver2 import QKDDriver from typing import List, Tuple +from device.service.drivers.qkd.QKDDriver2 import QKDDriver MOCK_QKD_ADDRRESS = '127.0.0.1' MOCK_PORT = 11111 diff --git a/src/device/tests/qkd/unit/test_qkd_unsubscription.py b/src/device/tests/qkd/unit/test_qkd_unsubscription.py index 975dc7b6b997ebbc6f54bddee6f55cb690ced8f3..883fe2a1a6defe85a995c12e824a5e7d88159981 100644 --- a/src/device/tests/qkd/unit/test_qkd_unsubscription.py +++ b/src/device/tests/qkd/unit/test_qkd_unsubscription.py @@ -13,8 +13,8 @@ # limitations under the License. import pytest -from src.device.service.drivers.qkd.QKDDriver2 import QKDDriver from typing import List, Tuple +from device.service.drivers.qkd.QKDDriver2 import QKDDriver MOCK_QKD_ADDRRESS = '127.0.0.1' MOCK_PORT = 11111 diff --git a/src/device/tests/qkd/unit/test_set_new configuration.py b/src/device/tests/qkd/unit/test_set_new_configuration.py similarity index 96% rename from src/device/tests/qkd/unit/test_set_new configuration.py rename to src/device/tests/qkd/unit/test_set_new_configuration.py index 2caa44fafe070bf2aaca2a0920ea0e19c2e5744e..d4b2024897305afccaf67420756a5ae92332d2c1 100644 --- a/src/device/tests/qkd/unit/test_set_new configuration.py +++ b/src/device/tests/qkd/unit/test_set_new_configuration.py @@ -12,12 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -import pytest -import requests +import pytest, requests, uuid from requests.exceptions import HTTPError -from src.device.service.drivers.qkd.QKDDriver2 import QKDDriver -from src.device.service.drivers.qkd.Tools2 import RESOURCE_APPS -import uuid +from device.service.drivers.qkd.QKDDriver2 import QKDDriver +from device.service.drivers.qkd.Tools2 import RESOURCE_APPS MOCK_QKD1_ADDRRESS = '127.0.0.1' MOCK_PORT1 = 11111