#NEWLINE# def detach_interface( self , instance , vif ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# del self . _interfaces [ instance [ 'id' ] ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise exception . InterfaceDetachFailed ( instance_uuid = instance . uuid )