aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/sql.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2008-04-12 06:39:34 +0000
committerRob Austein <sra@hactrn.net>2008-04-12 06:39:34 +0000
commita3ed48964537a25d6b199ef4ec252fb1aba093bb (patch)
tree3b29b808020cf4f2aaa3c244c17a45f7b75438f2 /rpkid/rpki/sql.py
parent9c9991894debd129ed3116382599424ebf3a782a (diff)
Checkpoint. "make test" works again, but ROA maintenance code isn't
really right yet. svn path=/rpkid/rpki/left_right.py; revision=1658
Diffstat (limited to 'rpkid/rpki/sql.py')
-rw-r--r--rpkid/rpki/sql.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/rpkid/rpki/sql.py b/rpkid/rpki/sql.py
index f9f58e4f..3a9d552d 100644
--- a/rpkid/rpki/sql.py
+++ b/rpkid/rpki/sql.py
@@ -449,8 +449,7 @@ class ca_detail_obj(sql_persistant):
for child_cert in predecessor.child_certs():
child_cert.reissue(self)
for route_origin in predecessor.route_origins():
- if route_origin.roa:
- raise rpki.exceptions.NotImplementedYet, "Don't (yet) know how to reissue ROAs"
+ route_origin.reissue_roa()
def delete(self, ca, repository):
"""Delete this ca_detail and all of the certs it issued."""
@@ -461,8 +460,7 @@ class ca_detail_obj(sql_persistant):
for revoked__cert in self.revoked_certs():
revoked_cert.sql_delete()
for route_origin in self.route_origins():
- if route_origin.roa:
- raise rpki.exceptions.NotImplementedYet, "Don't (yet) know how to withdraw ROAs"
+ route_origin.withdraw_roa()
repository.withdraw(self.latest_manifest, self.manifest_uri(ca))
repository.withdraw(self.latest_crl, self.crl_uri())
self.sql_delete()