From 64fd922dea1177439da7f111f89b730ab5acce68 Mon Sep 17 00:00:00 2001 From: Simone Spinelli <simone.spinelli@geant.org> Date: Wed, 5 Apr 2023 12:17:35 +0200 Subject: [PATCH] More on device vendor --- .../workflows/device/create_device.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/geant_service_orchestrator/workflows/device/create_device.py b/geant_service_orchestrator/workflows/device/create_device.py index 37ddb652..4c46e93f 100644 --- a/geant_service_orchestrator/workflows/device/create_device.py +++ b/geant_service_orchestrator/workflows/device/create_device.py @@ -69,11 +69,16 @@ def get_snmp_info(subscription: DeviceInactive) -> State: @step("Initialize subscription") def initialize_subscription( - subscription: DeviceInactive, fqdn: str, ts_address: str, ts_port: str + subscription: DeviceInactive, + fqdn: str, + ts_address: ipaddress.IPv4Address, + ts_port: str, + device_vendor: str ) -> State: subscription.device.fqdn = fqdn subscription.device.ts_address = ts_address subscription.device.ts_port = ts_port + subscription.device.device_vendor = device_vendor subscription.description = f"Device {fqdn} type \ ({subscription.device_type})" subscription = DeviceProvisioning.from_other_lifecycle( -- GitLab