def getIfStats(self):
info_dict = {}<EOL>try:<EOL><INDENT>fp = open(ifaceStatsFile, '<STR_LIT:r>')<EOL>data = fp.read()<EOL>fp.close()<EOL><DEDENT>except:<EOL><INDENT>raise IOError('<STR_LIT>'<EOL>% ifaceStatsFile)<EOL><DEDENT>for line in data.splitlines():<EOL><INDENT>mobj = re.match('<STR_LIT>', line)<EOL>if mobj:<EOL><INDENT>iface = mobj.group(<NUM_LIT:1>)<EOL>statline = mobj.group(<NUM_LIT:2>)<EOL>info_dict[iface] = dict(zip(<EOL>('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>[int(x) for x in statline.split()]))<EOL><DEDENT><DEDENT>return info_dict<EOL>
Return dictionary of Traffic Stats for Network Interfaces.

        @return: Nested dictionary of statistics for each interface.