def ifconfigTest(net):
 hosts = net.hosts
 for host in hosts:
  info(host.cmd('ifconfig'))

def ifconfigTest ( net ) : hosts = net . hosts for host in hosts : info ( host . cmd ( 'ifconfig' ) )
run ifconfig on all hosts in net .