From 8066efb923d59aa05adf1fc288bbb6c9bcd7bf06 Mon Sep 17 00:00:00 2001 From: CroneKorkN Date: Wed, 3 Dec 2025 22:34:11 +0100 Subject: [PATCH] routeros: also add comment to interface --- bundles/routeros/items.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bundles/routeros/items.py b/bundles/routeros/items.py index f888fda..9898e4e 100644 --- a/bundles/routeros/items.py +++ b/bundles/routeros/items.py @@ -87,8 +87,13 @@ for port_name, port_conf in node.metadata.get('routeros/ports').items(): }, } + routeros[f'/interface?name={port_name}'] = { + '_comment': port_conf.get('description', ''), + } + if comment := port_conf.get('comment', None): routeros[f'/interface/bridge/port?interface={port_name}']['_comment'] = comment + routeros[f'/interface?name={port_name}']['_comment'] = comment # create IPs for ip, ip_conf in node.metadata.get('routeros/ips').items():