def netdevs():
with open('<STR_LIT>') as f:<EOL><INDENT>net_dump = f.readlines()<EOL><DEDENT>device_data={}<EOL>data = namedtuple('<STR_LIT:data>',['<STR_LIT>','<STR_LIT>'])<EOL>for line in net_dump[<NUM_LIT:2>:]:<EOL><INDENT>line = line.split('<STR_LIT::>')<EOL>if line[<NUM_LIT:0>].strip() != '<STR_LIT>':<EOL><INDENT>device_data[line[<NUM_LIT:0>].strip()] = data(float(line[<NUM_LIT:1>].split()[<NUM_LIT:0>])/(<NUM_LIT>*<NUM_LIT>), <EOL>float(line[<NUM_LIT:1>].split()[<NUM_LIT:8>])/(<NUM_LIT>*<NUM_LIT>))<EOL><DEDENT><DEDENT>return device_data<EOL>
RX and TX bytes for each of the network devices