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:
@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user