def get_if_out_bytes(self): return [[name, speed] for name, speed in zip(self.get_ifs(), [ if_speed[1] for if_speed in snmpv2_getnext( self.ip, self.ro, "1.3.6.1.2.1.2.2.1.16", port=161) ])]
def get_ifs(self): return [ if_name[1] for if_name in snmpv2_getnext( self.ip, self.ro, "1.3.6.1.2.1.2.2.1.2", port=161) ]