#NEWLINE# def delete_router_precommit( self , context , router_id ) : #NEWLINE# #INDENT# context . _plugin = self #NEWLINE# with apic_mapper . mapper_context ( context ) as ctx : #NEWLINE# #INDENT# arouter_id = ( router_id and self . name_mapper . router ( ctx , router_id ) ) #NEWLINE# #UNINDENT# self . manager . delete_router ( arouter_id )