Skip to content

Commit

Permalink
changed path :
Browse files Browse the repository at this point in the history
-actualIdEepromContents
+vendorInfo

Change-Id: I13f0944a277ecd2b0194b4e8b71cc431d79e79be
  • Loading branch information
cca42 committed Oct 1, 2024
1 parent ef16c8c commit c899bb2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docsrc/examples/system_health/xcvr_sn_list.aql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
let xcvrStatus = `*:/Sysdb/hardware/archer/xcvr/status/all/*`
let filteredXcvrStat = xcvrStatus | map(_value | mapne(_value, _value | field("actualIdEepromContents") | field("vendorSn")))
let filteredXcvrStat = xcvrStatus | map(_value | mapne(_value, _value | field("vendorInfo") | field("vendorSn")))
filteredXcvrStat | map(_value | mapne(_value, _value[0]))
2 changes: 1 addition & 1 deletion docsrc/examples/system_health/xcvr_sn_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"type": "aql-query-widget",
"inputs": {
"expression": "let xcvrStatus = `*:/Sysdb/hardware/archer/xcvr/status/all/*`\nlet filteredXcvrStat = xcvrStatus | map(_value | mapne(_value, _value | field(\"actualIdEepromContents\") | field(\"vendorSn\")))\nfilteredXcvrStat | map(_value | mapne(_value, _value[0]))\n",
"expression": "let xcvrStatus = `*:/Sysdb/hardware/archer/xcvr/status/all/*`\nlet filteredXcvrStat = xcvrStatus | map(_value | mapne(_value, _value | field(\"vendorInfo\") | field(\"vendorSn\")))\nfilteredXcvrStat | map(_value | mapne(_value, _value[0]))\n",
"graphConfig": {
"columns": {
"key": {
Expand Down
2 changes: 1 addition & 1 deletion docsrc/examples/system_health/xcvr_sn_list_filtered.aql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let data = `*:/Sysdb/hardware/archer/xcvr/status/all/*`
let xcvrStatus = data | map(_value | mapne(_value, _value | field("actualIdEepromContents") | field("vendorSn")))
let xcvrStatus = data | map(_value | mapne(_value, _value | field("vendorInfo") | field("vendorSn")))
let xcvrStatus = xcvrStatus | map(_value | mapne(_value[0], _value))

xcvrStatus | map(_value | where(reMatch(_value, _regexInput))) | where(length(_value) > 0)
2 changes: 1 addition & 1 deletion docsrc/examples/system_health/xcvr_sn_list_filtered.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"type": "aql-query-widget",
"inputs": {
"expression": "let data = `*:/Sysdb/hardware/archer/xcvr/status/all/*`\nlet xcvrStatus = data | map(_value | mapne(_value, _value | field(\"actualIdEepromContents\") | field(\"vendorSn\")))\nlet xcvrStatus = xcvrStatus | map(_value | mapne(_value[0], _value))\n\nlet filteredXcvrStat = newDict()\n\nfor deviceKey, deviceValue in xcvrStatus {\n filteredXcvrStat[deviceKey] = newDict()\n for interfaceKey, interfaceValue in deviceValue {\n if reMatch(interfaceValue, _regexInput){\n filteredXcvrStat[deviceKey][interfaceKey] = interfaceValue\n\n }\n }\n if length(filteredXcvrStat[deviceKey]) == 0 {\n dictRemove(filteredXcvrStat, deviceKey)\n }\n}\n\nfilteredXcvrStat\n",
"expression": "let data = `*:/Sysdb/hardware/archer/xcvr/status/all/*`\nlet xcvrStatus = data | map(_value | mapne(_value, _value | field(\"vendorInfo\") | field(\"vendorSn\")))\nlet xcvrStatus = xcvrStatus | map(_value | mapne(_value[0], _value))\n\nlet filteredXcvrStat = newDict()\n\nfor deviceKey, deviceValue in xcvrStatus {\n filteredXcvrStat[deviceKey] = newDict()\n for interfaceKey, interfaceValue in deviceValue {\n if reMatch(interfaceValue, _regexInput){\n filteredXcvrStat[deviceKey][interfaceKey] = interfaceValue\n\n }\n }\n if length(filteredXcvrStat[deviceKey]) == 0 {\n dictRemove(filteredXcvrStat, deviceKey)\n }\n}\n\nfilteredXcvrStat\n",
"graphConfig": {
"columns": {
"key": {
Expand Down

0 comments on commit c899bb2

Please sign in to comment.