Skip to content
Snippets Groups Projects
Commit e21ed3e1 authored by Mohamad Rahhal's avatar Mohamad Rahhal
Browse files

Device component - Ryu Driver:

- Added Parsing + Posting Methid
parent f47ed475
No related branches found
No related tags found
1 merge request!296Draft: Resolve "(CTTC) Add OpenFlow support through Ryu SDN controller"
device 0 → 100644
[2025-01-15 15:49:41,972] INFO:__main__:Starting...
[2025-01-15 15:49:41,974] DEBUG:monitoring.client.MonitoringClient:Creating channel to monitoringservice:7070...
[2025-01-15 15:49:41,975] DEBUG:monitoring.client.MonitoringClient:Channel created
[2025-01-15 15:49:41,975] DEBUG:device.service.DeviceServiceServicerImpl:Creating Servicer...
[2025-01-15 15:49:41,975] DEBUG:device.service.DeviceServiceServicerImpl:Servicer Created
[2025-01-15 15:49:41,975] DEBUG:device.service.OpenConfigServicer:Creating Servicer...
[2025-01-15 15:49:41,975] DEBUG:device.service.OpenConfigServicer:Servicer Created
[2025-01-15 15:49:41,975] INFO:device.service.DeviceService:Starting Service (tentative endpoint: 0.0.0.0:2020, max_workers: 200)...
[2025-01-15 15:49:41,981] INFO:device.service.DeviceService:Listening on 0.0.0.0:2020...
[2025-01-15 15:49:41,982] DEBUG:device.service.DeviceService:Service started
[2025-01-15 15:49:41,982] INFO:__main__:Pre-loading drivers...
[2025-01-15 15:49:41,982] DEBUG:context.client.ContextClient:Creating channel to 10.152.183.206:1010...
[2025-01-15 15:49:41,983] DEBUG:context.client.ContextClient:Channel created
[2025-01-15 15:49:41,983] DEBUG:context.client.ContextClient:ListDevices request: {}
[2025-01-15 15:49:46,988] INFO:common.tools.client.RetryDecorator:[context.client.ContextClient:ListDevices] Retry 1/15 after 5.000000 seconds...
[2025-01-15 15:49:46,988] DEBUG:common.tools.client.RetryDecorator:[context.client.ContextClient:connect] Running prepare method...
[2025-01-15 15:49:46,989] DEBUG:context.client.ContextClient:ListDevices request: {}
[2025-01-15 15:49:51,997] INFO:common.tools.client.RetryDecorator:[context.client.ContextClient:ListDevices] Retry 2/15 after 5.000000 seconds...
[2025-01-15 15:49:51,997] DEBUG:common.tools.client.RetryDecorator:[context.client.ContextClient:connect] Running prepare method...
[2025-01-15 15:49:51,998] DEBUG:context.client.ContextClient:ListDevices request: {}
[2025-01-15 15:49:52,149] DEBUG:context.client.ContextClient:ListDevices result: {"devices": []}
[2025-01-15 15:50:17,451] DEBUG:device.service.DeviceServiceServicerImpl:AddDevice request: {"components": [], "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h1-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "h1"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "emu-client", "name": ""}
[2025-01-15 15:50:17,451] DEBUG:context.client.ContextClient:Creating channel to 10.152.183.206:1010...
[2025-01-15 15:50:17,452] DEBUG:context.client.ContextClient:Channel created
[2025-01-15 15:50:17,453] DEBUG:device.service.DeviceServiceServicerImpl:AddDevice request: {"components": [], "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.1.7.197"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "8080"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"timeout\": 120\n}"}}]}, "device_drivers": ["DEVICEDRIVER_RYU"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "RYU"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "openflow-ryu-controller", "name": ""}
[2025-01-15 15:50:17,453] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "h1"}}]}, "include_components": true, "include_config_rules": true, "include_endpoints": true}
[2025-01-15 15:50:17,453] DEBUG:context.client.ContextClient:Creating channel to 10.152.183.206:1010...
[2025-01-15 15:50:17,455] DEBUG:context.client.ContextClient:Channel created
[2025-01-15 15:50:17,455] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "RYU"}}]}, "include_components": true, "include_config_rules": true, "include_endpoints": true}
[2025-01-15 15:50:17,456] DEBUG:device.service.DeviceServiceServicerImpl:AddDevice request: {"components": [], "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h3-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "h3"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "emu-client", "name": ""}
[2025-01-15 15:50:17,457] DEBUG:context.client.ContextClient:Creating channel to 10.152.183.206:1010...
[2025-01-15 15:50:17,457] DEBUG:context.client.ContextClient:Channel created
[2025-01-15 15:50:17,457] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "h3"}}]}, "include_components": true, "include_config_rules": true, "include_endpoints": true}
[2025-01-15 15:50:17,458] DEBUG:device.service.DeviceServiceServicerImpl:AddDevice request: {"components": [], "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h2-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "h2"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "emu-client", "name": ""}
[2025-01-15 15:50:17,458] DEBUG:context.client.ContextClient:Creating channel to 10.152.183.206:1010...
[2025-01-15 15:50:17,459] DEBUG:context.client.ContextClient:Channel created
[2025-01-15 15:50:17,459] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "h2"}}]}, "include_components": true, "include_config_rules": true, "include_endpoints": true}
[2025-01-15 15:50:17,461] DEBUG:device.service.DeviceServiceServicerImpl:AddDevice request: {"components": [], "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h4-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "h4"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "emu-client", "name": ""}
[2025-01-15 15:50:17,462] DEBUG:context.client.ContextClient:Creating channel to 10.152.183.206:1010...
[2025-01-15 15:50:17,463] DEBUG:context.client.ContextClient:Channel created
[2025-01-15 15:50:17,463] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "h4"}}]}, "include_components": true, "include_config_rules": true, "include_endpoints": true}
[2025-01-15 15:50:17,464] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": []}
[2025-01-15 15:50:17,464] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h1-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "h1"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "emu-client", "name": ""}
[2025-01-15 15:50:17,472] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": []}
[2025-01-15 15:50:17,473] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h3-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "h3"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "emu-client", "name": ""}
[2025-01-15 15:50:17,517] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "43be2984-467b-56da-a3e6-cfb6f1e8d978"}}
[2025-01-15 15:50:17,517] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "43be2984-467b-56da-a3e6-cfb6f1e8d978"}}]}, "include_components": true, "include_config_rules": true, "include_endpoints": true}
[2025-01-15 15:50:17,533] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": []}
[2025-01-15 15:50:17,533] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h4-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "h4"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "emu-client", "name": ""}
[2025-01-15 15:50:17,534] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": []}
[2025-01-15 15:50:17,534] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.1.7.197"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "8080"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"timeout\": 120\n}"}}]}, "device_drivers": ["DEVICEDRIVER_RYU"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "RYU"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "openflow-ryu-controller", "name": ""}
[2025-01-15 15:50:17,552] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "2a79cf95-9c1c-5588-83be-9533d4100b51"}}
[2025-01-15 15:50:17,552] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "2a79cf95-9c1c-5588-83be-9533d4100b51"}}]}, "include_components": true, "include_config_rules": true, "include_endpoints": true}
[2025-01-15 15:50:17,561] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": []}
[2025-01-15 15:50:17,562] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h2-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "h2"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "emu-client", "name": ""}
[2025-01-15 15:50:17,581] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": [{"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h3-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "43be2984-467b-56da-a3e6-cfb6f1e8d978"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "emu-client", "name": "h3"}]}
[2025-01-15 15:50:17,582] INFO:device.service.driver_api.DriverInstanceCache:Selecting driver for device(43be2984-467b-56da-a3e6-cfb6f1e8d978) with filter_fields({'device_type': 'emu-client', 'driver': [0]})...
[2025-01-15 15:50:17,582] INFO:device.service.driver_api.DriverInstanceCache:Driver(EmulatedDriver) selected for device(43be2984-467b-56da-a3e6-cfb6f1e8d978) with filter_fields({'device_type': 'emu-client', 'driver': [0]})...
[2025-01-15 15:50:17,583] DEBUG:tzlocal:/etc/timezone found, contents:
Etc/UTC
[2025-01-15 15:50:17,584] DEBUG:tzlocal:/etc/localtime found
[2025-01-15 15:50:17,586] DEBUG:tzlocal:2 found:
{'/etc/timezone': 'Etc/UTC', '/etc/localtime is a symlink to': 'Etc/UTC'}
[2025-01-15 15:50:17,587] DEBUG:device.service.Tools:results_getconfig = [('/endpoints/endpoint[h3-eth0]', {'uuid': 'h3-eth0', 'type': 'copper/internal'}), ('/endpoints/endpoint[int]', {'uuid': 'int', 'type': 'copper/internal'})]
[2025-01-15 15:50:17,589] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h3-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[h3-eth0]", "resource_value": "{\"type\": \"copper/internal\", \"uuid\": \"h3-eth0\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[int]", "resource_value": "{\"type\": \"copper/internal\", \"uuid\": \"int\"}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "43be2984-467b-56da-a3e6-cfb6f1e8d978"}}, "endpoint_uuid": {"uuid": "h3-eth0"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": ""}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "43be2984-467b-56da-a3e6-cfb6f1e8d978"}}, "endpoint_uuid": {"uuid": "int"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": ""}], "device_id": {"device_uuid": {"uuid": "43be2984-467b-56da-a3e6-cfb6f1e8d978"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "emu-client", "name": "h3"}
[2025-01-15 15:50:17,589] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}
[2025-01-15 15:50:17,590] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}]}, "include_components": true, "include_config_rules": true, "include_endpoints": true}
[2025-01-15 15:50:17,598] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "c929235b-c0bd-5016-9e63-e7eaafaaa792"}}
[2025-01-15 15:50:17,599] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "c929235b-c0bd-5016-9e63-e7eaafaaa792"}}]}, "include_components": true, "include_config_rules": true, "include_endpoints": true}
[2025-01-15 15:50:17,603] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": [{"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h1-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "2a79cf95-9c1c-5588-83be-9533d4100b51"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "emu-client", "name": "h1"}]}
[2025-01-15 15:50:17,604] INFO:device.service.driver_api.DriverInstanceCache:Selecting driver for device(2a79cf95-9c1c-5588-83be-9533d4100b51) with filter_fields({'device_type': 'emu-client', 'driver': [0]})...
[2025-01-15 15:50:17,604] INFO:device.service.driver_api.DriverInstanceCache:Driver(EmulatedDriver) selected for device(2a79cf95-9c1c-5588-83be-9533d4100b51) with filter_fields({'device_type': 'emu-client', 'driver': [0]})...
[2025-01-15 15:50:17,605] DEBUG:device.service.Tools:results_getconfig = [('/endpoints/endpoint[h1-eth0]', {'uuid': 'h1-eth0', 'type': 'copper/internal'}), ('/endpoints/endpoint[int]', {'uuid': 'int', 'type': 'copper/internal'})]
[2025-01-15 15:50:17,607] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h1-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[h1-eth0]", "resource_value": "{\"type\": \"copper/internal\", \"uuid\": \"h1-eth0\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[int]", "resource_value": "{\"type\": \"copper/internal\", \"uuid\": \"int\"}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "2a79cf95-9c1c-5588-83be-9533d4100b51"}}, "endpoint_uuid": {"uuid": "h1-eth0"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": ""}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "2a79cf95-9c1c-5588-83be-9533d4100b51"}}, "endpoint_uuid": {"uuid": "int"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": ""}], "device_id": {"device_uuid": {"uuid": "2a79cf95-9c1c-5588-83be-9533d4100b51"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "emu-client", "name": "h1"}
[2025-01-15 15:50:17,618] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "53ad149d-c690-52ea-aba9-66a7fd5dbd85"}}
[2025-01-15 15:50:17,618] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "53ad149d-c690-52ea-aba9-66a7fd5dbd85"}}]}, "include_components": true, "include_config_rules": true, "include_endpoints": true}
[2025-01-15 15:50:17,640] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "43be2984-467b-56da-a3e6-cfb6f1e8d978"}}
[2025-01-15 15:50:17,641] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "43be2984-467b-56da-a3e6-cfb6f1e8d978"}}]}, "include_components": false, "include_config_rules": false, "include_endpoints": true}
[2025-01-15 15:50:17,641] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": [{"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.1.7.197"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "8080"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"timeout\": 120\n}"}}]}, "device_drivers": ["DEVICEDRIVER_RYU"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "openflow-ryu-controller", "name": "RYU"}]}
[2025-01-15 15:50:17,642] INFO:device.service.driver_api.DriverInstanceCache:Selecting driver for device(b2ed9526-554d-5a79-9dc9-33e00faecef1) with filter_fields({'device_type': 'openflow-ryu-controller', 'driver': [13]})...
[2025-01-15 15:50:17,642] INFO:device.service.driver_api.DriverInstanceCache:Driver(OpenFlowDriver) selected for device(b2ed9526-554d-5a79-9dc9-33e00faecef1) with filter_fields({'device_type': 'openflow-ryu-controller', 'driver': [13]})...
[2025-01-15 15:50:17,642] INFO:device.service.drivers.OpenFlow.TfsApiClient:self_devices_urlhttp://10.1.7.197:8080/v1.0/topology/switches
[2025-01-15 15:50:17,644] DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 10.1.7.197:8080
[2025-01-15 15:50:17,647] DEBUG:urllib3.connectionpool:http://10.1.7.197:8080 "GET / HTTP/1.1" 200 306
[2025-01-15 15:50:17,647] INFO:device.service.drivers.OpenFlow.OpenFlowDriver:resource_key:['__endpoints__']
[2025-01-15 15:50:17,648] INFO:device.service.drivers.OpenFlow.OpenFlowDriver:resource_key:__endpoints__
[2025-01-15 15:50:17,648] DEBUG:device.service.drivers.OpenFlow.TfsApiClient:[get_devices_endpoints] begin
[2025-01-15 15:50:17,649] DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 10.1.7.197:8080
[2025-01-15 15:50:17,652] DEBUG:urllib3.connectionpool:http://10.1.7.197:8080 "GET /v1.0/topology/switches HTTP/1.1" 200 1661
[2025-01-15 15:50:17,652] INFO:device.service.drivers.OpenFlow.TfsApiClient:[get_devices_endpoints] json_reply_switches=[{"dpid": "0000000000000001", "ports": [{"dpid": "0000000000000001", "port_no": "00000001", "hw_addr": "82:52:b9:9f:7d:b6", "name": "s1-eth1"}, {"dpid": "0000000000000001", "port_no": "00000002", "hw_addr": "be:1c:08:bc:fb:fa", "name": "s1-eth2"}]}, {"dpid": "0000000000000004", "ports": [{"dpid": "0000000000000004", "port_no": "00000001", "hw_addr": "52:32:f8:50:c5:77", "name": "s4-eth1"}, {"dpid": "0000000000000004", "port_no": "00000002", "hw_addr": "8a:bb:c9:b2:79:ba", "name": "s4-eth2"}]}, {"dpid": "0000000000000003", "ports": [{"dpid": "0000000000000003", "port_no": "00000001", "hw_addr": "46:0e:0d:04:58:28", "name": "s3-eth1"}, {"dpid": "0000000000000003", "port_no": "00000002", "hw_addr": "02:bb:8c:18:e0:24", "name": "s3-eth2"}]}, {"dpid": "0000000000000002", "ports": [{"dpid": "0000000000000002", "port_no": "00000001", "hw_addr": "6e:b4:7e:ea:22:2a", "name": "s2-eth1"}, {"dpid": "0000000000000002", "port_no": "00000004", "hw_addr": "ea:43:e4:a5:2c:7f", "name": "s2-eth4"}, {"dpid": "0000000000000002", "port_no": "00000002", "hw_addr": "da:d2:dd:5f:e0:9e", "name": "s2-eth2"}, {"dpid": "0000000000000002", "port_no": "00000003", "hw_addr": "d6:9e:c2:9f:2b:e2", "name": "s2-eth3"}]}, {"dpid": "0000000000000005", "ports": [{"dpid": "0000000000000005", "port_no": "00000004", "hw_addr": "b2:3b:fa:f9:89:91", "name": "s5-eth4"}, {"dpid": "0000000000000005", "port_no": "00000001", "hw_addr": "66:be:8c:28:47:67", "name": "s5-eth1"}, {"dpid": "0000000000000005", "port_no": "00000002", "hw_addr": "62:86:c3:2e:09:c0", "name": "s5-eth2"}, {"dpid": "0000000000000005", "port_no": "00000003", "hw_addr": "0e:b5:83:92:2d:2e", "name": "s5-eth3"}]}]
[2025-01-15 15:50:17,654] DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 10.1.7.197:8080
[2025-01-15 15:50:17,656] DEBUG:urllib3.connectionpool:http://10.1.7.197:8080 "GET /v1.0/topology/links HTTP/1.1" 200 2240
[2025-01-15 15:50:17,657] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000003', 's3-eth2'), ('0000000000000004', 's4-eth1')]
[2025-01-15 15:50:17,657] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000004', 's4-eth1'), ('0000000000000003', 's3-eth2')]
[2025-01-15 15:50:17,657] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000005', 's5-eth1'), ('0000000000000004', 's4-eth2')]
[2025-01-15 15:50:17,657] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000005', 's5-eth2'), ('0000000000000001', 's1-eth2')]
[2025-01-15 15:50:17,657] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000002', 's2-eth2'), ('0000000000000003', 's3-eth1')]
[2025-01-15 15:50:17,657] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000002', 's2-eth1'), ('0000000000000001', 's1-eth1')]
[2025-01-15 15:50:17,657] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000001', 's1-eth1'), ('0000000000000002', 's2-eth1')]
[2025-01-15 15:50:17,657] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000003', 's3-eth1'), ('0000000000000002', 's2-eth2')]
[2025-01-15 15:50:17,657] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000001', 's1-eth2'), ('0000000000000005', 's5-eth2')]
[2025-01-15 15:50:17,657] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000004', 's4-eth2'), ('0000000000000005', 's5-eth1')]
[2025-01-15 15:50:17,657] DEBUG:device.service.drivers.OpenFlow.TfsApiClient:[get_devices_endpoints] topology; returning
[2025-01-15 15:50:17,658] DEBUG:device.service.Tools:results_getconfig = [('/devices/device[0000000000000001]', {'uuid': '0000000000000001', 'name': '0000000000000001', 'type': 'packet-switch', 'status': 2, 'drivers': 'DEVICEDRIVER_RYU'}), ('/devices/device[0000000000000001]', {'uuid': '0000000000000001', 'name': '0000000000000001', 'type': 'packet-switch', 'status': 2, 'drivers': 'DEVICEDRIVER_RYU'}), ('/devices/device[0000000000000004]', {'uuid': '0000000000000004', 'name': '0000000000000004', 'type': 'packet-switch', 'status': 2, 'drivers': 'DEVICEDRIVER_RYU'}), ('/devices/device[0000000000000004]', {'uuid': '0000000000000004', 'name': '0000000000000004', 'type': 'packet-switch', 'status': 2, 'drivers': 'DEVICEDRIVER_RYU'}), ('/devices/device[0000000000000003]', {'uuid': '0000000000000003', 'name': '0000000000000003', 'type': 'packet-switch', 'status': 2, 'drivers': 'DEVICEDRIVER_RYU'}), ('/devices/device[0000000000000003]', {'uuid': '0000000000000003', 'name': '0000000000000003', 'type': 'packet-switch', 'status': 2, 'drivers': 'DEVICEDRIVER_RYU'}), ('/devices/device[0000000000000002]', {'uuid': '0000000000000002', 'name': '0000000000000002', 'type': 'packet-switch', 'status': 2, 'drivers': 'DEVICEDRIVER_RYU'}), ('/devices/device[0000000000000002]', {'uuid': '0000000000000002', 'name': '0000000000000002', 'type': 'packet-switch', 'status': 2, 'drivers': 'DEVICEDRIVER_RYU'}), ('/devices/device[0000000000000002]', {'uuid': '0000000000000002', 'name': '0000000000000002', 'type': 'packet-switch', 'status': 2, 'drivers': 'DEVICEDRIVER_RYU'}), ('/devices/device[0000000000000002]', {'uuid': '0000000000000002', 'name': '0000000000000002', 'type': 'packet-switch', 'status': 2, 'drivers': 'DEVICEDRIVER_RYU'}), ('/devices/device[0000000000000005]', {'uuid': '0000000000000005', 'name': '0000000000000005', 'type': 'packet-switch', 'status': 2, 'drivers': 'DEVICEDRIVER_RYU'}), ('/devices/device[0000000000000005]', {'uuid': '0000000000000005', 'name': '0000000000000005', 'type': 'packet-switch', 'status': 2, 'drivers': 'DEVICEDRIVER_RYU'}), ('/devices/device[0000000000000005]', {'uuid': '0000000000000005', 'name': '0000000000000005', 'type': 'packet-switch', 'status': 2, 'drivers': 'DEVICEDRIVER_RYU'}), ('/devices/device[0000000000000005]', {'uuid': '0000000000000005', 'name': '0000000000000005', 'type': 'packet-switch', 'status': 2, 'drivers': 'DEVICEDRIVER_RYU'}), ('/endpoints/endpoint[s1-eth1]', {'device_uuid': '0000000000000001', 'uuid': 's1-eth1', 'name': 's1-eth1', 'type': 'copper'}), ('/endpoints/endpoint[s1-eth2]', {'device_uuid': '0000000000000001', 'uuid': 's1-eth2', 'name': 's1-eth2', 'type': 'copper'}), ('/endpoints/endpoint[s4-eth1]', {'device_uuid': '0000000000000004', 'uuid': 's4-eth1', 'name': 's4-eth1', 'type': 'copper'}), ('/endpoints/endpoint[s4-eth2]', {'device_uuid': '0000000000000004', 'uuid': 's4-eth2', 'name': 's4-eth2', 'type': 'copper'}), ('/endpoints/endpoint[s3-eth1]', {'device_uuid': '0000000000000003', 'uuid': 's3-eth1', 'name': 's3-eth1', 'type': 'copper'}), ('/endpoints/endpoint[s3-eth2]', {'device_uuid': '0000000000000003', 'uuid': 's3-eth2', 'name': 's3-eth2', 'type': 'copper'}), ('/endpoints/endpoint[s2-eth1]', {'device_uuid': '0000000000000002', 'uuid': 's2-eth1', 'name': 's2-eth1', 'type': 'copper'}), ('/endpoints/endpoint[s2-eth4]', {'device_uuid': '0000000000000002', 'uuid': 's2-eth4', 'name': 's2-eth4', 'type': 'copper'}), ('/endpoints/endpoint[s2-eth2]', {'device_uuid': '0000000000000002', 'uuid': 's2-eth2', 'name': 's2-eth2', 'type': 'copper'}), ('/endpoints/endpoint[s2-eth3]', {'device_uuid': '0000000000000002', 'uuid': 's2-eth3', 'name': 's2-eth3', 'type': 'copper'}), ('/endpoints/endpoint[s5-eth4]', {'device_uuid': '0000000000000005', 'uuid': 's5-eth4', 'name': 's5-eth4', 'type': 'copper'}), ('/endpoints/endpoint[s5-eth1]', {'device_uuid': '0000000000000005', 'uuid': 's5-eth1', 'name': 's5-eth1', 'type': 'copper'}), ('/endpoints/endpoint[s5-eth2]', {'device_uuid': '0000000000000005', 'uuid': 's5-eth2', 'name': 's5-eth2', 'type': 'copper'}), ('/endpoints/endpoint[s5-eth3]', {'device_uuid': '0000000000000005', 'uuid': 's5-eth3', 'name': 's5-eth3', 'type': 'copper'}), ('/links/link[s3-eth2==s4-eth1]', {'uuid': 's3-eth2==s4-eth1', 'name': '0000000000000003-s3-eth2===0000000000000004-s4-eth1', 'endpoints': [('0000000000000003', 's3-eth2'), ('0000000000000004', 's4-eth1')]}), ('/links/link[s4-eth1==s3-eth2]', {'uuid': 's4-eth1==s3-eth2', 'name': '0000000000000004-s4-eth1===0000000000000003-s3-eth2', 'endpoints': [('0000000000000004', 's4-eth1'), ('0000000000000003', 's3-eth2')]}), ('/links/link[s5-eth1==s4-eth2]', {'uuid': 's5-eth1==s4-eth2', 'name': '0000000000000005-s5-eth1===0000000000000004-s4-eth2', 'endpoints': [('0000000000000005', 's5-eth1'), ('0000000000000004', 's4-eth2')]}), ('/links/link[s5-eth2==s1-eth2]', {'uuid': 's5-eth2==s1-eth2', 'name': '0000000000000005-s5-eth2===0000000000000001-s1-eth2', 'endpoints': [('0000000000000005', 's5-eth2'), ('0000000000000001', 's1-eth2')]}), ('/links/link[s2-eth2==s3-eth1]', {'uuid': 's2-eth2==s3-eth1', 'name': '0000000000000002-s2-eth2===0000000000000003-s3-eth1', 'endpoints': [('0000000000000002', 's2-eth2'), ('0000000000000003', 's3-eth1')]}), ('/links/link[s2-eth1==s1-eth1]', {'uuid': 's2-eth1==s1-eth1', 'name': '0000000000000002-s2-eth1===0000000000000001-s1-eth1', 'endpoints': [('0000000000000002', 's2-eth1'), ('0000000000000001', 's1-eth1')]}), ('/links/link[s1-eth1==s2-eth1]', {'uuid': 's1-eth1==s2-eth1', 'name': '0000000000000001-s1-eth1===0000000000000002-s2-eth1', 'endpoints': [('0000000000000001', 's1-eth1'), ('0000000000000002', 's2-eth1')]}), ('/links/link[s3-eth1==s2-eth2]', {'uuid': 's3-eth1==s2-eth2', 'name': '0000000000000003-s3-eth1===0000000000000002-s2-eth2', 'endpoints': [('0000000000000003', 's3-eth1'), ('0000000000000002', 's2-eth2')]}), ('/links/link[s1-eth2==s5-eth2]', {'uuid': 's1-eth2==s5-eth2', 'name': '0000000000000001-s1-eth2===0000000000000005-s5-eth2', 'endpoints': [('0000000000000001', 's1-eth2'), ('0000000000000005', 's5-eth2')]}), ('/links/link[s4-eth2==s5-eth1]', {'uuid': 's4-eth2==s5-eth1', 'name': '0000000000000004-s4-eth2===0000000000000005-s5-eth1', 'endpoints': [('0000000000000004', 's4-eth2'), ('0000000000000005', 's5-eth1')]})]
[2025-01-15 15:50:17,660] INFO:device.service.drivers.OpenFlow.OpenFlowDriver:resource_key:['__endpoints__']
[2025-01-15 15:50:17,660] INFO:device.service.drivers.OpenFlow.OpenFlowDriver:resource_key:__endpoints__
[2025-01-15 15:50:17,660] DEBUG:device.service.drivers.OpenFlow.TfsApiClient:[get_devices_endpoints] begin
[2025-01-15 15:50:17,661] DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 10.1.7.197:8080
[2025-01-15 15:50:17,663] DEBUG:urllib3.connectionpool:http://10.1.7.197:8080 "GET /v1.0/topology/switches HTTP/1.1" 200 1661
[2025-01-15 15:50:17,664] INFO:device.service.drivers.OpenFlow.TfsApiClient:[get_devices_endpoints] json_reply_switches=[{"dpid": "0000000000000001", "ports": [{"dpid": "0000000000000001", "port_no": "00000001", "hw_addr": "82:52:b9:9f:7d:b6", "name": "s1-eth1"}, {"dpid": "0000000000000001", "port_no": "00000002", "hw_addr": "be:1c:08:bc:fb:fa", "name": "s1-eth2"}]}, {"dpid": "0000000000000004", "ports": [{"dpid": "0000000000000004", "port_no": "00000001", "hw_addr": "52:32:f8:50:c5:77", "name": "s4-eth1"}, {"dpid": "0000000000000004", "port_no": "00000002", "hw_addr": "8a:bb:c9:b2:79:ba", "name": "s4-eth2"}]}, {"dpid": "0000000000000003", "ports": [{"dpid": "0000000000000003", "port_no": "00000001", "hw_addr": "46:0e:0d:04:58:28", "name": "s3-eth1"}, {"dpid": "0000000000000003", "port_no": "00000002", "hw_addr": "02:bb:8c:18:e0:24", "name": "s3-eth2"}]}, {"dpid": "0000000000000002", "ports": [{"dpid": "0000000000000002", "port_no": "00000001", "hw_addr": "6e:b4:7e:ea:22:2a", "name": "s2-eth1"}, {"dpid": "0000000000000002", "port_no": "00000004", "hw_addr": "ea:43:e4:a5:2c:7f", "name": "s2-eth4"}, {"dpid": "0000000000000002", "port_no": "00000002", "hw_addr": "da:d2:dd:5f:e0:9e", "name": "s2-eth2"}, {"dpid": "0000000000000002", "port_no": "00000003", "hw_addr": "d6:9e:c2:9f:2b:e2", "name": "s2-eth3"}]}, {"dpid": "0000000000000005", "ports": [{"dpid": "0000000000000005", "port_no": "00000004", "hw_addr": "b2:3b:fa:f9:89:91", "name": "s5-eth4"}, {"dpid": "0000000000000005", "port_no": "00000001", "hw_addr": "66:be:8c:28:47:67", "name": "s5-eth1"}, {"dpid": "0000000000000005", "port_no": "00000002", "hw_addr": "62:86:c3:2e:09:c0", "name": "s5-eth2"}, {"dpid": "0000000000000005", "port_no": "00000003", "hw_addr": "0e:b5:83:92:2d:2e", "name": "s5-eth3"}]}]
[2025-01-15 15:50:17,666] DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 10.1.7.197:8080
[2025-01-15 15:50:17,667] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "2a79cf95-9c1c-5588-83be-9533d4100b51"}}
[2025-01-15 15:50:17,667] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "2a79cf95-9c1c-5588-83be-9533d4100b51"}}]}, "include_components": false, "include_config_rules": false, "include_endpoints": true}
[2025-01-15 15:50:17,668] DEBUG:urllib3.connectionpool:http://10.1.7.197:8080 "GET /v1.0/topology/links HTTP/1.1" 200 2240
[2025-01-15 15:50:17,669] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000003', 's3-eth2'), ('0000000000000004', 's4-eth1')]
[2025-01-15 15:50:17,669] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000004', 's4-eth1'), ('0000000000000003', 's3-eth2')]
[2025-01-15 15:50:17,669] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000005', 's5-eth1'), ('0000000000000004', 's4-eth2')]
[2025-01-15 15:50:17,669] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000005', 's5-eth2'), ('0000000000000001', 's1-eth2')]
[2025-01-15 15:50:17,669] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000002', 's2-eth2'), ('0000000000000003', 's3-eth1')]
[2025-01-15 15:50:17,669] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000002', 's2-eth1'), ('0000000000000001', 's1-eth1')]
[2025-01-15 15:50:17,669] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000001', 's1-eth1'), ('0000000000000002', 's2-eth1')]
[2025-01-15 15:50:17,669] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000003', 's3-eth1'), ('0000000000000002', 's2-eth2')]
[2025-01-15 15:50:17,669] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000001', 's1-eth2'), ('0000000000000005', 's5-eth2')]
[2025-01-15 15:50:17,670] INFO:device.service.drivers.OpenFlow.TfsApiClient:link_endpoint_ids are [('0000000000000004', 's4-eth2'), ('0000000000000005', 's5-eth1')]
[2025-01-15 15:50:17,670] DEBUG:device.service.drivers.OpenFlow.TfsApiClient:[get_devices_endpoints] topology; returning
[2025-01-15 15:50:17,675] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.1.7.197"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "8080"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"timeout\": 120\n}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000001]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000001\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000001\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000004]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000004\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000004\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000003]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000003\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000003\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000002]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000002\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000002\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000005]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000005\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000005\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth1\", \"type\": \"copper\", \"uuid\": \"s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth2\", \"type\": \"copper\", \"uuid\": \"s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth1\", \"type\": \"copper\", \"uuid\": \"s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth2\", \"type\": \"copper\", \"uuid\": \"s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth1\", \"type\": \"copper\", \"uuid\": \"s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth2\", \"type\": \"copper\", \"uuid\": \"s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth1\", \"type\": \"copper\", \"uuid\": \"s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth4\", \"type\": \"copper\", \"uuid\": \"s2-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth2\", \"type\": \"copper\", \"uuid\": \"s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth3\", \"type\": \"copper\", \"uuid\": \"s2-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth4\", \"type\": \"copper\", \"uuid\": \"s5-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth1\", \"type\": \"copper\", \"uuid\": \"s5-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth2\", \"type\": \"copper\", \"uuid\": \"s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth3\", \"type\": \"copper\", \"uuid\": \"s5-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth2==s4-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth2\"], [\"0000000000000004\", \"s4-eth1\"]], \"name\": \"0000000000000003-s3-eth2===0000000000000004-s4-eth1\", \"uuid\": \"s3-eth2==s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth1==s3-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth1\"], [\"0000000000000003\", \"s3-eth2\"]], \"name\": \"0000000000000004-s4-eth1===0000000000000003-s3-eth2\", \"uuid\": \"s4-eth1==s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth1==s4-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth1\"], [\"0000000000000004\", \"s4-eth2\"]], \"name\": \"0000000000000005-s5-eth1===0000000000000004-s4-eth2\", \"uuid\": \"s5-eth1==s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth2==s1-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth2\"], [\"0000000000000001\", \"s1-eth2\"]], \"name\": \"0000000000000005-s5-eth2===0000000000000001-s1-eth2\", \"uuid\": \"s5-eth2==s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth2==s3-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth2\"], [\"0000000000000003\", \"s3-eth1\"]], \"name\": \"0000000000000002-s2-eth2===0000000000000003-s3-eth1\", \"uuid\": \"s2-eth2==s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth1==s1-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth1\"], [\"0000000000000001\", \"s1-eth1\"]], \"name\": \"0000000000000002-s2-eth1===0000000000000001-s1-eth1\", \"uuid\": \"s2-eth1==s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth1==s2-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth1\"], [\"0000000000000002\", \"s2-eth1\"]], \"name\": \"0000000000000001-s1-eth1===0000000000000002-s2-eth1\", \"uuid\": \"s1-eth1==s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth1==s2-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth1\"], [\"0000000000000002\", \"s2-eth2\"]], \"name\": \"0000000000000003-s3-eth1===0000000000000002-s2-eth2\", \"uuid\": \"s3-eth1==s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth2==s5-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth2\"], [\"0000000000000005\", \"s5-eth2\"]], \"name\": \"0000000000000001-s1-eth2===0000000000000005-s5-eth2\", \"uuid\": \"s1-eth2==s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth2==s5-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth2\"], [\"0000000000000005\", \"s5-eth1\"]], \"name\": \"0000000000000004-s4-eth2===0000000000000005-s5-eth1\", \"uuid\": \"s4-eth2==s5-eth1\"}"}}]}, "device_drivers": ["DEVICEDRIVER_RYU"], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "mgmt", "kpi_sample_types": [], "name": "mgmt"}], "device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "openflow-ryu-controller", "name": "RYU"}
[2025-01-15 15:50:17,676] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": [{"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h4-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "c929235b-c0bd-5016-9e63-e7eaafaaa792"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "emu-client", "name": "h4"}]}
[2025-01-15 15:50:17,676] INFO:device.service.driver_api.DriverInstanceCache:Selecting driver for device(c929235b-c0bd-5016-9e63-e7eaafaaa792) with filter_fields({'device_type': 'emu-client', 'driver': [0]})...
[2025-01-15 15:50:17,676] INFO:device.service.driver_api.DriverInstanceCache:Driver(EmulatedDriver) selected for device(c929235b-c0bd-5016-9e63-e7eaafaaa792) with filter_fields({'device_type': 'emu-client', 'driver': [0]})...
[2025-01-15 15:50:17,678] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": [{"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h2-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "53ad149d-c690-52ea-aba9-66a7fd5dbd85"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "emu-client", "name": "h2"}]}
[2025-01-15 15:50:17,678] INFO:device.service.driver_api.DriverInstanceCache:Selecting driver for device(53ad149d-c690-52ea-aba9-66a7fd5dbd85) with filter_fields({'device_type': 'emu-client', 'driver': [0]})...
[2025-01-15 15:50:17,678] INFO:device.service.driver_api.DriverInstanceCache:Driver(EmulatedDriver) selected for device(53ad149d-c690-52ea-aba9-66a7fd5dbd85) with filter_fields({'device_type': 'emu-client', 'driver': [0]})...
[2025-01-15 15:50:17,679] DEBUG:device.service.Tools:results_getconfig = [('/endpoints/endpoint[h4-eth0]', {'uuid': 'h4-eth0', 'type': 'copper/internal'}), ('/endpoints/endpoint[int]', {'uuid': 'int', 'type': 'copper/internal'})]
[2025-01-15 15:50:17,680] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h4-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[h4-eth0]", "resource_value": "{\"type\": \"copper/internal\", \"uuid\": \"h4-eth0\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[int]", "resource_value": "{\"type\": \"copper/internal\", \"uuid\": \"int\"}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "c929235b-c0bd-5016-9e63-e7eaafaaa792"}}, "endpoint_uuid": {"uuid": "h4-eth0"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": ""}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "c929235b-c0bd-5016-9e63-e7eaafaaa792"}}, "endpoint_uuid": {"uuid": "int"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": ""}], "device_id": {"device_uuid": {"uuid": "c929235b-c0bd-5016-9e63-e7eaafaaa792"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "emu-client", "name": "h4"}
[2025-01-15 15:50:17,681] DEBUG:device.service.Tools:results_getconfig = [('/endpoints/endpoint[h2-eth0]', {'uuid': 'h2-eth0', 'type': 'copper/internal'}), ('/endpoints/endpoint[int]', {'uuid': 'int', 'type': 'copper/internal'})]
[2025-01-15 15:50:17,681] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"endpoints\": [\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"h2-eth0\"\n},\n{\n\"type\": \"copper/internal\",\n\"uuid\": \"int\"\n}\n]\n}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[h2-eth0]", "resource_value": "{\"type\": \"copper/internal\", \"uuid\": \"h2-eth0\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[int]", "resource_value": "{\"type\": \"copper/internal\", \"uuid\": \"int\"}"}}]}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "53ad149d-c690-52ea-aba9-66a7fd5dbd85"}}, "endpoint_uuid": {"uuid": "h2-eth0"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": ""}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "53ad149d-c690-52ea-aba9-66a7fd5dbd85"}}, "endpoint_uuid": {"uuid": "int"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": ""}], "device_id": {"device_uuid": {"uuid": "53ad149d-c690-52ea-aba9-66a7fd5dbd85"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "emu-client", "name": "h2"}
[2025-01-15 15:50:17,690] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": [{"components": [], "controller_id": {}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "43be2984-467b-56da-a3e6-cfb6f1e8d978"}}, "endpoint_uuid": {"uuid": "894f1db9-682b-534b-9e3e-1086e5435058"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}}, "endpoint_location": {}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": "h3-eth0"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "43be2984-467b-56da-a3e6-cfb6f1e8d978"}}, "endpoint_uuid": {"uuid": "b8fe51a0-91f7-5203-b571-87ef53e2ca2d"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}}, "endpoint_location": {}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": "int"}], "device_id": {"device_uuid": {"uuid": "43be2984-467b-56da-a3e6-cfb6f1e8d978"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "emu-client", "name": "h3"}]}
[2025-01-15 15:50:17,694] DEBUG:device.service.DeviceServiceServicerImpl:AddDevice reply: {"device_uuid": {"uuid": "43be2984-467b-56da-a3e6-cfb6f1e8d978"}}
[2025-01-15 15:50:17,725] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": [{"components": [], "controller_id": {}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "2a79cf95-9c1c-5588-83be-9533d4100b51"}}, "endpoint_uuid": {"uuid": "1b3b2793-64b2-57e3-88bb-8ce89c413e16"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}}, "endpoint_location": {}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": "int"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "2a79cf95-9c1c-5588-83be-9533d4100b51"}}, "endpoint_uuid": {"uuid": "c9788b13-30ad-581c-a04d-7191d4e7cbd1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}}, "endpoint_location": {}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": "h1-eth0"}], "device_id": {"device_uuid": {"uuid": "2a79cf95-9c1c-5588-83be-9533d4100b51"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "emu-client", "name": "h1"}]}
[2025-01-15 15:50:17,726] DEBUG:device.service.DeviceServiceServicerImpl:AddDevice reply: {"device_uuid": {"uuid": "2a79cf95-9c1c-5588-83be-9533d4100b51"}}
[2025-01-15 15:50:17,740] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}
[2025-01-15 15:50:17,741] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "controller_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_drivers": [], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000001"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "mgmt", "kpi_sample_types": [], "name": "mgmt"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000001"}}, "endpoint_uuid": {"uuid": "s1-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper", "kpi_sample_types": [], "name": "s1-eth1"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000001"}}, "endpoint_uuid": {"uuid": "s1-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper", "kpi_sample_types": [], "name": "s1-eth2"}], "device_id": {"device_uuid": {"uuid": "0000000000000001"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "packet-switch", "name": "0000000000000001"}
[2025-01-15 15:50:17,742] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "c929235b-c0bd-5016-9e63-e7eaafaaa792"}}
[2025-01-15 15:50:17,742] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "c929235b-c0bd-5016-9e63-e7eaafaaa792"}}]}, "include_components": false, "include_config_rules": false, "include_endpoints": true}
[2025-01-15 15:50:17,758] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "53ad149d-c690-52ea-aba9-66a7fd5dbd85"}}
[2025-01-15 15:50:17,758] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "53ad149d-c690-52ea-aba9-66a7fd5dbd85"}}]}, "include_components": false, "include_config_rules": false, "include_endpoints": true}
[2025-01-15 15:50:17,780] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": [{"components": [], "controller_id": {}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "c929235b-c0bd-5016-9e63-e7eaafaaa792"}}, "endpoint_uuid": {"uuid": "0d195f1f-6876-5fbd-bb6e-58b0e645ca1f"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}}, "endpoint_location": {}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": "int"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "c929235b-c0bd-5016-9e63-e7eaafaaa792"}}, "endpoint_uuid": {"uuid": "a2efb85b-c007-5419-ad52-3a5729f0da71"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}}, "endpoint_location": {}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": "h4-eth0"}], "device_id": {"device_uuid": {"uuid": "c929235b-c0bd-5016-9e63-e7eaafaaa792"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "emu-client", "name": "h4"}]}
[2025-01-15 15:50:17,780] DEBUG:device.service.DeviceServiceServicerImpl:AddDevice reply: {"device_uuid": {"uuid": "c929235b-c0bd-5016-9e63-e7eaafaaa792"}}
[2025-01-15 15:50:17,782] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "995a62fc-2b2f-5d35-a0bb-c5a7dd22e892"}}
[2025-01-15 15:50:17,782] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "controller_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_drivers": [], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000004"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "mgmt", "kpi_sample_types": [], "name": "mgmt"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000004"}}, "endpoint_uuid": {"uuid": "s4-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper", "kpi_sample_types": [], "name": "s4-eth1"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000004"}}, "endpoint_uuid": {"uuid": "s4-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper", "kpi_sample_types": [], "name": "s4-eth2"}], "device_id": {"device_uuid": {"uuid": "0000000000000004"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "packet-switch", "name": "0000000000000004"}
[2025-01-15 15:50:17,791] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": [{"components": [], "controller_id": {}, "device_drivers": ["DEVICEDRIVER_UNDEFINED"], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "53ad149d-c690-52ea-aba9-66a7fd5dbd85"}}, "endpoint_uuid": {"uuid": "20cb95be-f52f-5615-a349-18b893d59c9d"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}}, "endpoint_location": {}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": "int"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "53ad149d-c690-52ea-aba9-66a7fd5dbd85"}}, "endpoint_uuid": {"uuid": "ad8b1d58-1a1e-56db-9b29-3cc111845804"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}}, "endpoint_location": {}, "endpoint_type": "copper/internal", "kpi_sample_types": [], "name": "h2-eth0"}], "device_id": {"device_uuid": {"uuid": "53ad149d-c690-52ea-aba9-66a7fd5dbd85"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "emu-client", "name": "h2"}]}
[2025-01-15 15:50:17,792] DEBUG:device.service.DeviceServiceServicerImpl:AddDevice reply: {"device_uuid": {"uuid": "53ad149d-c690-52ea-aba9-66a7fd5dbd85"}}
[2025-01-15 15:50:17,808] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "c38fb93c-9578-5d7f-a081-a2db4b5f468c"}}
[2025-01-15 15:50:17,809] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "controller_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_drivers": [], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000003"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "mgmt", "kpi_sample_types": [], "name": "mgmt"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000003"}}, "endpoint_uuid": {"uuid": "s3-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper", "kpi_sample_types": [], "name": "s3-eth1"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000003"}}, "endpoint_uuid": {"uuid": "s3-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper", "kpi_sample_types": [], "name": "s3-eth2"}], "device_id": {"device_uuid": {"uuid": "0000000000000003"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "packet-switch", "name": "0000000000000003"}
[2025-01-15 15:50:17,833] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "0bdaca38-0541-5d36-b58b-f828943dc213"}}
[2025-01-15 15:50:17,833] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "controller_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_drivers": [], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000002"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "mgmt", "kpi_sample_types": [], "name": "mgmt"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000002"}}, "endpoint_uuid": {"uuid": "s2-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper", "kpi_sample_types": [], "name": "s2-eth1"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000002"}}, "endpoint_uuid": {"uuid": "s2-eth4"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper", "kpi_sample_types": [], "name": "s2-eth4"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000002"}}, "endpoint_uuid": {"uuid": "s2-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper", "kpi_sample_types": [], "name": "s2-eth2"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000002"}}, "endpoint_uuid": {"uuid": "s2-eth3"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper", "kpi_sample_types": [], "name": "s2-eth3"}], "device_id": {"device_uuid": {"uuid": "0000000000000002"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "packet-switch", "name": "0000000000000002"}
[2025-01-15 15:50:17,862] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "a2f2519b-3c76-5f1e-99c7-cc2bbf815eec"}}
[2025-01-15 15:50:17,862] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "controller_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_drivers": [], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000005"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "mgmt", "kpi_sample_types": [], "name": "mgmt"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000005"}}, "endpoint_uuid": {"uuid": "s5-eth4"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper", "kpi_sample_types": [], "name": "s5-eth4"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000005"}}, "endpoint_uuid": {"uuid": "s5-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper", "kpi_sample_types": [], "name": "s5-eth1"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000005"}}, "endpoint_uuid": {"uuid": "s5-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper", "kpi_sample_types": [], "name": "s5-eth2"}, {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "0000000000000005"}}, "endpoint_uuid": {"uuid": "s5-eth3"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, "endpoint_type": "copper", "kpi_sample_types": [], "name": "s5-eth3"}], "device_id": {"device_uuid": {"uuid": "0000000000000005"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "packet-switch", "name": "0000000000000005"}
[2025-01-15 15:50:17,888] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "b52aaf41-0c5a-55f2-a66e-eb42c1153a96"}}
[2025-01-15 15:50:17,888] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000001"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "RYU/mgmt==0000000000000001/mgmt"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "RYU/mgmt==0000000000000001/mgmt"}
[2025-01-15 15:50:17,929] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "a6ad0bf0-955e-5a3e-be3f-b161562ee922"}}
[2025-01-15 15:50:17,929] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000004"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "RYU/mgmt==0000000000000004/mgmt"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "RYU/mgmt==0000000000000004/mgmt"}
[2025-01-15 15:50:17,946] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "f732a34b-3b58-5208-972d-ead200e217a2"}}
[2025-01-15 15:50:17,947] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000003"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "RYU/mgmt==0000000000000003/mgmt"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "RYU/mgmt==0000000000000003/mgmt"}
[2025-01-15 15:50:17,964] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "9c27e1ef-2de9-5d4a-a39b-d986bc46e6ff"}}
[2025-01-15 15:50:17,964] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000002"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "RYU/mgmt==0000000000000002/mgmt"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "RYU/mgmt==0000000000000002/mgmt"}
[2025-01-15 15:50:17,982] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "23163f66-d373-53c7-87b9-a19332d499f9"}}
[2025-01-15 15:50:17,983] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000005"}}, "endpoint_uuid": {"uuid": "mgmt"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "RYU/mgmt==0000000000000005/mgmt"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "RYU/mgmt==0000000000000005/mgmt"}
[2025-01-15 15:50:17,999] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "035237df-d927-5831-9ca0-3e817f20b775"}}
[2025-01-15 15:50:17,999] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "0000000000000003"}}, "endpoint_uuid": {"uuid": "s3-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000004"}}, "endpoint_uuid": {"uuid": "s4-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "s3-eth2==s4-eth1"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "0000000000000003-s3-eth2===0000000000000004-s4-eth1"}
[2025-01-15 15:50:18,014] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "beee85c4-62a0-5b24-87c0-dff4090b8b0f"}}
[2025-01-15 15:50:18,015] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "0000000000000004"}}, "endpoint_uuid": {"uuid": "s4-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000003"}}, "endpoint_uuid": {"uuid": "s3-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "s4-eth1==s3-eth2"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "0000000000000004-s4-eth1===0000000000000003-s3-eth2"}
[2025-01-15 15:50:18,054] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "19aa0a16-b510-5efe-9c3d-8c4605319a74"}}
[2025-01-15 15:50:18,054] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "0000000000000005"}}, "endpoint_uuid": {"uuid": "s5-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000004"}}, "endpoint_uuid": {"uuid": "s4-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "s5-eth1==s4-eth2"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "0000000000000005-s5-eth1===0000000000000004-s4-eth2"}
[2025-01-15 15:50:18,070] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "327c4898-85a4-5f42-912d-2c60c04fa650"}}
[2025-01-15 15:50:18,071] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "0000000000000005"}}, "endpoint_uuid": {"uuid": "s5-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000001"}}, "endpoint_uuid": {"uuid": "s1-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "s5-eth2==s1-eth2"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "0000000000000005-s5-eth2===0000000000000001-s1-eth2"}
[2025-01-15 15:50:18,086] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "646fad23-eeee-5261-aa56-dcb6bd69ef9d"}}
[2025-01-15 15:50:18,087] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "0000000000000002"}}, "endpoint_uuid": {"uuid": "s2-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000003"}}, "endpoint_uuid": {"uuid": "s3-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "s2-eth2==s3-eth1"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "0000000000000002-s2-eth2===0000000000000003-s3-eth1"}
[2025-01-15 15:50:18,102] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "b28d7bf0-19d3-5b94-b8c2-88f6dca8cd25"}}
[2025-01-15 15:50:18,103] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "0000000000000002"}}, "endpoint_uuid": {"uuid": "s2-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000001"}}, "endpoint_uuid": {"uuid": "s1-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "s2-eth1==s1-eth1"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "0000000000000002-s2-eth1===0000000000000001-s1-eth1"}
[2025-01-15 15:50:18,118] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "3dcd7c7c-fd54-5599-b0cc-235806ee5b6f"}}
[2025-01-15 15:50:18,119] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "0000000000000001"}}, "endpoint_uuid": {"uuid": "s1-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000002"}}, "endpoint_uuid": {"uuid": "s2-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "s1-eth1==s2-eth1"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "0000000000000001-s1-eth1===0000000000000002-s2-eth1"}
[2025-01-15 15:50:18,136] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "d0890789-62ad-5f5f-815b-786c1976c567"}}
[2025-01-15 15:50:18,136] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "0000000000000003"}}, "endpoint_uuid": {"uuid": "s3-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000002"}}, "endpoint_uuid": {"uuid": "s2-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "s3-eth1==s2-eth2"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "0000000000000003-s3-eth1===0000000000000002-s2-eth2"}
[2025-01-15 15:50:18,153] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "509740ba-cd2c-59aa-8843-4cf8e278fc5d"}}
[2025-01-15 15:50:18,154] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "0000000000000001"}}, "endpoint_uuid": {"uuid": "s1-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000005"}}, "endpoint_uuid": {"uuid": "s5-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "s1-eth2==s5-eth2"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "0000000000000001-s1-eth2===0000000000000005-s5-eth2"}
[2025-01-15 15:50:18,169] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "0f1c88d1-1b46-5e79-88a1-b0a5d2e28324"}}
[2025-01-15 15:50:18,170] DEBUG:context.client.ContextClient:SetLink request: {"link_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "0000000000000004"}}, "endpoint_uuid": {"uuid": "s4-eth2"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}, {"device_id": {"device_uuid": {"uuid": "0000000000000005"}}, "endpoint_uuid": {"uuid": "s5-eth1"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}], "link_id": {"link_uuid": {"uuid": "s4-eth2==s5-eth1"}}, "link_type": "LINKTYPE_UNKNOWN", "name": "0000000000000004-s4-eth2===0000000000000005-s5-eth1"}
[2025-01-15 15:50:18,186] DEBUG:context.client.ContextClient:SetLink result: {"link_uuid": {"uuid": "b7f8ba02-fe4c-5c3b-9346-740a69da5394"}}
[2025-01-15 15:50:18,187] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}]}, "include_components": false, "include_config_rules": false, "include_endpoints": true}
[2025-01-15 15:50:18,197] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": [{"components": [], "controller_id": {}, "device_drivers": ["DEVICEDRIVER_RYU"], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "endpoint_uuid": {"uuid": "158268b6-968b-582a-968d-da4b922ebc1c"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}}, "endpoint_location": {}, "endpoint_type": "mgmt", "kpi_sample_types": [], "name": "mgmt"}], "device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "openflow-ryu-controller", "name": "RYU"}]}
[2025-01-15 15:50:18,199] DEBUG:device.service.DeviceServiceServicerImpl:AddDevice reply: {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}
[2025-01-15 15:50:25,412] DEBUG:device.service.DeviceServiceServicerImpl:ConfigureDevice request: {"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.1.7.197"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "8080"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"timeout\": 120\n}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000001]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000001\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000001\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000004]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000004\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000004\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000003]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000003\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000003\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000002]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000002\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000002\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000005]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000005\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000005\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth1\", \"type\": \"copper\", \"uuid\": \"s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth2\", \"type\": \"copper\", \"uuid\": \"s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth1\", \"type\": \"copper\", \"uuid\": \"s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth2\", \"type\": \"copper\", \"uuid\": \"s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth1\", \"type\": \"copper\", \"uuid\": \"s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth2\", \"type\": \"copper\", \"uuid\": \"s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth1\", \"type\": \"copper\", \"uuid\": \"s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth4\", \"type\": \"copper\", \"uuid\": \"s2-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth2\", \"type\": \"copper\", \"uuid\": \"s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth3\", \"type\": \"copper\", \"uuid\": \"s2-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth4\", \"type\": \"copper\", \"uuid\": \"s5-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth1\", \"type\": \"copper\", \"uuid\": \"s5-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth2\", \"type\": \"copper\", \"uuid\": \"s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth3\", \"type\": \"copper\", \"uuid\": \"s5-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth2==s4-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth2\"], [\"0000000000000004\", \"s4-eth1\"]], \"name\": \"0000000000000003-s3-eth2===0000000000000004-s4-eth1\", \"uuid\": \"s3-eth2==s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth1==s3-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth1\"], [\"0000000000000003\", \"s3-eth2\"]], \"name\": \"0000000000000004-s4-eth1===0000000000000003-s3-eth2\", \"uuid\": \"s4-eth1==s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth1==s4-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth1\"], [\"0000000000000004\", \"s4-eth2\"]], \"name\": \"0000000000000005-s5-eth1===0000000000000004-s4-eth2\", \"uuid\": \"s5-eth1==s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth2==s1-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth2\"], [\"0000000000000001\", \"s1-eth2\"]], \"name\": \"0000000000000005-s5-eth2===0000000000000001-s1-eth2\", \"uuid\": \"s5-eth2==s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth2==s3-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth2\"], [\"0000000000000003\", \"s3-eth1\"]], \"name\": \"0000000000000002-s2-eth2===0000000000000003-s3-eth1\", \"uuid\": \"s2-eth2==s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth1==s1-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth1\"], [\"0000000000000001\", \"s1-eth1\"]], \"name\": \"0000000000000002-s2-eth1===0000000000000001-s1-eth1\", \"uuid\": \"s2-eth1==s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth1==s2-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth1\"], [\"0000000000000002\", \"s2-eth1\"]], \"name\": \"0000000000000001-s1-eth1===0000000000000002-s2-eth1\", \"uuid\": \"s1-eth1==s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth1==s2-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth1\"], [\"0000000000000002\", \"s2-eth2\"]], \"name\": \"0000000000000003-s3-eth1===0000000000000002-s2-eth2\", \"uuid\": \"s3-eth1==s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth2==s5-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth2\"], [\"0000000000000005\", \"s5-eth2\"]], \"name\": \"0000000000000001-s1-eth2===0000000000000005-s5-eth2\", \"uuid\": \"s1-eth2==s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth2==s5-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth2\"], [\"0000000000000005\", \"s5-eth1\"]], \"name\": \"0000000000000004-s4-eth2===0000000000000005-s5-eth1\", \"uuid\": \"s4-eth2==s5-eth1\"}"}}, {"action": "CONFIGACTION_UNDEFINED", "custom": {"resource_key": "/device[s2]/flow[h1-h3]", "resource_value": "{\"dpid\": \"0000000000000002\", \"in-port\": \"s2-eth3\", \"out-port\": \"s2-eth1\"}"}}, {"action": "CONFIGACTION_UNDEFINED", "custom": {"resource_key": "/device[s2]/flow[h3-h1]", "resource_value": "{\"dpid\": \"0000000000000002\", \"in-port\": \"s2-eth1\", \"out-port\": \"s2-eth3\"}"}}]}, "device_drivers": ["DEVICEDRIVER_RYU"], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "endpoint_uuid": {"uuid": "158268b6-968b-582a-968d-da4b922ebc1c"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}}, "endpoint_location": {}, "endpoint_type": "mgmt", "kpi_sample_types": [], "name": "mgmt"}], "device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "openflow-ryu-controller", "name": "RYU"}
[2025-01-15 15:50:25,412] DEBUG:context.client.ContextClient:Creating channel to 10.152.183.206:1010...
[2025-01-15 15:50:25,412] DEBUG:context.client.ContextClient:Channel created
[2025-01-15 15:50:25,413] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}]}, "include_components": false, "include_config_rules": true, "include_endpoints": false}
[2025-01-15 15:50:25,424] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": [{"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.1.7.197"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "8080"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"timeout\": 120\n}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000001]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000001\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000001\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000004]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000004\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000004\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000003]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000003\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000003\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000002]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000002\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000002\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000005]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000005\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000005\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth1\", \"type\": \"copper\", \"uuid\": \"s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth2\", \"type\": \"copper\", \"uuid\": \"s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth1\", \"type\": \"copper\", \"uuid\": \"s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth2\", \"type\": \"copper\", \"uuid\": \"s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth1\", \"type\": \"copper\", \"uuid\": \"s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth2\", \"type\": \"copper\", \"uuid\": \"s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth1\", \"type\": \"copper\", \"uuid\": \"s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth4\", \"type\": \"copper\", \"uuid\": \"s2-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth2\", \"type\": \"copper\", \"uuid\": \"s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth3\", \"type\": \"copper\", \"uuid\": \"s2-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth4\", \"type\": \"copper\", \"uuid\": \"s5-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth1\", \"type\": \"copper\", \"uuid\": \"s5-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth2\", \"type\": \"copper\", \"uuid\": \"s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth3\", \"type\": \"copper\", \"uuid\": \"s5-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth2==s4-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth2\"], [\"0000000000000004\", \"s4-eth1\"]], \"name\": \"0000000000000003-s3-eth2===0000000000000004-s4-eth1\", \"uuid\": \"s3-eth2==s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth1==s3-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth1\"], [\"0000000000000003\", \"s3-eth2\"]], \"name\": \"0000000000000004-s4-eth1===0000000000000003-s3-eth2\", \"uuid\": \"s4-eth1==s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth1==s4-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth1\"], [\"0000000000000004\", \"s4-eth2\"]], \"name\": \"0000000000000005-s5-eth1===0000000000000004-s4-eth2\", \"uuid\": \"s5-eth1==s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth2==s1-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth2\"], [\"0000000000000001\", \"s1-eth2\"]], \"name\": \"0000000000000005-s5-eth2===0000000000000001-s1-eth2\", \"uuid\": \"s5-eth2==s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth2==s3-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth2\"], [\"0000000000000003\", \"s3-eth1\"]], \"name\": \"0000000000000002-s2-eth2===0000000000000003-s3-eth1\", \"uuid\": \"s2-eth2==s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth1==s1-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth1\"], [\"0000000000000001\", \"s1-eth1\"]], \"name\": \"0000000000000002-s2-eth1===0000000000000001-s1-eth1\", \"uuid\": \"s2-eth1==s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth1==s2-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth1\"], [\"0000000000000002\", \"s2-eth1\"]], \"name\": \"0000000000000001-s1-eth1===0000000000000002-s2-eth1\", \"uuid\": \"s1-eth1==s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth1==s2-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth1\"], [\"0000000000000002\", \"s2-eth2\"]], \"name\": \"0000000000000003-s3-eth1===0000000000000002-s2-eth2\", \"uuid\": \"s3-eth1==s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth2==s5-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth2\"], [\"0000000000000005\", \"s5-eth2\"]], \"name\": \"0000000000000001-s1-eth2===0000000000000005-s5-eth2\", \"uuid\": \"s1-eth2==s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth2==s5-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth2\"], [\"0000000000000005\", \"s5-eth1\"]], \"name\": \"0000000000000004-s4-eth2===0000000000000005-s5-eth1\", \"uuid\": \"s4-eth2==s5-eth1\"}"}}]}, "device_drivers": ["DEVICEDRIVER_RYU"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "openflow-ryu-controller", "name": "RYU"}]}
[2025-01-15 15:50:25,425] INFO:device.service.drivers.OpenFlow.OpenFlowDriver:SetConfig_resources:[('_connect/address', '10.1.7.197'), ('_connect/port', '8080'), ('_connect/settings', '{\n"timeout": 120\n}'), ('/devices/device[0000000000000001]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000001", "status": 2, "type": "packet-switch", "uuid": "0000000000000001"}'), ('/devices/device[0000000000000004]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000004", "status": 2, "type": "packet-switch", "uuid": "0000000000000004"}'), ('/devices/device[0000000000000003]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000003", "status": 2, "type": "packet-switch", "uuid": "0000000000000003"}'), ('/devices/device[0000000000000002]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000002", "status": 2, "type": "packet-switch", "uuid": "0000000000000002"}'), ('/devices/device[0000000000000005]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000005", "status": 2, "type": "packet-switch", "uuid": "0000000000000005"}'), ('/endpoints/endpoint[s1-eth1]', '{"device_uuid": "0000000000000001", "name": "s1-eth1", "type": "copper", "uuid": "s1-eth1"}'), ('/endpoints/endpoint[s1-eth2]', '{"device_uuid": "0000000000000001", "name": "s1-eth2", "type": "copper", "uuid": "s1-eth2"}'), ('/endpoints/endpoint[s4-eth1]', '{"device_uuid": "0000000000000004", "name": "s4-eth1", "type": "copper", "uuid": "s4-eth1"}'), ('/endpoints/endpoint[s4-eth2]', '{"device_uuid": "0000000000000004", "name": "s4-eth2", "type": "copper", "uuid": "s4-eth2"}'), ('/endpoints/endpoint[s3-eth1]', '{"device_uuid": "0000000000000003", "name": "s3-eth1", "type": "copper", "uuid": "s3-eth1"}'), ('/endpoints/endpoint[s3-eth2]', '{"device_uuid": "0000000000000003", "name": "s3-eth2", "type": "copper", "uuid": "s3-eth2"}'), ('/endpoints/endpoint[s2-eth1]', '{"device_uuid": "0000000000000002", "name": "s2-eth1", "type": "copper", "uuid": "s2-eth1"}'), ('/endpoints/endpoint[s2-eth4]', '{"device_uuid": "0000000000000002", "name": "s2-eth4", "type": "copper", "uuid": "s2-eth4"}'), ('/endpoints/endpoint[s2-eth2]', '{"device_uuid": "0000000000000002", "name": "s2-eth2", "type": "copper", "uuid": "s2-eth2"}'), ('/endpoints/endpoint[s2-eth3]', '{"device_uuid": "0000000000000002", "name": "s2-eth3", "type": "copper", "uuid": "s2-eth3"}'), ('/endpoints/endpoint[s5-eth4]', '{"device_uuid": "0000000000000005", "name": "s5-eth4", "type": "copper", "uuid": "s5-eth4"}'), ('/endpoints/endpoint[s5-eth1]', '{"device_uuid": "0000000000000005", "name": "s5-eth1", "type": "copper", "uuid": "s5-eth1"}'), ('/endpoints/endpoint[s5-eth2]', '{"device_uuid": "0000000000000005", "name": "s5-eth2", "type": "copper", "uuid": "s5-eth2"}'), ('/endpoints/endpoint[s5-eth3]', '{"device_uuid": "0000000000000005", "name": "s5-eth3", "type": "copper", "uuid": "s5-eth3"}'), ('/links/link[s3-eth2==s4-eth1]', '{"endpoints": [["0000000000000003", "s3-eth2"], ["0000000000000004", "s4-eth1"]], "name": "0000000000000003-s3-eth2===0000000000000004-s4-eth1", "uuid": "s3-eth2==s4-eth1"}'), ('/links/link[s4-eth1==s3-eth2]', '{"endpoints": [["0000000000000004", "s4-eth1"], ["0000000000000003", "s3-eth2"]], "name": "0000000000000004-s4-eth1===0000000000000003-s3-eth2", "uuid": "s4-eth1==s3-eth2"}'), ('/links/link[s5-eth1==s4-eth2]', '{"endpoints": [["0000000000000005", "s5-eth1"], ["0000000000000004", "s4-eth2"]], "name": "0000000000000005-s5-eth1===0000000000000004-s4-eth2", "uuid": "s5-eth1==s4-eth2"}'), ('/links/link[s5-eth2==s1-eth2]', '{"endpoints": [["0000000000000005", "s5-eth2"], ["0000000000000001", "s1-eth2"]], "name": "0000000000000005-s5-eth2===0000000000000001-s1-eth2", "uuid": "s5-eth2==s1-eth2"}'), ('/links/link[s2-eth2==s3-eth1]', '{"endpoints": [["0000000000000002", "s2-eth2"], ["0000000000000003", "s3-eth1"]], "name": "0000000000000002-s2-eth2===0000000000000003-s3-eth1", "uuid": "s2-eth2==s3-eth1"}'), ('/links/link[s2-eth1==s1-eth1]', '{"endpoints": [["0000000000000002", "s2-eth1"], ["0000000000000001", "s1-eth1"]], "name": "0000000000000002-s2-eth1===0000000000000001-s1-eth1", "uuid": "s2-eth1==s1-eth1"}'), ('/links/link[s1-eth1==s2-eth1]', '{"endpoints": [["0000000000000001", "s1-eth1"], ["0000000000000002", "s2-eth1"]], "name": "0000000000000001-s1-eth1===0000000000000002-s2-eth1", "uuid": "s1-eth1==s2-eth1"}'), ('/links/link[s3-eth1==s2-eth2]', '{"endpoints": [["0000000000000003", "s3-eth1"], ["0000000000000002", "s2-eth2"]], "name": "0000000000000003-s3-eth1===0000000000000002-s2-eth2", "uuid": "s3-eth1==s2-eth2"}'), ('/links/link[s1-eth2==s5-eth2]', '{"endpoints": [["0000000000000001", "s1-eth2"], ["0000000000000005", "s5-eth2"]], "name": "0000000000000001-s1-eth2===0000000000000005-s5-eth2", "uuid": "s1-eth2==s5-eth2"}'), ('/links/link[s4-eth2==s5-eth1]', '{"endpoints": [["0000000000000004", "s4-eth2"], ["0000000000000005", "s5-eth1"]], "name": "0000000000000004-s4-eth2===0000000000000005-s5-eth1", "uuid": "s4-eth2==s5-eth1"}')]
[2025-01-15 15:50:25,425] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.1.7.197"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "8080"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"timeout\": 120\n}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000001]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000001\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000001\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000004]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000004\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000004\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000003]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000003\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000003\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000002]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000002\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000002\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000005]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000005\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000005\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth1\", \"type\": \"copper\", \"uuid\": \"s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth2\", \"type\": \"copper\", \"uuid\": \"s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth1\", \"type\": \"copper\", \"uuid\": \"s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth2\", \"type\": \"copper\", \"uuid\": \"s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth1\", \"type\": \"copper\", \"uuid\": \"s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth2\", \"type\": \"copper\", \"uuid\": \"s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth1\", \"type\": \"copper\", \"uuid\": \"s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth4\", \"type\": \"copper\", \"uuid\": \"s2-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth2\", \"type\": \"copper\", \"uuid\": \"s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth3\", \"type\": \"copper\", \"uuid\": \"s2-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth4\", \"type\": \"copper\", \"uuid\": \"s5-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth1\", \"type\": \"copper\", \"uuid\": \"s5-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth2\", \"type\": \"copper\", \"uuid\": \"s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth3\", \"type\": \"copper\", \"uuid\": \"s5-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth2==s4-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth2\"], [\"0000000000000004\", \"s4-eth1\"]], \"name\": \"0000000000000003-s3-eth2===0000000000000004-s4-eth1\", \"uuid\": \"s3-eth2==s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth1==s3-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth1\"], [\"0000000000000003\", \"s3-eth2\"]], \"name\": \"0000000000000004-s4-eth1===0000000000000003-s3-eth2\", \"uuid\": \"s4-eth1==s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth1==s4-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth1\"], [\"0000000000000004\", \"s4-eth2\"]], \"name\": \"0000000000000005-s5-eth1===0000000000000004-s4-eth2\", \"uuid\": \"s5-eth1==s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth2==s1-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth2\"], [\"0000000000000001\", \"s1-eth2\"]], \"name\": \"0000000000000005-s5-eth2===0000000000000001-s1-eth2\", \"uuid\": \"s5-eth2==s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth2==s3-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth2\"], [\"0000000000000003\", \"s3-eth1\"]], \"name\": \"0000000000000002-s2-eth2===0000000000000003-s3-eth1\", \"uuid\": \"s2-eth2==s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth1==s1-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth1\"], [\"0000000000000001\", \"s1-eth1\"]], \"name\": \"0000000000000002-s2-eth1===0000000000000001-s1-eth1\", \"uuid\": \"s2-eth1==s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth1==s2-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth1\"], [\"0000000000000002\", \"s2-eth1\"]], \"name\": \"0000000000000001-s1-eth1===0000000000000002-s2-eth1\", \"uuid\": \"s1-eth1==s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth1==s2-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth1\"], [\"0000000000000002\", \"s2-eth2\"]], \"name\": \"0000000000000003-s3-eth1===0000000000000002-s2-eth2\", \"uuid\": \"s3-eth1==s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth2==s5-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth2\"], [\"0000000000000005\", \"s5-eth2\"]], \"name\": \"0000000000000001-s1-eth2===0000000000000005-s5-eth2\", \"uuid\": \"s1-eth2==s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth2==s5-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth2\"], [\"0000000000000005\", \"s5-eth1\"]], \"name\": \"0000000000000004-s4-eth2===0000000000000005-s5-eth1\", \"uuid\": \"s4-eth2==s5-eth1\"}"}}]}, "device_drivers": ["DEVICEDRIVER_RYU"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "openflow-ryu-controller", "name": "RYU"}
[2025-01-15 15:50:25,459] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}
[2025-01-15 15:50:25,460] DEBUG:device.service.DeviceServiceServicerImpl:ConfigureDevice reply: {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}
[2025-01-15 15:50:25,463] DEBUG:device.service.DeviceServiceServicerImpl:ConfigureDevice request: {"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.1.7.197"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "8080"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"timeout\": 120\n}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000001]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000001\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000001\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000004]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000004\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000004\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000003]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000003\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000003\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000002]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000002\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000002\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000005]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000005\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000005\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth1\", \"type\": \"copper\", \"uuid\": \"s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth2\", \"type\": \"copper\", \"uuid\": \"s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth1\", \"type\": \"copper\", \"uuid\": \"s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth2\", \"type\": \"copper\", \"uuid\": \"s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth1\", \"type\": \"copper\", \"uuid\": \"s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth2\", \"type\": \"copper\", \"uuid\": \"s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth1\", \"type\": \"copper\", \"uuid\": \"s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth4\", \"type\": \"copper\", \"uuid\": \"s2-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth2\", \"type\": \"copper\", \"uuid\": \"s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth3\", \"type\": \"copper\", \"uuid\": \"s2-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth4\", \"type\": \"copper\", \"uuid\": \"s5-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth1\", \"type\": \"copper\", \"uuid\": \"s5-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth2\", \"type\": \"copper\", \"uuid\": \"s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth3\", \"type\": \"copper\", \"uuid\": \"s5-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth2==s4-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth2\"], [\"0000000000000004\", \"s4-eth1\"]], \"name\": \"0000000000000003-s3-eth2===0000000000000004-s4-eth1\", \"uuid\": \"s3-eth2==s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth1==s3-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth1\"], [\"0000000000000003\", \"s3-eth2\"]], \"name\": \"0000000000000004-s4-eth1===0000000000000003-s3-eth2\", \"uuid\": \"s4-eth1==s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth1==s4-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth1\"], [\"0000000000000004\", \"s4-eth2\"]], \"name\": \"0000000000000005-s5-eth1===0000000000000004-s4-eth2\", \"uuid\": \"s5-eth1==s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth2==s1-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth2\"], [\"0000000000000001\", \"s1-eth2\"]], \"name\": \"0000000000000005-s5-eth2===0000000000000001-s1-eth2\", \"uuid\": \"s5-eth2==s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth2==s3-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth2\"], [\"0000000000000003\", \"s3-eth1\"]], \"name\": \"0000000000000002-s2-eth2===0000000000000003-s3-eth1\", \"uuid\": \"s2-eth2==s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth1==s1-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth1\"], [\"0000000000000001\", \"s1-eth1\"]], \"name\": \"0000000000000002-s2-eth1===0000000000000001-s1-eth1\", \"uuid\": \"s2-eth1==s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth1==s2-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth1\"], [\"0000000000000002\", \"s2-eth1\"]], \"name\": \"0000000000000001-s1-eth1===0000000000000002-s2-eth1\", \"uuid\": \"s1-eth1==s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth1==s2-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth1\"], [\"0000000000000002\", \"s2-eth2\"]], \"name\": \"0000000000000003-s3-eth1===0000000000000002-s2-eth2\", \"uuid\": \"s3-eth1==s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth2==s5-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth2\"], [\"0000000000000005\", \"s5-eth2\"]], \"name\": \"0000000000000001-s1-eth2===0000000000000005-s5-eth2\", \"uuid\": \"s1-eth2==s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth2==s5-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth2\"], [\"0000000000000005\", \"s5-eth1\"]], \"name\": \"0000000000000004-s4-eth2===0000000000000005-s5-eth1\", \"uuid\": \"s4-eth2==s5-eth1\"}"}}, {"action": "CONFIGACTION_UNDEFINED", "custom": {"resource_key": "/device[s2]/flow[h1-h3]", "resource_value": "{\"dpid\": \"0000000000000002\", \"in-port\": \"s2-eth3\", \"out-port\": \"s2-eth1\"}"}}, {"action": "CONFIGACTION_UNDEFINED", "custom": {"resource_key": "/device[s2]/flow[h3-h1]", "resource_value": "{\"dpid\": \"0000000000000002\", \"in-port\": \"s2-eth1\", \"out-port\": \"s2-eth3\"}"}}, {"action": "CONFIGACTION_UNDEFINED", "custom": {"resource_key": "/device[s1]/flow[h1-h3]", "resource_value": "{\"dpid\": \"0000000000000001\", \"in-port\": \"s1-eth1\", \"out-port\": \"s1-eth2\"}"}}, {"action": "CONFIGACTION_UNDEFINED", "custom": {"resource_key": "/device[s1]/flow[h3-h1]", "resource_value": "{\"dpid\": \"0000000000000001\", \"in-port\": \"s1-eth2\", \"out-port\": \"s1-eth1\"}"}}]}, "device_drivers": ["DEVICEDRIVER_RYU"], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "endpoint_uuid": {"uuid": "158268b6-968b-582a-968d-da4b922ebc1c"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}}, "endpoint_location": {}, "endpoint_type": "mgmt", "kpi_sample_types": [], "name": "mgmt"}], "device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "openflow-ryu-controller", "name": "RYU"}
[2025-01-15 15:50:25,463] DEBUG:context.client.ContextClient:Creating channel to 10.152.183.206:1010...
[2025-01-15 15:50:25,464] DEBUG:context.client.ContextClient:Channel created
[2025-01-15 15:50:25,464] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}]}, "include_components": false, "include_config_rules": true, "include_endpoints": false}
[2025-01-15 15:50:25,473] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": [{"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.1.7.197"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "8080"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"timeout\": 120\n}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000001]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000001\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000001\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000004]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000004\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000004\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000003]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000003\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000003\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000002]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000002\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000002\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000005]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000005\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000005\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth1\", \"type\": \"copper\", \"uuid\": \"s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth2\", \"type\": \"copper\", \"uuid\": \"s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth1\", \"type\": \"copper\", \"uuid\": \"s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth2\", \"type\": \"copper\", \"uuid\": \"s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth1\", \"type\": \"copper\", \"uuid\": \"s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth2\", \"type\": \"copper\", \"uuid\": \"s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth1\", \"type\": \"copper\", \"uuid\": \"s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth4\", \"type\": \"copper\", \"uuid\": \"s2-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth2\", \"type\": \"copper\", \"uuid\": \"s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth3\", \"type\": \"copper\", \"uuid\": \"s2-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth4\", \"type\": \"copper\", \"uuid\": \"s5-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth1\", \"type\": \"copper\", \"uuid\": \"s5-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth2\", \"type\": \"copper\", \"uuid\": \"s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth3\", \"type\": \"copper\", \"uuid\": \"s5-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth2==s4-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth2\"], [\"0000000000000004\", \"s4-eth1\"]], \"name\": \"0000000000000003-s3-eth2===0000000000000004-s4-eth1\", \"uuid\": \"s3-eth2==s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth1==s3-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth1\"], [\"0000000000000003\", \"s3-eth2\"]], \"name\": \"0000000000000004-s4-eth1===0000000000000003-s3-eth2\", \"uuid\": \"s4-eth1==s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth1==s4-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth1\"], [\"0000000000000004\", \"s4-eth2\"]], \"name\": \"0000000000000005-s5-eth1===0000000000000004-s4-eth2\", \"uuid\": \"s5-eth1==s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth2==s1-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth2\"], [\"0000000000000001\", \"s1-eth2\"]], \"name\": \"0000000000000005-s5-eth2===0000000000000001-s1-eth2\", \"uuid\": \"s5-eth2==s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth2==s3-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth2\"], [\"0000000000000003\", \"s3-eth1\"]], \"name\": \"0000000000000002-s2-eth2===0000000000000003-s3-eth1\", \"uuid\": \"s2-eth2==s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth1==s1-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth1\"], [\"0000000000000001\", \"s1-eth1\"]], \"name\": \"0000000000000002-s2-eth1===0000000000000001-s1-eth1\", \"uuid\": \"s2-eth1==s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth1==s2-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth1\"], [\"0000000000000002\", \"s2-eth1\"]], \"name\": \"0000000000000001-s1-eth1===0000000000000002-s2-eth1\", \"uuid\": \"s1-eth1==s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth1==s2-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth1\"], [\"0000000000000002\", \"s2-eth2\"]], \"name\": \"0000000000000003-s3-eth1===0000000000000002-s2-eth2\", \"uuid\": \"s3-eth1==s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth2==s5-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth2\"], [\"0000000000000005\", \"s5-eth2\"]], \"name\": \"0000000000000001-s1-eth2===0000000000000005-s5-eth2\", \"uuid\": \"s1-eth2==s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth2==s5-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth2\"], [\"0000000000000005\", \"s5-eth1\"]], \"name\": \"0000000000000004-s4-eth2===0000000000000005-s5-eth1\", \"uuid\": \"s4-eth2==s5-eth1\"}"}}]}, "device_drivers": ["DEVICEDRIVER_RYU"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "openflow-ryu-controller", "name": "RYU"}]}
[2025-01-15 15:50:25,474] INFO:device.service.drivers.OpenFlow.OpenFlowDriver:SetConfig_resources:[('_connect/address', '10.1.7.197'), ('_connect/port', '8080'), ('_connect/settings', '{\n"timeout": 120\n}'), ('/devices/device[0000000000000001]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000001", "status": 2, "type": "packet-switch", "uuid": "0000000000000001"}'), ('/devices/device[0000000000000004]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000004", "status": 2, "type": "packet-switch", "uuid": "0000000000000004"}'), ('/devices/device[0000000000000003]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000003", "status": 2, "type": "packet-switch", "uuid": "0000000000000003"}'), ('/devices/device[0000000000000002]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000002", "status": 2, "type": "packet-switch", "uuid": "0000000000000002"}'), ('/devices/device[0000000000000005]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000005", "status": 2, "type": "packet-switch", "uuid": "0000000000000005"}'), ('/endpoints/endpoint[s1-eth1]', '{"device_uuid": "0000000000000001", "name": "s1-eth1", "type": "copper", "uuid": "s1-eth1"}'), ('/endpoints/endpoint[s1-eth2]', '{"device_uuid": "0000000000000001", "name": "s1-eth2", "type": "copper", "uuid": "s1-eth2"}'), ('/endpoints/endpoint[s4-eth1]', '{"device_uuid": "0000000000000004", "name": "s4-eth1", "type": "copper", "uuid": "s4-eth1"}'), ('/endpoints/endpoint[s4-eth2]', '{"device_uuid": "0000000000000004", "name": "s4-eth2", "type": "copper", "uuid": "s4-eth2"}'), ('/endpoints/endpoint[s3-eth1]', '{"device_uuid": "0000000000000003", "name": "s3-eth1", "type": "copper", "uuid": "s3-eth1"}'), ('/endpoints/endpoint[s3-eth2]', '{"device_uuid": "0000000000000003", "name": "s3-eth2", "type": "copper", "uuid": "s3-eth2"}'), ('/endpoints/endpoint[s2-eth1]', '{"device_uuid": "0000000000000002", "name": "s2-eth1", "type": "copper", "uuid": "s2-eth1"}'), ('/endpoints/endpoint[s2-eth4]', '{"device_uuid": "0000000000000002", "name": "s2-eth4", "type": "copper", "uuid": "s2-eth4"}'), ('/endpoints/endpoint[s2-eth2]', '{"device_uuid": "0000000000000002", "name": "s2-eth2", "type": "copper", "uuid": "s2-eth2"}'), ('/endpoints/endpoint[s2-eth3]', '{"device_uuid": "0000000000000002", "name": "s2-eth3", "type": "copper", "uuid": "s2-eth3"}'), ('/endpoints/endpoint[s5-eth4]', '{"device_uuid": "0000000000000005", "name": "s5-eth4", "type": "copper", "uuid": "s5-eth4"}'), ('/endpoints/endpoint[s5-eth1]', '{"device_uuid": "0000000000000005", "name": "s5-eth1", "type": "copper", "uuid": "s5-eth1"}'), ('/endpoints/endpoint[s5-eth2]', '{"device_uuid": "0000000000000005", "name": "s5-eth2", "type": "copper", "uuid": "s5-eth2"}'), ('/endpoints/endpoint[s5-eth3]', '{"device_uuid": "0000000000000005", "name": "s5-eth3", "type": "copper", "uuid": "s5-eth3"}'), ('/links/link[s3-eth2==s4-eth1]', '{"endpoints": [["0000000000000003", "s3-eth2"], ["0000000000000004", "s4-eth1"]], "name": "0000000000000003-s3-eth2===0000000000000004-s4-eth1", "uuid": "s3-eth2==s4-eth1"}'), ('/links/link[s4-eth1==s3-eth2]', '{"endpoints": [["0000000000000004", "s4-eth1"], ["0000000000000003", "s3-eth2"]], "name": "0000000000000004-s4-eth1===0000000000000003-s3-eth2", "uuid": "s4-eth1==s3-eth2"}'), ('/links/link[s5-eth1==s4-eth2]', '{"endpoints": [["0000000000000005", "s5-eth1"], ["0000000000000004", "s4-eth2"]], "name": "0000000000000005-s5-eth1===0000000000000004-s4-eth2", "uuid": "s5-eth1==s4-eth2"}'), ('/links/link[s5-eth2==s1-eth2]', '{"endpoints": [["0000000000000005", "s5-eth2"], ["0000000000000001", "s1-eth2"]], "name": "0000000000000005-s5-eth2===0000000000000001-s1-eth2", "uuid": "s5-eth2==s1-eth2"}'), ('/links/link[s2-eth2==s3-eth1]', '{"endpoints": [["0000000000000002", "s2-eth2"], ["0000000000000003", "s3-eth1"]], "name": "0000000000000002-s2-eth2===0000000000000003-s3-eth1", "uuid": "s2-eth2==s3-eth1"}'), ('/links/link[s2-eth1==s1-eth1]', '{"endpoints": [["0000000000000002", "s2-eth1"], ["0000000000000001", "s1-eth1"]], "name": "0000000000000002-s2-eth1===0000000000000001-s1-eth1", "uuid": "s2-eth1==s1-eth1"}'), ('/links/link[s1-eth1==s2-eth1]', '{"endpoints": [["0000000000000001", "s1-eth1"], ["0000000000000002", "s2-eth1"]], "name": "0000000000000001-s1-eth1===0000000000000002-s2-eth1", "uuid": "s1-eth1==s2-eth1"}'), ('/links/link[s3-eth1==s2-eth2]', '{"endpoints": [["0000000000000003", "s3-eth1"], ["0000000000000002", "s2-eth2"]], "name": "0000000000000003-s3-eth1===0000000000000002-s2-eth2", "uuid": "s3-eth1==s2-eth2"}'), ('/links/link[s1-eth2==s5-eth2]', '{"endpoints": [["0000000000000001", "s1-eth2"], ["0000000000000005", "s5-eth2"]], "name": "0000000000000001-s1-eth2===0000000000000005-s5-eth2", "uuid": "s1-eth2==s5-eth2"}'), ('/links/link[s4-eth2==s5-eth1]', '{"endpoints": [["0000000000000004", "s4-eth2"], ["0000000000000005", "s5-eth1"]], "name": "0000000000000004-s4-eth2===0000000000000005-s5-eth1", "uuid": "s4-eth2==s5-eth1"}')]
[2025-01-15 15:50:25,475] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.1.7.197"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "8080"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"timeout\": 120\n}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000001]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000001\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000001\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000004]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000004\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000004\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000003]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000003\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000003\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000002]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000002\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000002\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000005]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000005\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000005\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth1\", \"type\": \"copper\", \"uuid\": \"s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth2\", \"type\": \"copper\", \"uuid\": \"s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth1\", \"type\": \"copper\", \"uuid\": \"s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth2\", \"type\": \"copper\", \"uuid\": \"s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth1\", \"type\": \"copper\", \"uuid\": \"s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth2\", \"type\": \"copper\", \"uuid\": \"s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth1\", \"type\": \"copper\", \"uuid\": \"s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth4\", \"type\": \"copper\", \"uuid\": \"s2-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth2\", \"type\": \"copper\", \"uuid\": \"s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth3\", \"type\": \"copper\", \"uuid\": \"s2-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth4\", \"type\": \"copper\", \"uuid\": \"s5-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth1\", \"type\": \"copper\", \"uuid\": \"s5-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth2\", \"type\": \"copper\", \"uuid\": \"s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth3\", \"type\": \"copper\", \"uuid\": \"s5-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth2==s4-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth2\"], [\"0000000000000004\", \"s4-eth1\"]], \"name\": \"0000000000000003-s3-eth2===0000000000000004-s4-eth1\", \"uuid\": \"s3-eth2==s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth1==s3-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth1\"], [\"0000000000000003\", \"s3-eth2\"]], \"name\": \"0000000000000004-s4-eth1===0000000000000003-s3-eth2\", \"uuid\": \"s4-eth1==s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth1==s4-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth1\"], [\"0000000000000004\", \"s4-eth2\"]], \"name\": \"0000000000000005-s5-eth1===0000000000000004-s4-eth2\", \"uuid\": \"s5-eth1==s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth2==s1-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth2\"], [\"0000000000000001\", \"s1-eth2\"]], \"name\": \"0000000000000005-s5-eth2===0000000000000001-s1-eth2\", \"uuid\": \"s5-eth2==s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth2==s3-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth2\"], [\"0000000000000003\", \"s3-eth1\"]], \"name\": \"0000000000000002-s2-eth2===0000000000000003-s3-eth1\", \"uuid\": \"s2-eth2==s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth1==s1-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth1\"], [\"0000000000000001\", \"s1-eth1\"]], \"name\": \"0000000000000002-s2-eth1===0000000000000001-s1-eth1\", \"uuid\": \"s2-eth1==s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth1==s2-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth1\"], [\"0000000000000002\", \"s2-eth1\"]], \"name\": \"0000000000000001-s1-eth1===0000000000000002-s2-eth1\", \"uuid\": \"s1-eth1==s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth1==s2-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth1\"], [\"0000000000000002\", \"s2-eth2\"]], \"name\": \"0000000000000003-s3-eth1===0000000000000002-s2-eth2\", \"uuid\": \"s3-eth1==s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth2==s5-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth2\"], [\"0000000000000005\", \"s5-eth2\"]], \"name\": \"0000000000000001-s1-eth2===0000000000000005-s5-eth2\", \"uuid\": \"s1-eth2==s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth2==s5-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth2\"], [\"0000000000000005\", \"s5-eth1\"]], \"name\": \"0000000000000004-s4-eth2===0000000000000005-s5-eth1\", \"uuid\": \"s4-eth2==s5-eth1\"}"}}]}, "device_drivers": ["DEVICEDRIVER_RYU"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "openflow-ryu-controller", "name": "RYU"}
[2025-01-15 15:50:25,504] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}
[2025-01-15 15:50:25,505] DEBUG:device.service.DeviceServiceServicerImpl:ConfigureDevice reply: {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}
[2025-01-15 15:50:25,508] DEBUG:device.service.DeviceServiceServicerImpl:ConfigureDevice request: {"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.1.7.197"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "8080"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"timeout\": 120\n}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000001]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000001\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000001\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000004]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000004\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000004\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000003]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000003\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000003\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000002]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000002\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000002\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000005]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000005\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000005\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth1\", \"type\": \"copper\", \"uuid\": \"s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth2\", \"type\": \"copper\", \"uuid\": \"s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth1\", \"type\": \"copper\", \"uuid\": \"s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth2\", \"type\": \"copper\", \"uuid\": \"s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth1\", \"type\": \"copper\", \"uuid\": \"s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth2\", \"type\": \"copper\", \"uuid\": \"s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth1\", \"type\": \"copper\", \"uuid\": \"s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth4\", \"type\": \"copper\", \"uuid\": \"s2-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth2\", \"type\": \"copper\", \"uuid\": \"s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth3\", \"type\": \"copper\", \"uuid\": \"s2-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth4\", \"type\": \"copper\", \"uuid\": \"s5-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth1\", \"type\": \"copper\", \"uuid\": \"s5-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth2\", \"type\": \"copper\", \"uuid\": \"s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth3\", \"type\": \"copper\", \"uuid\": \"s5-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth2==s4-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth2\"], [\"0000000000000004\", \"s4-eth1\"]], \"name\": \"0000000000000003-s3-eth2===0000000000000004-s4-eth1\", \"uuid\": \"s3-eth2==s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth1==s3-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth1\"], [\"0000000000000003\", \"s3-eth2\"]], \"name\": \"0000000000000004-s4-eth1===0000000000000003-s3-eth2\", \"uuid\": \"s4-eth1==s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth1==s4-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth1\"], [\"0000000000000004\", \"s4-eth2\"]], \"name\": \"0000000000000005-s5-eth1===0000000000000004-s4-eth2\", \"uuid\": \"s5-eth1==s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth2==s1-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth2\"], [\"0000000000000001\", \"s1-eth2\"]], \"name\": \"0000000000000005-s5-eth2===0000000000000001-s1-eth2\", \"uuid\": \"s5-eth2==s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth2==s3-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth2\"], [\"0000000000000003\", \"s3-eth1\"]], \"name\": \"0000000000000002-s2-eth2===0000000000000003-s3-eth1\", \"uuid\": \"s2-eth2==s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth1==s1-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth1\"], [\"0000000000000001\", \"s1-eth1\"]], \"name\": \"0000000000000002-s2-eth1===0000000000000001-s1-eth1\", \"uuid\": \"s2-eth1==s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth1==s2-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth1\"], [\"0000000000000002\", \"s2-eth1\"]], \"name\": \"0000000000000001-s1-eth1===0000000000000002-s2-eth1\", \"uuid\": \"s1-eth1==s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth1==s2-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth1\"], [\"0000000000000002\", \"s2-eth2\"]], \"name\": \"0000000000000003-s3-eth1===0000000000000002-s2-eth2\", \"uuid\": \"s3-eth1==s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth2==s5-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth2\"], [\"0000000000000005\", \"s5-eth2\"]], \"name\": \"0000000000000001-s1-eth2===0000000000000005-s5-eth2\", \"uuid\": \"s1-eth2==s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth2==s5-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth2\"], [\"0000000000000005\", \"s5-eth1\"]], \"name\": \"0000000000000004-s4-eth2===0000000000000005-s5-eth1\", \"uuid\": \"s4-eth2==s5-eth1\"}"}}, {"action": "CONFIGACTION_UNDEFINED", "custom": {"resource_key": "/device[s2]/flow[h1-h3]", "resource_value": "{\"dpid\": \"0000000000000002\", \"in-port\": \"s2-eth3\", \"out-port\": \"s2-eth1\"}"}}, {"action": "CONFIGACTION_UNDEFINED", "custom": {"resource_key": "/device[s2]/flow[h3-h1]", "resource_value": "{\"dpid\": \"0000000000000002\", \"in-port\": \"s2-eth1\", \"out-port\": \"s2-eth3\"}"}}, {"action": "CONFIGACTION_UNDEFINED", "custom": {"resource_key": "/device[s1]/flow[h1-h3]", "resource_value": "{\"dpid\": \"0000000000000001\", \"in-port\": \"s1-eth1\", \"out-port\": \"s1-eth2\"}"}}, {"action": "CONFIGACTION_UNDEFINED", "custom": {"resource_key": "/device[s1]/flow[h3-h1]", "resource_value": "{\"dpid\": \"0000000000000001\", \"in-port\": \"s1-eth2\", \"out-port\": \"s1-eth1\"}"}}, {"action": "CONFIGACTION_UNDEFINED", "custom": {"resource_key": "/device[s5]/flow[h1-h3]", "resource_value": "{\"dpid\": \"0000000000000005\", \"in-port\": \"s5-eth2\", \"out-port\": \"s5-eth3\"}"}}, {"action": "CONFIGACTION_UNDEFINED", "custom": {"resource_key": "/device[s5]/flow[h3-h1]", "resource_value": "{\"dpid\": \"0000000000000005\", \"in-port\": \"s5-eth3\", \"out-port\": \"s5-eth2\"}"}}]}, "device_drivers": ["DEVICEDRIVER_RYU"], "device_endpoints": [{"endpoint_id": {"device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "endpoint_uuid": {"uuid": "158268b6-968b-582a-968d-da4b922ebc1c"}, "topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}}, "endpoint_location": {}, "endpoint_type": "mgmt", "kpi_sample_types": [], "name": "mgmt"}], "device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "openflow-ryu-controller", "name": "RYU"}
[2025-01-15 15:50:25,508] DEBUG:context.client.ContextClient:Creating channel to 10.152.183.206:1010...
[2025-01-15 15:50:25,509] DEBUG:context.client.ContextClient:Channel created
[2025-01-15 15:50:25,509] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}]}, "include_components": false, "include_config_rules": true, "include_endpoints": false}
[2025-01-15 15:50:25,519] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": [{"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.1.7.197"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "8080"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"timeout\": 120\n}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000001]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000001\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000001\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000004]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000004\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000004\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000003]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000003\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000003\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000002]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000002\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000002\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000005]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000005\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000005\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth1\", \"type\": \"copper\", \"uuid\": \"s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth2\", \"type\": \"copper\", \"uuid\": \"s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth1\", \"type\": \"copper\", \"uuid\": \"s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth2\", \"type\": \"copper\", \"uuid\": \"s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth1\", \"type\": \"copper\", \"uuid\": \"s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth2\", \"type\": \"copper\", \"uuid\": \"s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth1\", \"type\": \"copper\", \"uuid\": \"s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth4\", \"type\": \"copper\", \"uuid\": \"s2-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth2\", \"type\": \"copper\", \"uuid\": \"s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth3\", \"type\": \"copper\", \"uuid\": \"s2-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth4\", \"type\": \"copper\", \"uuid\": \"s5-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth1\", \"type\": \"copper\", \"uuid\": \"s5-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth2\", \"type\": \"copper\", \"uuid\": \"s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth3\", \"type\": \"copper\", \"uuid\": \"s5-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth2==s4-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth2\"], [\"0000000000000004\", \"s4-eth1\"]], \"name\": \"0000000000000003-s3-eth2===0000000000000004-s4-eth1\", \"uuid\": \"s3-eth2==s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth1==s3-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth1\"], [\"0000000000000003\", \"s3-eth2\"]], \"name\": \"0000000000000004-s4-eth1===0000000000000003-s3-eth2\", \"uuid\": \"s4-eth1==s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth1==s4-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth1\"], [\"0000000000000004\", \"s4-eth2\"]], \"name\": \"0000000000000005-s5-eth1===0000000000000004-s4-eth2\", \"uuid\": \"s5-eth1==s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth2==s1-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth2\"], [\"0000000000000001\", \"s1-eth2\"]], \"name\": \"0000000000000005-s5-eth2===0000000000000001-s1-eth2\", \"uuid\": \"s5-eth2==s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth2==s3-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth2\"], [\"0000000000000003\", \"s3-eth1\"]], \"name\": \"0000000000000002-s2-eth2===0000000000000003-s3-eth1\", \"uuid\": \"s2-eth2==s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth1==s1-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth1\"], [\"0000000000000001\", \"s1-eth1\"]], \"name\": \"0000000000000002-s2-eth1===0000000000000001-s1-eth1\", \"uuid\": \"s2-eth1==s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth1==s2-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth1\"], [\"0000000000000002\", \"s2-eth1\"]], \"name\": \"0000000000000001-s1-eth1===0000000000000002-s2-eth1\", \"uuid\": \"s1-eth1==s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth1==s2-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth1\"], [\"0000000000000002\", \"s2-eth2\"]], \"name\": \"0000000000000003-s3-eth1===0000000000000002-s2-eth2\", \"uuid\": \"s3-eth1==s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth2==s5-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth2\"], [\"0000000000000005\", \"s5-eth2\"]], \"name\": \"0000000000000001-s1-eth2===0000000000000005-s5-eth2\", \"uuid\": \"s1-eth2==s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth2==s5-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth2\"], [\"0000000000000005\", \"s5-eth1\"]], \"name\": \"0000000000000004-s4-eth2===0000000000000005-s5-eth1\", \"uuid\": \"s4-eth2==s5-eth1\"}"}}]}, "device_drivers": ["DEVICEDRIVER_RYU"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "openflow-ryu-controller", "name": "RYU"}]}
[2025-01-15 15:50:25,519] INFO:device.service.drivers.OpenFlow.OpenFlowDriver:SetConfig_resources:[('_connect/address', '10.1.7.197'), ('_connect/port', '8080'), ('_connect/settings', '{\n"timeout": 120\n}'), ('/devices/device[0000000000000001]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000001", "status": 2, "type": "packet-switch", "uuid": "0000000000000001"}'), ('/devices/device[0000000000000004]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000004", "status": 2, "type": "packet-switch", "uuid": "0000000000000004"}'), ('/devices/device[0000000000000003]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000003", "status": 2, "type": "packet-switch", "uuid": "0000000000000003"}'), ('/devices/device[0000000000000002]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000002", "status": 2, "type": "packet-switch", "uuid": "0000000000000002"}'), ('/devices/device[0000000000000005]', '{"drivers": "DEVICEDRIVER_RYU", "name": "0000000000000005", "status": 2, "type": "packet-switch", "uuid": "0000000000000005"}'), ('/endpoints/endpoint[s1-eth1]', '{"device_uuid": "0000000000000001", "name": "s1-eth1", "type": "copper", "uuid": "s1-eth1"}'), ('/endpoints/endpoint[s1-eth2]', '{"device_uuid": "0000000000000001", "name": "s1-eth2", "type": "copper", "uuid": "s1-eth2"}'), ('/endpoints/endpoint[s4-eth1]', '{"device_uuid": "0000000000000004", "name": "s4-eth1", "type": "copper", "uuid": "s4-eth1"}'), ('/endpoints/endpoint[s4-eth2]', '{"device_uuid": "0000000000000004", "name": "s4-eth2", "type": "copper", "uuid": "s4-eth2"}'), ('/endpoints/endpoint[s3-eth1]', '{"device_uuid": "0000000000000003", "name": "s3-eth1", "type": "copper", "uuid": "s3-eth1"}'), ('/endpoints/endpoint[s3-eth2]', '{"device_uuid": "0000000000000003", "name": "s3-eth2", "type": "copper", "uuid": "s3-eth2"}'), ('/endpoints/endpoint[s2-eth1]', '{"device_uuid": "0000000000000002", "name": "s2-eth1", "type": "copper", "uuid": "s2-eth1"}'), ('/endpoints/endpoint[s2-eth4]', '{"device_uuid": "0000000000000002", "name": "s2-eth4", "type": "copper", "uuid": "s2-eth4"}'), ('/endpoints/endpoint[s2-eth2]', '{"device_uuid": "0000000000000002", "name": "s2-eth2", "type": "copper", "uuid": "s2-eth2"}'), ('/endpoints/endpoint[s2-eth3]', '{"device_uuid": "0000000000000002", "name": "s2-eth3", "type": "copper", "uuid": "s2-eth3"}'), ('/endpoints/endpoint[s5-eth4]', '{"device_uuid": "0000000000000005", "name": "s5-eth4", "type": "copper", "uuid": "s5-eth4"}'), ('/endpoints/endpoint[s5-eth1]', '{"device_uuid": "0000000000000005", "name": "s5-eth1", "type": "copper", "uuid": "s5-eth1"}'), ('/endpoints/endpoint[s5-eth2]', '{"device_uuid": "0000000000000005", "name": "s5-eth2", "type": "copper", "uuid": "s5-eth2"}'), ('/endpoints/endpoint[s5-eth3]', '{"device_uuid": "0000000000000005", "name": "s5-eth3", "type": "copper", "uuid": "s5-eth3"}'), ('/links/link[s3-eth2==s4-eth1]', '{"endpoints": [["0000000000000003", "s3-eth2"], ["0000000000000004", "s4-eth1"]], "name": "0000000000000003-s3-eth2===0000000000000004-s4-eth1", "uuid": "s3-eth2==s4-eth1"}'), ('/links/link[s4-eth1==s3-eth2]', '{"endpoints": [["0000000000000004", "s4-eth1"], ["0000000000000003", "s3-eth2"]], "name": "0000000000000004-s4-eth1===0000000000000003-s3-eth2", "uuid": "s4-eth1==s3-eth2"}'), ('/links/link[s5-eth1==s4-eth2]', '{"endpoints": [["0000000000000005", "s5-eth1"], ["0000000000000004", "s4-eth2"]], "name": "0000000000000005-s5-eth1===0000000000000004-s4-eth2", "uuid": "s5-eth1==s4-eth2"}'), ('/links/link[s5-eth2==s1-eth2]', '{"endpoints": [["0000000000000005", "s5-eth2"], ["0000000000000001", "s1-eth2"]], "name": "0000000000000005-s5-eth2===0000000000000001-s1-eth2", "uuid": "s5-eth2==s1-eth2"}'), ('/links/link[s2-eth2==s3-eth1]', '{"endpoints": [["0000000000000002", "s2-eth2"], ["0000000000000003", "s3-eth1"]], "name": "0000000000000002-s2-eth2===0000000000000003-s3-eth1", "uuid": "s2-eth2==s3-eth1"}'), ('/links/link[s2-eth1==s1-eth1]', '{"endpoints": [["0000000000000002", "s2-eth1"], ["0000000000000001", "s1-eth1"]], "name": "0000000000000002-s2-eth1===0000000000000001-s1-eth1", "uuid": "s2-eth1==s1-eth1"}'), ('/links/link[s1-eth1==s2-eth1]', '{"endpoints": [["0000000000000001", "s1-eth1"], ["0000000000000002", "s2-eth1"]], "name": "0000000000000001-s1-eth1===0000000000000002-s2-eth1", "uuid": "s1-eth1==s2-eth1"}'), ('/links/link[s3-eth1==s2-eth2]', '{"endpoints": [["0000000000000003", "s3-eth1"], ["0000000000000002", "s2-eth2"]], "name": "0000000000000003-s3-eth1===0000000000000002-s2-eth2", "uuid": "s3-eth1==s2-eth2"}'), ('/links/link[s1-eth2==s5-eth2]', '{"endpoints": [["0000000000000001", "s1-eth2"], ["0000000000000005", "s5-eth2"]], "name": "0000000000000001-s1-eth2===0000000000000005-s5-eth2", "uuid": "s1-eth2==s5-eth2"}'), ('/links/link[s4-eth2==s5-eth1]', '{"endpoints": [["0000000000000004", "s4-eth2"], ["0000000000000005", "s5-eth1"]], "name": "0000000000000004-s4-eth2===0000000000000005-s5-eth1", "uuid": "s4-eth2==s5-eth1"}')]
[2025-01-15 15:50:25,520] DEBUG:context.client.ContextClient:SetDevice request: {"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.1.7.197"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "8080"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"timeout\": 120\n}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000001]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000001\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000001\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000004]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000004\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000004\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000003]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000003\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000003\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000002]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000002\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000002\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/devices/device[0000000000000005]", "resource_value": "{\"drivers\": \"DEVICEDRIVER_RYU\", \"name\": \"0000000000000005\", \"status\": 2, \"type\": \"packet-switch\", \"uuid\": \"0000000000000005\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth1\", \"type\": \"copper\", \"uuid\": \"s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s1-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000001\", \"name\": \"s1-eth2\", \"type\": \"copper\", \"uuid\": \"s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth1\", \"type\": \"copper\", \"uuid\": \"s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s4-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000004\", \"name\": \"s4-eth2\", \"type\": \"copper\", \"uuid\": \"s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth1\", \"type\": \"copper\", \"uuid\": \"s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s3-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000003\", \"name\": \"s3-eth2\", \"type\": \"copper\", \"uuid\": \"s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth1\", \"type\": \"copper\", \"uuid\": \"s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth4\", \"type\": \"copper\", \"uuid\": \"s2-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth2\", \"type\": \"copper\", \"uuid\": \"s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s2-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000002\", \"name\": \"s2-eth3\", \"type\": \"copper\", \"uuid\": \"s2-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth4]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth4\", \"type\": \"copper\", \"uuid\": \"s5-eth4\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth1]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth1\", \"type\": \"copper\", \"uuid\": \"s5-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth2]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth2\", \"type\": \"copper\", \"uuid\": \"s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/endpoints/endpoint[s5-eth3]", "resource_value": "{\"device_uuid\": \"0000000000000005\", \"name\": \"s5-eth3\", \"type\": \"copper\", \"uuid\": \"s5-eth3\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth2==s4-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth2\"], [\"0000000000000004\", \"s4-eth1\"]], \"name\": \"0000000000000003-s3-eth2===0000000000000004-s4-eth1\", \"uuid\": \"s3-eth2==s4-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth1==s3-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth1\"], [\"0000000000000003\", \"s3-eth2\"]], \"name\": \"0000000000000004-s4-eth1===0000000000000003-s3-eth2\", \"uuid\": \"s4-eth1==s3-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth1==s4-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth1\"], [\"0000000000000004\", \"s4-eth2\"]], \"name\": \"0000000000000005-s5-eth1===0000000000000004-s4-eth2\", \"uuid\": \"s5-eth1==s4-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s5-eth2==s1-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000005\", \"s5-eth2\"], [\"0000000000000001\", \"s1-eth2\"]], \"name\": \"0000000000000005-s5-eth2===0000000000000001-s1-eth2\", \"uuid\": \"s5-eth2==s1-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth2==s3-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth2\"], [\"0000000000000003\", \"s3-eth1\"]], \"name\": \"0000000000000002-s2-eth2===0000000000000003-s3-eth1\", \"uuid\": \"s2-eth2==s3-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s2-eth1==s1-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000002\", \"s2-eth1\"], [\"0000000000000001\", \"s1-eth1\"]], \"name\": \"0000000000000002-s2-eth1===0000000000000001-s1-eth1\", \"uuid\": \"s2-eth1==s1-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth1==s2-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth1\"], [\"0000000000000002\", \"s2-eth1\"]], \"name\": \"0000000000000001-s1-eth1===0000000000000002-s2-eth1\", \"uuid\": \"s1-eth1==s2-eth1\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s3-eth1==s2-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000003\", \"s3-eth1\"], [\"0000000000000002\", \"s2-eth2\"]], \"name\": \"0000000000000003-s3-eth1===0000000000000002-s2-eth2\", \"uuid\": \"s3-eth1==s2-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s1-eth2==s5-eth2]", "resource_value": "{\"endpoints\": [[\"0000000000000001\", \"s1-eth2\"], [\"0000000000000005\", \"s5-eth2\"]], \"name\": \"0000000000000001-s1-eth2===0000000000000005-s5-eth2\", \"uuid\": \"s1-eth2==s5-eth2\"}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/links/link[s4-eth2==s5-eth1]", "resource_value": "{\"endpoints\": [[\"0000000000000004\", \"s4-eth2\"], [\"0000000000000005\", \"s5-eth1\"]], \"name\": \"0000000000000004-s4-eth2===0000000000000005-s5-eth1\", \"uuid\": \"s4-eth2==s5-eth1\"}"}}]}, "device_drivers": ["DEVICEDRIVER_RYU"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_ENABLED", "device_type": "openflow-ryu-controller", "name": "RYU"}
[2025-01-15 15:50:25,549] DEBUG:context.client.ContextClient:SetDevice result: {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}
[2025-01-15 15:50:25,549] DEBUG:device.service.DeviceServiceServicerImpl:ConfigureDevice reply: {"device_uuid": {"uuid": "b2ed9526-554d-5a79-9dc9-33e00faecef1"}}
......@@ -13,6 +13,7 @@
# limitations under the License.
import json
import logging, requests, threading
import resource
from requests.auth import HTTPBasicAuth
from typing import Any, Iterator, List, Optional, Tuple, Union
from common.method_wrappers.Decorator import MetricsPool, metered_subclass_method
......@@ -149,12 +150,53 @@ class OpenFlowDriver(_Driver):
#
@metered_subclass_method(METRICS_POOL)
def SetConfig(self, resources: List[Tuple[str, Any]]) -> List[Union[bool, Exception]]:
url = f"{self.__base_url}/stats/flowentry/add"
results = []
LOGGER.info(f'SetConfig_resources:{resources}')
LOGGER.info(f"SetConfig_resources: {resources}")
if not resources:
return results
return results
with self.__lock:
for resource in resources:
try:
resource_key, resource_value = resource
resource_value_dict = json.loads(resource_value)
dpid = int(resource_value_dict["dpid"], 16)
in_port = int(resource_value_dict["in-port"].split("-")[1][3:])
out_port = int(resource_value_dict["out-port"].split("-")[1][3:])
flow_entry = {
"dpid": dpid,
"cookie": 0,
"priority": 32768,
"match": {
"in_port": in_port
},
"actions": [
{
"type": "OUTPUT",
"port": out_port
}
]
}
try:
response = requests.post(url,json=flow_entry,timeout=self.__timeout,verify=False,auth=self.__auth)
response.raise_for_status()
results.append(True)
LOGGER.info(f"Successfully posted flow entry: {flow_entry}")
except requests.exceptions.Timeout:
LOGGER.error(f"Timeout connecting to {url}")
results.append(Exception(f"Timeout connecting to {url}"))
except requests.exceptions.RequestException as e:
LOGGER.error(f"Error posting to {url}: {e}")
results.append(e)
else:
LOGGER.warning(f"Skipped invalid resource_key: {resource_key}")
results.append(Exception(f"Invalid resource_key: {resource_key}"))
except Exception as e:
LOGGER.error(f"Error processing resource {resource_key}: {e}", exc_info=True)
results.append(e)
return results
#
#
#
......
......@@ -88,11 +88,12 @@ class RYUServiceHandler(_ServiceHandler):
src_device, src_endpoint, = self._get_endpoint_details(endpoints[0])
dst_device, dst_endpoint, = self._get_endpoint_details(endpoints[-1])
src_controller = self.__task_executor.get_device_controller(src_device)
del src_controller.device_config.config_rules[:]
for index in range(len(endpoints) - 1):
current_device, current_endpoint = self._get_endpoint_details(endpoints[index])
#LOGGER.debug(f"Current device: {current_device.name}, Current endpoint: {current_endpoint.name}")
next_device, next_endpoint = self._get_endpoint_details(endpoints[index + 1])
next_device, next_endpoint = self._get_endpoint_details(endpoints[index + 1])
#LOGGER.debug(f"Next device: {next_device.name}, Next endpoint: {next_endpoint.name}")
if current_device.name == next_device.name:
in_port_forward = current_endpoint.name
......@@ -100,30 +101,37 @@ class RYUServiceHandler(_ServiceHandler):
flow_split = service_name.split('-')
flow_rule_forward = f"{flow_split[0]}-{flow_split[2]}"
flow_rule_reverse = f"{flow_split[2]}-{flow_split[0]}"
forward_resource_value = json.dumps({"dpid": current_device.name, "in-port": in_port_forward, "out-port": out_port_forward})
forward_rule = ConfigRule(
custom=ConfigRule_Custom(
forward_resource_value = ({"dpid": current_device.name, "in-port": in_port_forward, "out-port": out_port_forward})
forward_rule = json_config_rule_set (
resource_key=f"/device[{current_endpoint.name.split('-')[0]}]/flow[{flow_rule_forward}]",
resource_value=forward_resource_value
)
)
LOGGER.debug(f"Forward configuration rule: {forward_rule}")
src_controller.device_config.config_rules.append(forward_rule)
src_controller.device_config.config_rules.append(ConfigRule(**forward_rule))
in_port_reverse = next_endpoint.name
out_port_reverse = current_endpoint.name
reverse_resource_value = json.dumps({"dpid": current_device.name, "in-port": in_port_reverse, "out-port": out_port_reverse})
reverse_rule = ConfigRule(
custom=ConfigRule_Custom(
reverse_resource_value = ({"dpid": current_device.name, "in-port": in_port_reverse, "out-port": out_port_reverse})
reverse_rule = json_config_rule_set(
resource_key=f"/device[{current_endpoint.name.split('-')[0]}]/flow[{flow_rule_reverse}]",
resource_value=reverse_resource_value
)
)
LOGGER.debug(f"Reverse configuration rule: {reverse_rule}")
src_controller.device_config.config_rules.append(reverse_rule)
self.__task_executor.configure_device(src_controller)
results.append(True)
src_controller.device_config.config_rules.append(ConfigRule(**reverse_rule))
self.__task_executor.configure_device(src_controller)
results.append(True)
def get_config_rules(controller):
try:
config_rules = controller.device_config.config_rules
for rule in config_rules:
if rule.HasField("custom"):
resource_key = rule.custom.resource_key
resource_value = rule.custom.resource_value
LOGGER.debug(f"Resource key in config: {resource_key}, Resource value in config: {resource_value}")
except Exception as e:
print(f"Error accessing config rules: {e}")
get_config_rules(src_controller)
LOGGER.debug(f"Configuration rules: {src_controller.device_config.config_rules}")
return results
except Exception as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment