#NEWLINE# def remove_port_filter( self , port ) : #NEWLINE# #INDENT# LOG . debug ( 'Removing device (%s) filter' , port [ 'device' ] ) #NEWLINE# if ( port [ 'device' ] not in self . ports ) : #NEWLINE# #INDENT# LOG . info ( _LI ( 'Attempted to remove port filter which is not filtered %r' ) , self ) #NEWLINE# return #NEWLINE# #UNINDENT# self . _remove_chains ( ) #NEWLINE# self . _unset_ports ( port ) #NEWLINE# self . _setup_chains ( ) #NEWLINE# return self . iptables . apply ( )