def delete_all_config_for_vlan(self, vlan_id, port_profile,<EOL>trunk_vlans):
ucsm_ips = list(CONF.ml2_cisco_ucsm.ucsms)<EOL>for ucsm_ip in ucsm_ips:<EOL><INDENT>with self.ucsm_connect_disconnect(ucsm_ip) as handle:<EOL><INDENT>LOG.debug('<STR_LIT>', vlan_id,<EOL>ucsm_ip)<EOL>if (port_profile):<EOL><INDENT>self._delete_port_profile(handle, port_profile, ucsm_ip)<EOL><DEDENT>ucsm = CONF.ml2_cisco_ucsm.ucsms[ucsm_ip]<EOL>if ucsm.sp_template_list:<EOL><INDENT>self._remove_vlan_from_all_sp_templates(handle,<EOL>vlan_id,<EOL>ucsm_ip)<EOL><DEDENT>if ucsm.vnic_template_list:<EOL><INDENT>self._remove_vlan_from_vnic_templates(handle,<EOL>vlan_id,<EOL>ucsm_ip)<EOL><DEDENT>if not (ucsm.sp_template_list and<EOL>ucsm.vnic_template_list):<EOL><INDENT>self._remove_vlan_from_all_service_profiles(handle,<EOL>vlan_id,<EOL>ucsm_ip)<EOL><DEDENT>self._delete_vlan_profile(handle, vlan_id, ucsm_ip)<EOL>if trunk_vlans:<EOL><INDENT>for vlan_id in trunk_vlans:<EOL><INDENT>self._delete_vlan_profile(handle, vlan_id, ucsm_ip)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Top level method to delete all config for vlan_id.