aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/left_right.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpkid/rpki/left_right.py')
-rw-r--r--rpkid/rpki/left_right.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/rpkid/rpki/left_right.py b/rpkid/rpki/left_right.py
index 8a5e3433..66bfa8d1 100644
--- a/rpkid/rpki/left_right.py
+++ b/rpkid/rpki/left_right.py
@@ -855,6 +855,19 @@ class route_origin_elt(data_elt):
"""Generate <route_origin/> element."""
return self.make_elt()
+ def generate_roa(self, gctx):
+ """Generate a ROA based on this <route_origin/> object."""
+ content = rpki.roa.RouteOriginAttestation()
+ content.version.set(0)
+ content.asID.set(self.as_number)
+ content.exactMatch.set(self.exact_match)
+
+ # Probably want to (tags-query-replace "to_tuple" "to_rfc3779_tuple")
+ # then create parallel functions "to_roa_tuple" (or whatever) for
+ # use here, since syntax is similar but not identical.
+
+ raise rpki.exceptions.NotImplementedYet
+
class list_resources_elt(base_elt):
"""<list_resources/> element."""