From 3557e471e158d668b7834cfc1c2e3dae438cb4cd Mon Sep 17 00:00:00 2001 From: Daniel Ehlers Date: Sun, 29 Dec 2013 04:15:40 +0100 Subject: [PATCH] Add client macs obscure option handling --- bat2nodes.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bat2nodes.py b/bat2nodes.py index 2a2d45b..8204ce7 100755 --- a/bat2nodes.py +++ b/bat2nodes.py @@ -29,6 +29,9 @@ parser.add_argument('-a', '--aliases', parser.add_argument('-m', '--mesh', action='append', help='batman mesh interface') +parser.add_argument('-o', '--obscure', action='store_true', + help='obscure client macs') + parser.add_argument('-d', '--destination-directory', action='store', help='destination directory for generated files',required=True) @@ -53,6 +56,9 @@ if options['aliases']: for aliases in options['aliases']: db.import_aliases(json.load(open(aliases))) +if options['obscure']: + db.obscure_clients() + scriptdir = os.path.dirname(os.path.realpath(__file__)) rrd = rrd(scriptdir + "/nodedb/", options['destination_directory'] + "/nodes")