Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for returning the backing port of a Nic object #1451

Closed
andy-maier opened this issue Feb 19, 2024 · 0 comments · Fixed by #1452
Closed

Support for returning the backing port of a Nic object #1451

andy-maier opened this issue Feb 19, 2024 · 0 comments · Fixed by #1452

Comments

@andy-maier
Copy link
Member

andy-maier commented Feb 19, 2024

Since NICs can be vswitch-based or port-based, it is cumbersome for users to get the backing adapter and port of a NIC.

Provide a convenient way to get the backing adapter port, e.g. a new Nic.backing_port() method.

This would be useful in a stop-gap solution to issue zhmcclient/zhmc-prometheus-exporter#450

@andy-maier andy-maier self-assigned this Feb 19, 2024
@andy-maier andy-maier added this to the 1.15.0 milestone Feb 19, 2024
andy-maier added a commit that referenced this issue Feb 19, 2024
Details:

* Added new method Nic.backing_port() to return the backing adapter port
  of the NIC. (issue #1451)

* Added end2end testcases for both port-based and vswitch-based
  NICs.

Signed-off-by: Andreas Maier <[email protected]>
andy-maier added a commit that referenced this issue Feb 19, 2024
Details:

* Added new method Nic.backing_port() to return the backing adapter port
  of the NIC. (issue #1451)

* Added unit and end2end testcases for both port-based and vswitch-based
  NICs.

Signed-off-by: Andreas Maier <[email protected]>
@andy-maier andy-maier linked a pull request Feb 19, 2024 that will close this issue
andy-maier added a commit that referenced this issue Feb 22, 2024
Details:

* Added new method Nic.backing_port() to return the backing adapter port
  of the NIC. (issue #1451)

* Added unit and end2end testcases for both port-based and vswitch-based
  NICs.

Signed-off-by: Andreas Maier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant