aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/testbed.py4
-rw-r--r--scripts/testpoke.py10
2 files changed, 8 insertions, 6 deletions
diff --git a/scripts/testbed.py b/scripts/testbed.py
index 990e3150..c87c81b2 100644
--- a/scripts/testbed.py
+++ b/scripts/testbed.py
@@ -568,8 +568,8 @@ class allocation(object):
def run_yaml(self):
"""Run YAML scripts for this leaf entity."""
rpki.log.info("Running YAML for %s" % self.name)
- subprocess.check_call((prog_python, prog_poke, "-c", self.name + ".yaml", "-r", "list"))
- subprocess.check_call((prog_python, prog_poke, "-c", self.name + ".yaml", "-r", "issue"))
+ subprocess.check_call((prog_python, prog_poke, "-y", self.name + ".yaml", "-r", "list"))
+ subprocess.check_call((prog_python, prog_poke, "-y", self.name + ".yaml", "-r", "issue"))
def setup_biz_cert_chain(name):
"""Build a set of business certs."""
diff --git a/scripts/testpoke.py b/scripts/testpoke.py
index 1af03a72..1a35c08d 100644
--- a/scripts/testpoke.py
+++ b/scripts/testpoke.py
@@ -5,9 +5,11 @@ Trivial RPKI up-down protocol client, for testing.
Configuration file is YAML to be compatable with APNIC rpki_poke.pl tool.
-Usage: python testpoke.py [ { -c | --config } configfile ] [ { -r | --request } requestname ] [ { -h | --help } ]
+Usage: python testpoke.py [ { -y | --yaml } configfile ]
+ [ { -r | --request } requestname ]
+ [ { -h | --help } ]
-Default configuration file is testpoke.yaml, override with --config option.
+Default configuration file is testpoke.yaml, override with --yaml option.
"""
import traceback, os, time, getopt, sys, lxml, yaml
@@ -25,11 +27,11 @@ def usage(code):
yaml_file = "testpoke.yaml"
yaml_cmd = None
-opts,argv = getopt.getopt(sys.argv[1:], "c:r:h?", ["config=", "request=", "help"])
+opts,argv = getopt.getopt(sys.argv[1:], "y:r:h?", ["yaml=", "request=", "help"])
for o,a in opts:
if o in ("-h", "--help", "-?"):
usage(0)
- elif o in ("-c", "--config"):
+ elif o in ("-y", "--yaml"):
yaml_file = a
elif o in ("-r", "--request"):
yaml_cmd = a