diff options
author | Rob Austein <sra@hactrn.net> | 2014-11-08 23:24:53 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-11-08 23:24:53 +0000 |
commit | 158637f6aa4bdd4870cdfce4a0efa659a8b7d260 (patch) | |
tree | 9432440d91f5007227bfdd1b37e31ab3cdc0404c | |
parent | 8b13b423496eeeecd394f7ce3e29ce578784006b (diff) |
Clean up unused exceptions left over from some refactoring expedition
or another.
svn path=/branches/tk705/; revision=6013
-rw-r--r-- | rpki/left_right.py | 13 | ||||
-rw-r--r-- | rpki/rpkic.py | 6 |
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): |