From 8a95dfa90ab0ce7fc0675a48594bb37a272dfd29 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 1 May 2021 10:05:24 +0200 Subject: [PATCH] nodes/home.downloadhelper: restrict lldp to vlan 42 --- bundles/lldp/files/bundlewrap.conf | 4 ++++ nodes/home/downloadhelper.py | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/bundles/lldp/files/bundlewrap.conf b/bundles/lldp/files/bundlewrap.conf index 32b38fe..25cfdd1 100644 --- a/bundles/lldp/files/bundlewrap.conf +++ b/bundles/lldp/files/bundlewrap.conf @@ -8,3 +8,7 @@ configure system hostname "${node.metadata.get('lldp/hostname', node.name)}" configure system platform "${node.os}" + +% if node.metadata.get('lldp/interfaces', set()): +configure system interface pattern "${','.join(sorted(node.metadata.get('lldp/interfaces')))}" +% endif diff --git a/nodes/home/downloadhelper.py b/nodes/home/downloadhelper.py index 37321fc..3037ca2 100644 --- a/nodes/home/downloadhelper.py +++ b/nodes/home/downloadhelper.py @@ -29,6 +29,11 @@ nodes['home.downloadhelper'] = { 'backups': { 'exclude_from_backups': True, }, + 'lldp': { + 'interfaces': { + 'enp1s0.42', + }, + }, 'netdata': { 'restrict-to': { '172.19.136.0/22',