'Tests the following:
1. Create a port in Neutron.
2. Create two servers in Nova.
3. Attach the port to the first server.
4. Detach the port from the first server.
5. Attach the port to the second server.
6. Detach the port from the second server.'

@decorators.skip_because(bug='1607714')
@decorators.idempotent_id('2f3a0127-95c7-4977-92d2-bc5aec602fb4')
def test_reassign_port_between_servers(self):

    network = self.get_tenant_network()
    network_id = network['id']
    port = self.ports_client.create_port(network_id=network_id)
    port_id = port['port']['id']
    self.addCleanup(self.ports_client.delete_port, port_id)
    (_, servers) = compute.create_test_server(self.os_primary, tenant_network=network, wait_until='ACTIVE', min_count=2)
    for server in servers:
        self.addCleanup(self.delete_server, server['id'])
    for server in servers:
        iface = self.interfaces_client.create_interface(server['id'], port_id=port_id)['interfaceAttachment']
        self._check_interface(iface, port_id=port_id)
        self.interfaces_client.delete_interface(server['id'], port_id)
        self.wait_for_port_detach(port_id)
