diff options
author | Rob Austein <sra@hactrn.net> | 2013-07-19 03:33:28 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2013-07-19 03:33:28 +0000 |
commit | 0c56fd46f3a82590865e629b44e8fa75e5453524 (patch) | |
tree | 28165a54fa64b1fb9f4b7296a512baee369e930e | |
parent | e23673c1c6ce32754d77dfc08976bd4c5abb769c (diff) |
Push updated BPKI CRL into pubd at the same time as we're pushing
updated BSCs into rpkid.
svn path=/trunk/; revision=5441
-rw-r--r-- | rpkid/rpki/irdb/zookeeper.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/rpkid/rpki/irdb/zookeeper.py b/rpkid/rpki/irdb/zookeeper.py index c5a17eb3..3cd5311d 100644 --- a/rpkid/rpki/irdb/zookeeper.py +++ b/rpkid/rpki/irdb/zookeeper.py @@ -461,11 +461,11 @@ class Zookeeper(object): def synchronize_bpki(self): """ Synchronize BPKI updates. At the moment this just means pushing - BSC certificates out to rpkid. This is separate from - .update_bpki() because this requires rpkid to be running and none - of the other BPKI update stuff does; there may be circumstances - under which it makes sense to do the rest of the BPKI update and - allow this to fail with a warning. + BSC certificates out to rpkid and a BPKI CRL to pubd. This is + separate from .update_bpki() because this requires rpkid to be + running and none of the other BPKI update stuff does; there may be + circumstances under which it makes sense to do the rest of the + BPKI update and allow this to fail with a warning. """ updates = tuple( @@ -481,6 +481,12 @@ class Zookeeper(object): if updates: self.check_error_report(self.call_rpkid(updates)) + if self.run_pubd: + self.check_error_report(self.call_pubd(rpki.publication.config_elt.make_pdu( + action = "set", + bpki_crl = self.server_ca.latest_crl))) + + @django.db.transaction.commit_on_success def configure_child(self, filename, child_handle = None, valid_until = None): """ |