Development
This commit is contained in:
parent
83d0223c02
commit
a59d96942e
1 changed files with 2 additions and 1 deletions
|
|
@ -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:]),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue