def add_nexusport_binding(port_id, vlan_id, switch_ip, instance_id):
 LOG.debug(_('add_nexusport_binding() called'))
 session = db.get_session()
 binding = nexus_models_v2.NexusPortBinding(port_id, vlan_id, switch_ip, instance_id)
 session.add(binding)
 session.flush()
 return binding

def add_nexusport_binding ( port_id , vlan_id , switch_ip , instance_id ) : LOG . debug ( _ ( 'add_nexusport_binding() called' ) ) session = db . get_session ( ) binding = nexus_models_v2 . NexusPortBinding ( port_id , vlan_id , switch_ip , instance_id ) session . add ( binding ) session . flush ( ) return binding
adds a nexusport binding .