#NEWLINE# def _remove_rule_from_chain( self , ext_dev , rule , im , label_chain , rules_chain ) : #NEWLINE# #INDENT# ipt_rule = self . _prepare_rule ( ext_dev , rule , label_chain ) #NEWLINE# if rule [ 'excluded' ] : #NEWLINE# #INDENT# im . ipv4 [ 'filter' ] . remove_rule ( rules_chain , ipt_rule , wrap = False , top = True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# im . ipv4 [ 'filter' ] . remove_rule ( rules_chain , ipt_rule , wrap = False , top = False )