@require_context
@require_instance_exists_using_uuid
def virtual_interface_get_by_instance(context, instance_uuid):
 vif_refs = _virtual_interface_query(context).filter_by(instance_uuid=instance_uuid).all()
 return vif_refs

@ require_context @ require_instance_exists_using_uuid def virtual_interface_get_by_instance ( context , instance_uuid ) : vif_refs = _virtual_interface_query ( context ) . filter_by ( instance_uuid = instance_uuid ) . all ( ) return vif_refs
gets all virtual interfaces for instance .