Fix two bugs in asset_ilines.py

- use .wrap, not .fill when printing AS-SET
- fix a bug when one does not add '-l' (LOCAL) asns, populate the LOCAL as-set with a string, not an int.


git-svn-id: svn+ssh://svn.ipng.nl/usr/share/subversion/repositories/ircnet.ipng.ch@58 c5d60b8d-fdcb-4146-b734-af4215e9eb71
This commit is contained in:
ircnet
2011-03-12 22:51:51 +00:00
parent 93b976a237
commit be934a26fe
2 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ def main():
"AS-IP-MAN-PEERING-SWISSIX"]
_class = 200
_output = None
_asns = [20932]
_asns = ['20932']
for o,a in opts:
if o == "-h" or o == "-help":
@ -177,7 +177,7 @@ def main():
for _asset in _data['as-set']:
ofile.write("# %s:\n# %s\n" %
(_asset, "\n# ".join(textwrap.fill(
(_asset, "\n# ".join(textwrap.wrap(
', '.join(_data['as-set'][_asset])))))
ofile.write("#\n\n")