Skip to content

xe pif-list would usefuly report host-uuid param by default #5263

@ydirson

Description

@ydirson

In a pool we can naturally have the same interface name on several hosts; xe pif-list by default would not allow to distinguish between interfaces of similar names on different hosts, it would be useful to have host-uuid be part of the default printed parameters:

# xe pif-list uuid=b0e4b993-daea-bd53-34c5-7c1159a9109c
uuid ( RO)                  : b0e4b993-daea-bd53-34c5-7c1159a9109c
                device ( RO): eth2
    currently-attached ( RO): true
                  VLAN ( RO): 10
          network-uuid ( RO): 6c4e1cdc-9fe0-0603-e53d-4790d1fce8dd


# xe pif-list uuid=4f831d0d-73af-413f-6e71-893690c8e68d
uuid ( RO)                  : 4f831d0d-73af-413f-6e71-893690c8e68d
                device ( RO): eth2
    currently-attached ( RO): true
                  VLAN ( RO): 10
          network-uuid ( RO): 6c4e1cdc-9fe0-0603-e53d-4790d1fce8dd

OTOH:

# xe pif-list uuid=4f831d0d-73af-413f-6e71-893690c8e68d params=uuid,host-uuid
uuid ( RO)         : 4f831d0d-73af-413f-6e71-893690c8e68d
    host-uuid ( RO): 0aea61f4-c9d1-4060-94e8-4eb2024d082c


# xe pif-list uuid=b0e4b993-daea-bd53-34c5-7c1159a9109c params=uuid,host-uuid
uuid ( RO)         : b0e4b993-daea-bd53-34c5-7c1159a9109c
    host-uuid ( RO): f26eb0a5-1d91-4682-ae58-96df405a3af6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions