@add_to_dict(_after_create_functions)
def after_VIF_create(vif_ref, vif_rec):
 vm_ref = vif_rec['VM']
 vm_rec = _db_content['VM'][vm_ref]
 vm_rec['VIFs'].append(vif_ref)

@ add_to_dict ( _after_create_functions ) def after_VIF_create ( vif_ref , vif_rec ) : vm_ref = vif_rec [ 'VM' ] vm_rec = _db_content [ 'VM' ] [ vm_ref ] vm_rec [ 'VIFs' ] . append ( vif_ref )
create backref from vm to vif when vif is created .