aboutsummaryrefslogtreecommitdiff
path: root/rpkid
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-04-02 01:30:35 +0000
committerRob Austein <sra@hactrn.net>2014-04-02 01:30:35 +0000
commitc8e73df71a7be6c71e9fa2acee619c8d6e026f05 (patch)
tree4fc01e07ac9d6435112e2a67e48c589adae7b17a /rpkid
parenta70b53c2170ff8610b89bb62eddbc82c152980f8 (diff)
Different approach to forced-reissue script, using irbe_cli batching.
svn path=/branches/tk671/; revision=5729
Diffstat (limited to 'rpkid')
-rw-r--r--rpkid/upgrade-scripts/upgrade-irdbd-to-0.5678.py26
1 files changed, 12 insertions, 14 deletions
diff --git a/rpkid/upgrade-scripts/upgrade-irdbd-to-0.5678.py b/rpkid/upgrade-scripts/upgrade-irdbd-to-0.5678.py
index d381995b..1aa8fa95 100644
--- a/rpkid/upgrade-scripts/upgrade-irdbd-to-0.5678.py
+++ b/rpkid/upgrade-scripts/upgrade-irdbd-to-0.5678.py
@@ -41,25 +41,23 @@ import rpki.autoconf
time.sleep(10)
-rpkic = os.path.join(rpki.autoconf.sbindir, "rpkic")
+rpkic = os.path.join(rpki.autoconf.sbindir, "rpkic")
+irbe_cli = os.path.join(rpki.autoconf.sbindir, "irbe_cli")
handles = subprocess.check_output((rpkic, "list_self_handles")).splitlines()
+argv = [irbe_cli]
for handle in handles:
+ argv.extend(("self", "--self_id", handle, "--action", "set",
+ "--rekey", "--reissue", "--run_now"))
+subprocess.check_call(argv)
- print "Processing", handle
-
- print "Asking parent to reissue with new key"
- subprocess.check_call((rpkic, "-i", handle, "up_down_rekey"))
-
- print "Asking parent to revoke old key"
- subprocess.check_call((rpkic, "-i", handle, "up_down_revoke"))
- time.sleep(10)
-
- print "Reissuing everything"
- subprocess.check_call((rpkic, "-i", handle, "force_reissue"))
+time.sleep(10)
- print "Forcing publication"
- subprocess.check_call((rpkic, "-i", handle, "force_publication"))
+argv = [irbe_cli]
+for handle in handles:
+ argv.extend(("self", "--self_id", handle, "--action", "set",
+ "--revoke", "--reissue", "--run_now", "--publish_world_now"))
+subprocess.check_call(argv)
''')