def interface_stats(self, instance_name, iface_id):
    'Note that this function takes an instance name.'
    domain = self._lookup_by_name(instance_name)
    return domain.interfaceStats(iface_id)
Note that this function takes an instance name.
def interface_stats(self, instance_name, iface_id):
    
    domain = self._lookup_by_name(instance_name)
    return domain.interfaceStats(iface_id)