aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/irdb/zookeeper.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2012-04-24 23:53:25 +0000
committerRob Austein <sra@hactrn.net>2012-04-24 23:53:25 +0000
commit36939bd171339f5f3a4b9b74c724409f6393c200 (patch)
tree8046507414967d915bbc2113855157b499f9fafd /rpkid/rpki/irdb/zookeeper.py
parenteba09c0cd43fac0c36edcf5e2d79ad9c7096fa44 (diff)
Add Zookeeper.publish_world_now() and rpkic force_publication. Closes #27.
svn path=/trunk/; revision=4452
Diffstat (limited to 'rpkid/rpki/irdb/zookeeper.py')
-rw-r--r--rpkid/rpki/irdb/zookeeper.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/rpkid/rpki/irdb/zookeeper.py b/rpkid/rpki/irdb/zookeeper.py
index 7cd9020e..d172e18e 100644
--- a/rpkid/rpki/irdb/zookeeper.py
+++ b/rpkid/rpki/irdb/zookeeper.py
@@ -912,7 +912,7 @@ class Zookeeper(object):
"""
Poke rpkid to immediately run the cron job for the current handle.
- This method is used by the gui when a user has changed something in the
+ This method is used by the GUI when a user has changed something in the
IRDB (ghostbuster, roa) which does not require a full synchronize() call,
to force the object to be immediately issued.
"""
@@ -921,6 +921,15 @@ class Zookeeper(object):
action = "set", self_handle = self.handle, run_now = "yes"))
+ def publish_world_now(self):
+ """
+ Poke rpkid to (re)publish everything for the current handle.
+ """
+
+ self.call_rpkid(rpki.left_right.self_elt.make_pdu(
+ action = "set", self_handle = self.handle, publish_world_now = "yes"))
+
+
def call_pubd(self, *pdus):
"""
Issue a call to pubd, return result.