def delete_network_postcommit(self, context):
segments = context.network_segments<EOL>network_name = context.current['<STR_LIT:name>']<EOL>for segment in segments:<EOL><INDENT>if not self.check_segment(segment):<EOL><INDENT>return  <EOL><DEDENT>vlan_id = segment.get(api.SEGMENTATION_ID)<EOL>if not vlan_id:<EOL><INDENT>return  <EOL><DEDENT>port_profile = self.make_profile_name(vlan_id)<EOL>trunk_vlans = (<EOL>CONF.sriov_multivlan_trunk.network_vlans.get(network_name, []))<EOL>self.driver.delete_all_config_for_vlan(vlan_id, port_profile,<EOL>trunk_vlans)<EOL><DEDENT>
Delete all configuration added to UCS Manager for the vlan_id.