diff options
author | Michael Elkins <melkins@tislabs.com> | 2016-04-21 21:23:25 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2016-04-21 21:23:25 +0000 |
commit | 40c34bb6427f634ee4c9fc4fe7539d7f993abc19 (patch) | |
tree | 879330015ac72897ec06de39eef4586933958d38 /ca/rpkigui-rcynic | |
parent | e7129a3c7e5e7bfaf0bc63140200a3bb847446ac (diff) |
Update the GUI to work with the new rcynicdb.
svn path=/branches/tk705/; revision=6365
Diffstat (limited to 'ca/rpkigui-rcynic')
-rwxr-xr-x | ca/rpkigui-rcynic | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/ca/rpkigui-rcynic b/ca/rpkigui-rcynic index 79afb15f..c753fc5e 100755 --- a/ca/rpkigui-rcynic +++ b/ca/rpkigui-rcynic @@ -1,7 +1,7 @@ #!/usr/bin/env python # Copyright (C) 2011 SPARTA, Inc. dba Cobham -# Copyright (C) 2012, 2013 SPARTA, Inc. a Parsons Company +# Copyright (C) 2012, 2013, 2016 SPARTA, Inc. a Parsons Company # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -17,17 +17,13 @@ __version__ = '$Id$' -# probably should be exported from rpki.gui.cacheview.util -default_logfile = '/var/rcynic/data/rcynic.xml' -default_root = '/var/rcynic/data' - import logging import sys from rpki.gui.script_util import setup setup() -from rpki.gui.cacheview.util import import_rcynic_xml +from rpki.gui.gui_rpki_cache.util import update_cache if __name__ == '__main__': import optparse @@ -35,20 +31,12 @@ if __name__ == '__main__': parser = optparse.OptionParser() parser.add_option("-l", "--level", dest="log_level", default='ERROR', help="specify the logging level [default: %default]") - parser.add_option( - "-f", "--file", dest="logfile", - help="specify the rcynic XML file to parse [default: %default]", - default=default_logfile) - parser.add_option( - "-r", "--root", - help="specify the chroot directory for the rcynic jail [default: %default]", - metavar="DIR", default=default_root) options, args = parser.parse_args(sys.argv) v = getattr(logging, options.log_level.upper()) logging.basicConfig(level=v) logging.info('log level set to %s', logging.getLevelName(v)) - import_rcynic_xml(options.root, options.logfile) + update_cache() logging.shutdown() |