def net_device_verification(net_device):
 print_attr = ['hostname', 'ip', 'username', 'password', 'device_type', 'vendor', 'model', 'os_version', 'uptime', 'serial_number']
 for field in print_attr:
  val = getattr(net_device, field)
  print ('%15s: %-40s' % (field, val))
 print

def net_device_verification ( net_device ) : print_attr = [ 'hostname' , 'ip' , 'username' , 'password' , 'device_type' , 'vendor' , 'model' , 'os_version' , 'uptime' , 'serial_number' ] for field in print_attr : val = getattr ( net_device , field ) print ( '%15s: %-40s' % ( field , val ) ) print
prints out a set of attributes for a networkdevice object .