From 190833c54aadf26119c8f15f573414dd6195f8ff Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 26 Mar 2023 15:58:09 +0200 Subject: [PATCH] bundles/lldp: do not run for routeros devices --- bundles/lldp/items.py | 47 ++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/bundles/lldp/items.py b/bundles/lldp/items.py index ac02aa1..7646f10 100644 --- a/bundles/lldp/items.py +++ b/bundles/lldp/items.py @@ -1,28 +1,29 @@ -directories = { - '/etc/lldpd.d': { - 'purge': True, - 'triggers': { - 'svc_systemd:lldpd:restart', +if node.os != 'routeros': + directories = { + '/etc/lldpd.d': { + 'purge': True, + 'triggers': { + 'svc_systemd:lldpd:restart', + }, }, - }, -} + } -files = { - '/etc/lldpd.conf': { - 'delete': True, - }, - '/etc/lldpd.d/bundlewrap.conf': { - 'content_type': 'mako', - 'triggers': { - 'svc_systemd:lldpd:restart', + files = { + '/etc/lldpd.conf': { + 'delete': True, }, - }, -} + '/etc/lldpd.d/bundlewrap.conf': { + 'content_type': 'mako', + 'triggers': { + 'svc_systemd:lldpd:restart', + }, + }, + } -svc_systemd = { - 'lldpd': { - 'needs': { - 'file:/etc/lldpd.d/bundlewrap.conf', + svc_systemd = { + 'lldpd': { + 'needs': { + 'file:/etc/lldpd.d/bundlewrap.conf', + }, }, - }, -} + }