#NEWLINE# def _remove_internal_nw_nat_rules( self , ri , ports , ext_port , intf_deleted = False ) : #NEWLINE# #INDENT# '\n        Removes the NAT rules already configured when an internal network is\n        removed.\n\n        :param ri          -- router-info object\n        :param ports       -- list of affected ports where network nat rules\n                              was affected\n        :param ext_port    -- external facing port\n        :param intf_deleted-- If True, indicates that the subinterface was\n                              deleted.\n        ' #NEWLINE# acls = [ ] #NEWLINE# for port in ports : #NEWLINE# #INDENT# in_itfc_name = self . _get_interface_name_from_hosting_port ( port ) #NEWLINE# inner_vlan = self . _get_interface_vlan_from_hosting_port ( intf_deleted ) #NEWLINE# acls . append ( self . _get_acl_name_from_vlan ( inner_vlan ) ) #NEWLINE# if ( not intf_deleted ) : #NEWLINE# #INDENT# self . _remove_interface_nat ( in_itfc_name , 'inside' ) #NEWLINE# #UNINDENT# #UNINDENT# vrf_name = self . _get_vrf_name ( ri ) #NEWLINE# ext_itfc_name = self . _get_interface_name_from_hosting_port ( ext_port ) #NEWLINE# for acl in acls : #NEWLINE# #INDENT# self . _remove_dyn_nat_rule ( acl , ext_itfc_name , vrf_name )