diff options
author | Michael Elkins <melkins@tislabs.com> | 2011-06-15 15:32:05 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2011-06-15 15:32:05 +0000 |
commit | f0fdd26f9f65562ce6f01b7f651a172c5028a55d (patch) | |
tree | 90ae90d849bbbd0fb7dcd7e24ac101feccf113f8 /rpkid/rpki/gui/app/glue.py | |
parent | 227b335cafb9455ce095e1eaf7c73785c695aafe (diff) |
no longer write csv files when calling configure_resources
svn path=/rpkid/rpki/gui/app/glue.py; revision=3877
Diffstat (limited to 'rpkid/rpki/gui/app/glue.py')
-rw-r--r-- | rpkid/rpki/gui/app/glue.py | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/rpkid/rpki/gui/app/glue.py b/rpkid/rpki/gui/app/glue.py index cc2ed607..f4947e06 100644 --- a/rpkid/rpki/gui/app/glue.py +++ b/rpkid/rpki/gui/app/glue.py @@ -70,10 +70,6 @@ def output_roas(path, handle): '%s-group-%d' % (handle.handle, req.roa.pk)] for req in qs) w.close() -def qualify_path(pfx, fname): - """Ensure 'path' is an absolute filename.""" - return fname if fname.startswith('/') else os.path.join(pfx, fname) - def build_rpkid_caller(cfg, verbose=False): """ Returns a function suitable for calling rpkid using the @@ -130,18 +126,8 @@ def configure_resources(log, handle): holder have changed. It updates IRDB and notifies rpkid to immediately process the changes, rather than waiting for the cron job to run. - - For backwards compatability (and backups), it also writes the csv - files for use with the myrpki.py command line script. """ - path = confpath(handle.handle) - cfg = rpki.config.parser(os.path.join(path, 'rpki.conf'), 'myrpki') - - output_asns(qualify_path(path, cfg.get('asn_csv')), handle) - output_prefixes(qualify_path(path, cfg.get('prefix_csv')), handle) - output_roas(qualify_path(path, cfg.get('roa_csv')), handle) - roa_requests = [] for roa in handle.roas.all(): v4 = rpki.resource_set.roa_prefix_set_ipv4() @@ -182,8 +168,7 @@ def configure_resources(log, handle): ghostbusters.append((None, vcard)) # for hosted handles, get the config for the irdbd/rpkid host - if handle.host: - cfg = rpki.config.parser(confpath(handle.host.handle, 'rpki.conf'), 'myrpki') + cfg = rpki.config.parser(confpath(handle.host.handle if handle.host else handle.handle, 'rpki.conf'), 'myrpki') irdb = IRDB(cfg) irdb.update(handle, roa_requests, children, ghostbusters) |