Skip to content

Commit

Permalink
fixed path for all xcvr example
Browse files Browse the repository at this point in the history
Change-Id: Icd22d0ddf18a19ca05823d8ae344f02e63cbe1bc
  • Loading branch information
cca42 committed Sep 27, 2024
1 parent ec05318 commit ef16c8c
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("goVendorInfo") | field("vendorSn")))
let filteredXcvrStat = xcvrStatus | map(_value | mapne(_value, _value | field("actualIdEepromContents") | 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(\"goVendorInfo\") | 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(\"actualIdEepromContents\") | 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("goVendorInfo") | field("vendorSn")))
let xcvrStatus = data | map(_value | mapne(_value, _value | field("actualIdEepromContents") | 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(\"goVendorInfo\") | 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(\"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",
"graphConfig": {
"columns": {
"key": {
Expand Down

0 comments on commit ef16c8c

Please sign in to comment.