From dcfd0f47e6212057d6b63a9b4d8c03d2ca65540e Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 28 Sep 2023 21:28:00 +0200 Subject: [PATCH] [PR #7318/fbebcbad backport][stable-7] Add LinkStatus to Ethernet Interface attribute list (#7324) Add LinkStatus to Ethernet Interface attribute list (#7318) * Add LinkStatus to Ethernet Interface attribute list * Add changelog fragment --------- Co-authored-by: Pierre-yves FONTANIERE (cherry picked from commit fbebcbada5ee2b0f6b3486ebab4a07c90dcc2ae3) Co-authored-by: Pierre-yves Fontaniere --- .../7318-add-linkstatus-attribute-to-nic-inventory.yml | 2 ++ plugins/module_utils/redfish_utils.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/7318-add-linkstatus-attribute-to-nic-inventory.yml diff --git a/changelogs/fragments/7318-add-linkstatus-attribute-to-nic-inventory.yml b/changelogs/fragments/7318-add-linkstatus-attribute-to-nic-inventory.yml new file mode 100644 index 0000000000..b67531577d --- /dev/null +++ b/changelogs/fragments/7318-add-linkstatus-attribute-to-nic-inventory.yml @@ -0,0 +1,2 @@ +minor_changes: + - redfish_info - adds ``LinkStatus`` to NIC inventory (https://github.com/ansible-collections/community.general/pull/7318). diff --git a/plugins/module_utils/redfish_utils.py b/plugins/module_utils/redfish_utils.py index fc6e11b3e7..b09a1b5b04 100644 --- a/plugins/module_utils/redfish_utils.py +++ b/plugins/module_utils/redfish_utils.py @@ -2460,7 +2460,7 @@ class RedfishUtils(object): result = {} properties = ['Name', 'Id', 'Description', 'FQDN', 'IPv4Addresses', 'IPv6Addresses', 'NameServers', 'MACAddress', 'PermanentMACAddress', - 'SpeedMbps', 'MTUSize', 'AutoNeg', 'Status'] + 'SpeedMbps', 'MTUSize', 'AutoNeg', 'Status', 'LinkStatus'] response = self.get_request(self.root_uri + resource_uri) if response['ret'] is False: return response