#NEWLINE# @ utils . synchronized ( 'l3-agent-pd' ) #NEWLINE# def remove_stale_ri_ifname( self , router_id , stale_ifname ) : #NEWLINE# #INDENT# router = self . routers . get ( router_id ) #NEWLINE# if ( router is not None ) : #NEWLINE# #INDENT# for ( subnet_id , pd_info ) in router [ 'subnets' ] . items ( ) : #NEWLINE# #INDENT# if ( pd_info . ri_ifname == stale_ifname ) : #NEWLINE# #INDENT# self . _delete_pd ( router , pd_info ) #NEWLINE# del router [ 'subnets' ] [ subnet_id ]