#NEWLINE# def get_network_interfaces( vm_obj ) : #NEWLINE# #INDENT# vif_types = [ 'VirtualEthernetCard' , 'VirtualE1000' , 'VirtualE1000e' , 'VirtualPCNet32' , 'VirtualVmxnet' ] #NEWLINE# vifs = [ ] #NEWLINE# for device in vm_obj . properties . config . hardware . device : #NEWLINE# #INDENT# if ( device . _type in vif_types ) : #NEWLINE# #INDENT# vifs . append ( device ) #NEWLINE# #UNINDENT# #UNINDENT# return vifs