def _configure_port_binding(self, is_provider_vlan, duplicate_type,<EOL>is_native,<EOL>switch_ip, vlan_id,<EOL>intf_type, nexus_port, vni):
<EOL>if duplicate_type == const.DUPLICATE_PORT:<EOL><INDENT>return<EOL><DEDENT>auto_create, auto_trunk = self._gather_config_parms(<EOL>is_provider_vlan, vlan_id)<EOL>if duplicate_type == const.DUPLICATE_VLAN:<EOL><INDENT>auto_create = False<EOL><DEDENT>if auto_create and auto_trunk:<EOL><INDENT>LOG.debug("<STR_LIT>", vlan_id)<EOL>self.driver.create_and_trunk_vlan(<EOL>switch_ip, vlan_id, intf_type,<EOL>nexus_port, vni, is_native)<EOL><DEDENT>elif auto_create:<EOL><INDENT>LOG.debug("<STR_LIT>", vlan_id)<EOL>self.driver.create_vlan(switch_ip, vlan_id, vni)<EOL><DEDENT>elif auto_trunk:<EOL><INDENT>LOG.debug("<STR_LIT>", vlan_id)<EOL>self.driver.send_enable_vlan_on_trunk_int(<EOL>switch_ip, vlan_id,<EOL>intf_type, nexus_port, is_native)<EOL><DEDENT>
Conditionally calls vlan and port Nexus drivers.