def add_nexusport_binding(port_id, vlan_id, vni, switch_ip, instance_id,<EOL>is_native=False, ch_grp=<NUM_LIT:0>):
LOG.debug("<STR_LIT>")<EOL>session = bc.get_writer_session()<EOL>binding = nexus_models_v2.NexusPortBinding(port_id=port_id,<EOL>vlan_id=vlan_id,<EOL>vni=vni,<EOL>switch_ip=switch_ip,<EOL>instance_id=instance_id,<EOL>is_native=is_native,<EOL>channel_group=ch_grp)<EOL>session.add(binding)<EOL>session.flush()<EOL>return binding<EOL>
Adds a nexusport binding.