def _configure_port_entries(self, port, vlan_id, device_id, host_id, vni,<EOL>is_provider_vlan):
connections = self._get_active_port_connections(port, host_id)<EOL>vlan_already_created = []<EOL>starttime = time.time()<EOL>for switch_ip, intf_type, nexus_port, is_native, _ in connections:<EOL><INDENT>try:<EOL><INDENT>all_bindings = nxos_db.get_nexusvlan_binding(<EOL>vlan_id, switch_ip)<EOL><DEDENT>except excep.NexusPortBindingNotFound:<EOL><INDENT>LOG.warning("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>",<EOL>{'<STR_LIT>': switch_ip, '<STR_LIT>': vlan_id})<EOL>continue<EOL><DEDENT>previous_bindings = [row for row in all_bindings<EOL>if row.instance_id != device_id]<EOL>if previous_bindings and (switch_ip in vlan_already_created):<EOL><INDENT>duplicate_type = const.DUPLICATE_VLAN<EOL><DEDENT>else:<EOL><INDENT>vlan_already_created.append(switch_ip)<EOL>duplicate_type = const.NO_DUPLICATE<EOL><DEDENT>port_starttime = time.time()<EOL>try:<EOL><INDENT>self._configure_port_binding(<EOL>is_provider_vlan, duplicate_type,<EOL>is_native,<EOL>switch_ip, vlan_id,<EOL>intf_type, nexus_port,<EOL>vni)<EOL><DEDENT>except Exception:<EOL><INDENT>with excutils.save_and_reraise_exception():<EOL><INDENT>self.driver.capture_and_print_timeshot(<EOL>port_starttime, "<STR_LIT>",<EOL>switch=switch_ip)<EOL>self.driver.capture_and_print_timeshot(<EOL>starttime, "<STR_LIT>",<EOL>switch=switch_ip)<EOL><DEDENT><DEDENT>self.driver.capture_and_print_timeshot(<EOL>port_starttime, "<STR_LIT>",<EOL>switch=switch_ip)<EOL><DEDENT>self.driver.capture_and_print_timeshot(<EOL>starttime, "<STR_LIT>")<EOL>
Create a nexus switch entry.

        if needed, create a VLAN in the appropriate switch or port and
        configure the appropriate interfaces for this VLAN.

        Called during update postcommit port event.