aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rpki/left_right.py13
-rw-r--r--rpki/rpkic.py6
2 files changed, 13 insertions, 6 deletions
diff --git a/rpki/left_right.py b/rpki/left_right.py
index 9fc1fc48..a97d864f 100644
--- a/rpki/left_right.py
+++ b/rpki/left_right.py
@@ -346,6 +346,19 @@ class self_elt(data_elt):
Handle a left-right publish_world_now action for this self.
"""
+ # This probably needs find out what's already published and
+ # compute the difference before attempting to make any changes.
+ # Just blindly overwriting doesn't work anymore, and probably
+ # never should have.
+
+ # The current loop doesn't appear to do anything asynchronous, so
+ # it could become a plain old for loop. Polling all the
+ # repositories to find out what's published, however, will require
+ # talking to pubd(s). This polling looks a lot like what we
+ # already do with publication_queue, might be worth generalizing
+ # since this probably is not the only place where we need recovery
+ # logic. Which, hmm, suggests that we might need to refactor.
+
publisher = rpki.rpkid.publication_queue()
def loop(iterator, parent):
diff --git a/rpki/rpkic.py b/rpki/rpkic.py
index d5b7895a..417c53fe 100644
--- a/rpki/rpkic.py
+++ b/rpki/rpkic.py
@@ -51,12 +51,6 @@ from lxml.etree import Element, SubElement
from rpki.cli import Cmd, parsecmd, cmdarg
-class BadPrefixSyntax(Exception): "Bad prefix syntax."
-class CouldntTalkToDaemon(Exception): "Couldn't talk to daemon."
-class BadXMLMessage(Exception): "Bad XML message."
-class PastExpiration(Exception): "Expiration date has already passed."
-class CantRunRootd(Exception): "Can't run rootd."
-
module_doc = __doc__
class main(Cmd):