Development

This commit is contained in:
Matthew Grotke 2026-05-27 02:33:50 -04:00
parent 83d0223c02
commit a59d96942e

View file

@ -309,7 +309,8 @@ def _config_datasource(name):
_n_octets = 1 if _prefix >= 24 else 2 if _prefix >= 16 else 3 if _prefix >= 8 else 4
row['server_identity_ips'] = json.dumps([
{
'n': s['ip'], 'd': s['ip'],
'n': s['ip'],
'd': ' | '.join(filter(None, [s['ip'], s.get('description'), s.get('hostname')])),
'short': '.' + '.'.join(s['ip'].split('.')[-_n_octets:]),
'mini': '.' + '.'.join(s['ip'].split('.')[-_n_octets:]),
}