aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rpkid/README4
-rw-r--r--rpkid/rpki/up_down.py8
2 files changed, 9 insertions, 3 deletions
diff --git a/rpkid/README b/rpkid/README
index 2dd9599e..075b0d39 100644
--- a/rpkid/README
+++ b/rpkid/README
@@ -85,7 +85,6 @@ TO DO:
STATUS: Started
-
- Resource subsetting (req_* attributes in up-down protocol),
minimal implementation. Recognize this as correct protocol
and signal an internal server error if ever used.
@@ -94,8 +93,7 @@ TO DO:
TIME REQUIRED: Two days
- STATUS: Not started
-
+ STATUS: code written, not yet tested.
- ROA generation code. First cut at this seems to work and
output looks right, but this hasn't been tested properly yet
diff --git a/rpkid/rpki/up_down.py b/rpkid/rpki/up_down.py
index 5dbc1e7c..2de62a56 100644
--- a/rpkid/rpki/up_down.py
+++ b/rpkid/rpki/up_down.py
@@ -267,6 +267,14 @@ class issue_pdu(base_elt):
def serve_pdu(self, q_msg, r_msg, child):
"""Serve one issue request PDU."""
+ # Subsetting not yet implemented, this is the one place where we
+ # have to handle it, by reporting that we're lame.
+
+ if self.req_resource_set_as or \
+ self.req_resource_set_ipv4 or \
+ self.req_resource_set_ipv6:
+ raise rpki.exceptions.NotImplementedYet, "req_* attributes not implemented yet, sorry"
+
# Check the request
ca = child.ca_from_class_name(self.class_name)
ca_detail = ca.fetch_active()