'Tests that the CLI defaults to \'auto\' when --nic isn\'t specified.'

def test_boot_server_with_auto_network(self):

    if self.multiple_networks:
        self.skipTest('multiple    networks    available')
    server_info = self.nova('boot', params=('%(name)s    --flavor    %(flavor)s    --poll    --image    %(image)s    ' % {'name': self.name_generate('server'), 'flavor': self.flavor.id, 'image': self.image.id}))
    server_id = self._get_value_from_the_table(server_info, 'id')
    self.addCleanup(self.wait_for_resource_delete, server_id, self.client.servers)
    self.addCleanup(self.client.servers.delete, server_id)
    server_info = self.nova('show', params=server_id)
    network = self._find_network_in_table(server_info)
    self.assertIsNotNone(network, ('Auto-allocated    network    not    found:    %s' % server_info))
