Skip to content

Instantly share code, notes, and snippets.

@waynew
Created March 27, 2018 13:53
Show Gist options
  • Select an option

  • Save waynew/df3349ab33f6c228dda641adaed3b013 to your computer and use it in GitHub Desktop.

Select an option

Save waynew/df3349ab33f6c228dda641adaed3b013 to your computer and use it in GitHub Desktop.
Helping someone on SO
import io
f = io.StringIO('''
Subnet - 2.48.2.0:
51=691200
3=2.48.2.1
15=dc.xyz.com
6=2.48.113.188,165.72.12.2
5=2.48.113.188,165.72.12.2
43=3a020064ff
Subnet - 2.48.4.0:
51=691200
3=2.48.4.1
15=dc.xyz.com
6=2.48.113.188,165.72.12.2
242=L2Q=1,L2QVLAN=746
Subnet - 2.48.184.0:
51=691200
3=2.48.184.1
6=2.48.113.188,165.72.12.2
15=dc.xyz.com
5=2.48.113.188,165.72.12.2
43=3a020064ff
'''.strip())
print(f.read().split('\n\n'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment