diff options
author | Rob Austein <sra@hactrn.net> | 2009-04-01 21:07:08 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-04-01 21:07:08 +0000 |
commit | aec71f8e3f01ed71e100eb9bb1bc3a0ddf382c46 (patch) | |
tree | c8f291823e994a98aa20bfb6b3381bcb56dcabac /rtr-origin/updater.py | |
parent | 8145d94a2b21e8d48958a1f17600650c64d626df (diff) |
Checkpoint
svn path=/rtr-origin/updater.py; revision=2299
Diffstat (limited to 'rtr-origin/updater.py')
-rwxr-xr-x | rtr-origin/updater.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/rtr-origin/updater.py b/rtr-origin/updater.py index e6bacd87..80d2130b 100755 --- a/rtr-origin/updater.py +++ b/rtr-origin/updater.py @@ -369,16 +369,16 @@ class prefix_set(list): def test(): - p1 = prefix_set.parse_rcynic("../rcynic/rcynic-data/authenticated") - p1.save_axfr() - - time.sleep(5) + axfrs = [prefix_set.load_axfr(f) for f in glob.glob("*.ax")] - p2 = prefix_set.parse_rcynic("../rpkid/testbed.dir/rcynic-data/authenticated") - p2.save_axfr() - p2.save_ixfr(p1) + for dir in ("../rcynic/rcynic-data/authenticated", "../rpkid/testbed.dir/rcynic-data/authenticated"): + p = prefix_set.parse_rcynic(dir) + p.save_axfr() + for a in axfrs: + p.save_ixfr(a) + axfrs.append(p) + time.sleep(2) - axfrs = [prefix_set.load_axfr(f) for f in glob.glob("*.ax")] ixfrs = [prefix_set.load_ixfr(f) for f in glob.glob("*.ix.*")] def pp(serial): |