diff options
author | Michael Elkins <melkins@tislabs.com> | 2012-02-15 18:51:48 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2012-02-15 18:51:48 +0000 |
commit | 95b4ce6e98deb1c668d166941dd805e4e4808afd (patch) | |
tree | fdac71e7ee923db56252dba598cc733611c32319 /rpkid/rpki/irdb/zookeeper.py | |
parent | d2af9d7afbbf29a626093ab461bea425e9b6ecf4 (diff) |
poke rpkid to run its cron job after creating/deleting roas or gbrs
svn path=/branches/tk161/; revision=4337
Diffstat (limited to 'rpkid/rpki/irdb/zookeeper.py')
-rw-r--r-- | rpkid/rpki/irdb/zookeeper.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rpkid/rpki/irdb/zookeeper.py b/rpkid/rpki/irdb/zookeeper.py index 4816b40e..bc255186 100644 --- a/rpkid/rpki/irdb/zookeeper.py +++ b/rpkid/rpki/irdb/zookeeper.py @@ -885,6 +885,18 @@ class Zookeeper(object): return call_rpkid(*pdus) + def run_rpkid_now(self): + """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 + IRDB (ghostbuster, roa) which does not require a full `synchronize()` call, + to force the object to be immediately issued. + + """ + self.call_rpkid(rpki.left_right.self_elt.make_pdu( + action = "set", self_handle = self.handle, run_now = "yes")) + + def call_pubd(self, *pdus): """ Issue a call to pubd, return result. |