Skip to content
Snippets Groups Projects
Commit 64fd922d authored by Simone Spinelli's avatar Simone Spinelli
Browse files

More on device vendor

parent edba6fab
No related branches found
No related tags found
1 merge request!5Device workflows
...@@ -69,11 +69,16 @@ def get_snmp_info(subscription: DeviceInactive) -> State: ...@@ -69,11 +69,16 @@ def get_snmp_info(subscription: DeviceInactive) -> State:
@step("Initialize subscription") @step("Initialize subscription")
def 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: ) -> State:
subscription.device.fqdn = fqdn subscription.device.fqdn = fqdn
subscription.device.ts_address = ts_address subscription.device.ts_address = ts_address
subscription.device.ts_port = ts_port subscription.device.ts_port = ts_port
subscription.device.device_vendor = device_vendor
subscription.description = f"Device {fqdn} type \ subscription.description = f"Device {fqdn} type \
({subscription.device_type})" ({subscription.device_type})"
subscription = DeviceProvisioning.from_other_lifecycle( subscription = DeviceProvisioning.from_other_lifecycle(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment