Add client macs obscure option handling

alfred-data
Daniel Ehlers 2013-12-29 04:15:40 +01:00
parent 90106313eb
commit 3557e471e1
1 changed files with 6 additions and 0 deletions

View File

@ -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")