diff options
author | Rob Austein <sra@hactrn.net> | 2012-05-07 02:55:00 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-05-07 02:55:00 +0000 |
commit | 9f4a94e7389f77f3286aaae0c6e7bae3a15c282c (patch) | |
tree | 23db3d7c8c7c99c816486a2e00b7b20098ec67d0 /rpkid/rpki/up_down.py | |
parent | 88e404f1e303fc9e4b4439f301f29fc66643c21e (diff) | |
parent | 636e3c590c96e0f0ab0c95a6982a5056e2cea9fd (diff) |
Merge to trunk. Testbed changes and a few bugfixes that came along
while tracking down testbed issues. See #33.
svn path=/trunk/; revision=4473
Diffstat (limited to 'rpkid/rpki/up_down.py')
-rw-r--r-- | rpkid/rpki/up_down.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rpkid/rpki/up_down.py b/rpkid/rpki/up_down.py index 0eba6b52..4fd06edd 100644 --- a/rpkid/rpki/up_down.py +++ b/rpkid/rpki/up_down.py @@ -251,14 +251,18 @@ class list_pdu(base_elt): r_msg.payload = list_response_pdu() - if irdb_resources.valid_until > rpki.sundial.now(): + if irdb_resources.valid_until < rpki.sundial.now(): + rpki.log.debug("Child %s's resources expired %s" % child.child_handle, irdb_resources.valid_until) + else: for parent in child.parents: for ca in parent.cas: ca_detail = ca.active_ca_detail if not ca_detail: + rpki.log.debug("No active ca_detail, can't issue to %s" % child.child_handle) continue resources = ca_detail.latest_ca_cert.get_3779resources().intersection(irdb_resources) if resources.empty(): + rpki.log.debug("No overlap between received resources and what child %s should get ([%s], [%s])" % (child.child_handle, ca_detail.latest_ca_cert.get_3779resources(), irdb_resources)) continue rc = class_elt() rc.class_name = str(ca.ca_id) |