Commit graph

11 commits

Author SHA1 Message Date
Jan-Philipp Litza 6fc1423124 Make handling of node attributes more flexible.
This commit makes Nodes special dicts that return None-like objects for
inexistent keys, making it a dynamic attribute store.

Also, it removes the D3MapBuilder and moves its logic to the Node and
Link classes' newly introduced export() method. Only they need to be
changed to populate the final nodes.json with more attributes.
2014-07-06 20:03:10 +02:00
Nils Schneider ac3366ff13 count clients and add clientcount attribute to each node 2014-04-10 17:17:11 +02:00
Nils Schneider 914836eb9a alfred.py: pass firmware version to nodes.json 2014-02-02 23:30:16 +01:00
Nils Schneider bbf9b599fe remove unused vpn flag 2012-09-21 02:49:27 +02:00
Nils Schneider b1eaf86d30 lots of changes to support inter-node vpn links 2012-06-11 23:53:45 +02:00
Nils Schneider 523384d64c remove group foo and replace it with flags 2012-06-07 22:21:50 +02:00
Nils Schneider c7b33a4839 ensure unique ids for links and nodes 2012-06-06 03:34:52 +02:00
Nils Schneider ccf4c96ae0 use primary mac as node id 2012-06-04 17:33:23 +02:00
Nils Schneider f05e6a3a26 geomap support 2012-05-12 16:44:27 +02:00
Nils Schneider 08187766b1 add gps attribute 2012-05-12 14:57:57 +02:00
root d23736d0f5 move Link and Node to seperate files 2012-05-11 14:12:41 +02:00