Nils Schneider
428a9731e0
README: removing owner info using jq
2015-04-01 23:33:00 +02:00
Nils Schneider
7f198980b6
introduce GRAPH_VERSION and NODES_VERSION
2015-04-01 18:06:12 +02:00
Nils Schneider
c9098b1793
set version of nodes.json to 1
2015-04-01 17:55:27 +02:00
Nils Schneider
ebde2fcba2
create dest_dir if needed
...
fixes #48
2015-04-01 17:41:40 +02:00
Nils Schneider
bb2aa112c3
make pep8 happy
2015-04-01 17:34:35 +02:00
Nils Schneider
29e2647ad5
ignored the wrong pep8 error code
2015-04-01 17:16:32 +02:00
Nils Schneider
206ea3d6ef
update travis.yml to ignore PEP8 E113 Line-Length
2015-04-01 01:50:35 +02:00
Nils Schneider
dd8f6b92af
drop batctl vd json legacy support
...
fixes #47
2015-04-01 01:36:31 +02:00
Nils Schneider
98d4618156
fix pruning
2015-03-26 14:21:11 +01:00
Nils Schneider
c93d6c0192
Merge pull request #45 from mweinelt/pull2
...
Update argument parser
2015-03-26 14:14:34 +01:00
Martin Weinelt
5b5f4a5d74
fix pep8 line-length in argparser help
2015-03-26 14:12:50 +01:00
Martin Weinelt
a1fe27fc51
Update argument parser
...
* --mesh (-m) now accepts the interface:alfred_sock syntax to add multiple batman/alfred instances. Also multiple instances can be added at once now. Only one interface can be added without alfred socket support (available since 2014.4.0) though.
* --alfred-sock (-s) was dropped in favor of the new --mesh syntax, which adds the interface to socket relationship
* --vpn (-V) now accepts multiple mac addresses, ATTENTION: update your calls accordingly
* --prune defaults to int now
* --with-rrd was renamed from --rrd, to better reflect its boolean/toggle like state
2015-03-26 01:53:44 +01:00
Nils Schneider
e9c693c4c0
Merge pull request #43 from mweinelt/master
...
update batman interface handling in backend.py, add commenting
2015-03-25 15:38:03 +01:00
Martin Weinelt
9df369e88a
update batman interface handling in backend.py, add commenting
2015-03-25 15:14:58 +01:00
Nils Schneider
30670feb31
Merge pull request #42 from mweinelt/master
...
pep8, batadv-vis socket support, batman gateway handling refactored
2015-03-25 14:43:04 +01:00
Martin Weinelt
eb26ea9a5f
pep8: fix remaining line length issues and update travis to include lib/*.py
2015-03-25 14:33:54 +01:00
Martin Weinelt
8d4856db56
lib/batman: refactor gateway handling
2015-03-25 14:11:00 +01:00
Martin Weinelt
e3e5ae1615
Merge branch 'master' of https://github.com/ffnord/ffmap-backend
2015-03-25 14:07:45 +01:00
Martin Weinelt
b143e3f2e5
batman: add batadv-vis socket support, needs at least alfred 2014.4.0
2015-03-25 13:27:54 +01:00
Nils Schneider
dfccd01b69
Merge pull request #41 from mweinelt/master
...
fix regressions in alfred.py
2015-03-24 23:26:55 +01:00
Martin Weinelt
90ab26d50b
fix regressions in alfred.py
2015-03-24 23:17:24 +01:00
Nils Schneider
79ec0eb9d9
Merge pull request #40 from mweinelt/master
...
Update package structure, add alfred socket support
2015-03-24 22:50:51 +01:00
Martin Weinelt
6fba8ad21b
add alfred socket support (--alfred-sock)
2015-03-24 22:48:00 +01:00
Martin Weinelt
c74b7b95fb
update package structure, move non-executables to lib
2015-03-24 22:10:54 +01:00
Nils Schneider
629adc13cb
create RRDs only when --rrd
2015-03-24 18:48:05 +01:00
Nils Schneider
bd943e4360
Merge branch 'master' of https://github.com/mweinelt/ffmap-backend into mweinelt-master
2015-03-24 18:36:11 +01:00
Martin Weinelt
3c1140ebdf
travis-ci: add pep8 check
2015-03-24 18:31:23 +01:00
Martin Weinelt
84746de048
backend.py: use argparser to set mesh default, join paths with os.path.join
2015-03-24 18:31:23 +01:00
Martin Weinelt
10e10944a5
fix alot of pep8
2015-03-24 18:31:23 +01:00
Martin Weinelt
9a8d40ea9a
update .gitignore
2015-03-24 18:20:28 +01:00
Martin Weinelt
efcefd8928
alfred.py: remove superfluous shebang
2015-03-24 18:19:31 +01:00
Nils Schneider
15a0f71847
alfred.py: remove unused function aliases
2015-03-24 18:18:40 +01:00
Martin Weinelt
3dd2a9e325
travis-ci: add pep8 check
2015-03-24 18:06:54 +01:00
Martin Weinelt
309971f1b0
batman.py: fix broken identation caused by previous commit
2015-03-24 17:58:06 +01:00
Martin Weinelt
1fb61db963
backend.py: use argparser to set mesh default, join paths with os.path.join
2015-03-24 17:50:36 +01:00
Martin Weinelt
d4a7c83553
update .gitignore
2015-03-24 17:41:12 +01:00
Martin Weinelt
e66731154b
pep8: some line length fixes
2015-03-24 17:41:02 +01:00
Martin Weinelt
5b14ed5ad9
alfred.py: remove superfluous shebang
2015-03-24 17:31:44 +01:00
Martin Weinelt
e098cd8d77
alfred.py: better ask for forgiveness, than permission
2015-03-24 17:00:35 +01:00
Martin Weinelt
3291b2b6ba
fix alot of pep8
2015-03-24 16:49:37 +01:00
Nils Schneider
9195ea9650
make mesh_interfaces optional
2015-03-21 15:17:50 +01:00
Nils Schneider
3ddecd26bf
fix lastseen handling of non-alfred nodes
2015-03-21 10:37:09 +01:00
Nils Schneider
2a2db65bc6
update README
2015-03-21 01:26:56 +01:00
Nils Schneider
41ee81d92c
alfred: restructure code, add nodeinfo, statistics, vis
2015-02-24 13:34:22 +01:00
Nils Schneider
9257aa01a6
drop ffhlwiki and mkmap
2015-02-24 13:34:22 +01:00
Nils Schneider
474a374cd6
Merge pull request #37 from NoMoKeTo/patch-1
...
How about a less confusing repr?
2015-02-21 19:40:43 +01:00
Nils Martin Klünder
71c2417b9d
How about a less confusing repr?
...
„WTF, why is this a string?”
2015-02-21 19:17:49 +01:00
Nils Schneider
45d920850e
Merge pull request #36 from thisco-de/master
...
Fixes iteration over chars in maybe_node_by_mac() when processing neighbor entries
2015-02-01 14:25:54 +01:00
Stefan Laudemann
b3c629264a
Changes try-except-blocks around maybe_nody_by_*() calls to only catch KeyError exceptions.
...
Semantically, all the implemented error handling for the try-except-
blocks around calls to "maybe_node_by_mac()" or "maybe_node_by_id()" in
nodedb.py only handle the case that a particular MAC address cannot be
found in the list of known nodes. If such a MAC address cannot be found
in this list, the methods properly indicate this by raising a KeyError.
However, all the try-except-block generically catch all exceptions and
thus may cover other problems. But not only that problems might be
covered by this, generic try-except-blocks make finding errors and de-
bugging quite painful.
Hence, these try-except-blocks should only catch KeyErrors or at least
have an error handling that differs from other exceptions.
2015-02-01 13:50:01 +01:00
Stefan Laudemann
94f7256564
Adds missing comma to pass (x['neighbor'], ) as tuple (not as str).
...
As Python interprets "(elem)" as string and not as tuple,
maybe_node_by_mac() iterates over the single characters in the MAC-
addressed passed as parameter when called parse_vis_data(). Most of the
calls already use the "(elem, )" syntax to indicate that a tuple is
passed. However, there is still one call for which this is not the case
causing a noticable longer runtime due to calls to maybe_node_by_mac()
that cannot yield any useful result.
2015-02-01 13:47:07 +01:00