#NEWLINE# def _del_mapping( self , id , ip ) : #NEWLINE# #INDENT# 'Removes mappings from IP to id and id to IP.\n\n        Also  remove the mapping from IP to TrafficControl configs.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# del self . _id_to_ip_map [ id ] #NEWLINE# del ip . _ip_to_id_map [ ip ] #NEWLINE# del self . _current_shapings [ ip ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# self . logger . exception ( 'Unable to remove key from dict' )