diff options
author | Rob Austein <sra@hactrn.net> | 2016-04-12 19:24:25 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-04-12 19:24:25 +0000 |
commit | e785735a8792ccbc3ef65cc57e41cffaaeec3be1 (patch) | |
tree | 55414ff32b2d7a8095fdc9ebf860ebcf3cac666b /ca/tests/yamltest.py | |
parent | 3f6960a9e36e2be697a1d4311186bb11e5edca97 (diff) |
Change default handling of <group> when parsing ROA requests from CSV:
if <group> column is omitted, we now use the <pnm> value as the
<group>, in effect requesting a separate ROA for each ROA request,
which is almost certainly what the user wanted. Explictly specifying
the <group> value should still work, in case anybody still needs
multi-prefix ROAs for testing or other purposes.
svn path=/trunk/; revision=6359
Diffstat (limited to 'ca/tests/yamltest.py')
-rw-r--r-- | ca/tests/yamltest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ca/tests/yamltest.py b/ca/tests/yamltest.py index 0932049b..7de7b675 100644 --- a/ca/tests/yamltest.py +++ b/ca/tests/yamltest.py @@ -380,9 +380,9 @@ class allocation(object): fn = "%s.roas.csv" % d.name if not args.skip_config: f = self.csvout(fn) - for g1, r in enumerate(self.roa_requests): - f.writerows((p, r.asn, "G%08d%08d" % (g1, g2)) - for g2, p in enumerate((r.v4 + r.v6 if r.v4 and r.v6 else r.v4 or r.v6 or ()))) + for r in self.roa_requests: + f.writerows((p, r.asn) + for p in (r.v4 + r.v6 if r.v4 and r.v6 else r.v4 or r.v6 or ())) f.close() if not args.stop_after_config: self.run_rpkic("load_roa_requests", fn) |