Skip to content

Include network interfaces in instance response (no pagination needed) #1009

Open

Description

@david-crespo

I believe there's a maximum of 8 or 6 or some small number, so there's no need to paginate.

let interfaces = nexus
.instance_list_network_interfaces(
&opctx,
&organization_name,
&project_name,
&instance_name,
&data_page_params_for(&rqctx, &query)?
.map_name(|n| Name::ref_cast(n)),
)
.await?
.into_iter()
.map(|d| d.into())
.collect();
Ok(HttpResponseOk(ScanByName::results_page(&query, interfaces)?))

Activity

  1. added
    api
    nexus
    on May 4, 2022
  2. rmustacc commented on May 4, 2022

    @rmustacc

    Correct, right now there is a max of 8 per instance (related to PCI hotplug).

  3. david-crespo commented on May 5, 2025

    @david-crespo
    ContributorAuthor

    It's fine as-is.

  4. karencfv commented on May 5, 2025

    @karencfv
    Contributor

    It'd be really nice if they weren't paginated. That way they could be included as part of the Instance object. Is it OK to reopen this issue?

  5. changed the title [-]Network interfaces for instance don't need to be paginated[/-] [+]Include network interfaces in instance response (no pagination needed)[/+] on May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apinexus

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions