Guest User

Untitled

a guest
Apr 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. def get_vtu_map_smi():
  2. # Open the Vlan Config File
  3. try:
  4. f = open('/tmp/vlan.config', 'r')
  5. except IOError as e:
  6. return "No Vlan Configuration Available: %s\n" % e
  7. str= f.read();
  8. str = str.strip() # Strip White Space Characters from start and End of Line
  9. smi = str.split('S')
  10.  
  11.  
  12.  
  13. buildmaster@buildmaster:~/svn_main/klish-scripts$ python -tt tftp_server.py
  14. Traceback (most recent call last):
  15. File "tftp_server.py", line 11, in <module>
  16. import krtutils
  17. File "/home/buildmaster/svn_main/klish-scripts/krtutils.py", line 10, in <module>
  18. import hal
  19. File "/home/buildmaster/svn_main/klish-scripts/hal.py", line 233
  20. except IOError as e:
  21. ^
  22. SyntaxError: invalid syntax
Add Comment
Please, Sign In to add comment