Guest User

Untitled

a guest
Apr 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. def update_vlan_file ():
  2.         hardware_configuration = ["SMI0", "SMI1"]  # First two lines of file
  3.         hardware_configuration += readvtu("1")     # Append hardware config
  4.         try:
  5.                 f = open('/tmp/vlan.config', 'w')  
  6.         except IOError as e:
  7.                 return "Could not update Vlan Configuration\n"
  8.         map(f.write, hardware_configuration)
  9.     f.close()
Add Comment
Please, Sign In to add comment