[Nokia] Update Nokia platform IXR7250E device data (#11611)

Signed-off-by: mlok <marty.lok@nokia.com>
This commit is contained in:
Marty Y. Lok 2022-10-10 21:49:26 -04:00 committed by GitHub
parent 304c6c80c4
commit 9d37b63824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 132 additions and 2 deletions

View File

@ -0,0 +1,19 @@
{
"module": {
"LINE-CARD": {
"component": {}
},
"SUPERVISOR0": {
"component": {}
}
},
"chassis": {
"Nokia-IXR7250E-36x400G": {
"component": {
"FPGA2": {},
"FPGA1": {},
"BIOS": {}
}
}
}
}

View File

@ -1,8 +1,8 @@
{
"options": [
{
"key": "sfp_init_tx_en",
"stringval": "yes"
"key": "module_direct_ipc_ue",
"stringval": "no"
},
{
"key": "midplane_subnet",
@ -39,6 +39,10 @@
{
"key": "enable_firmware_update",
"intval": 0
},
{
"key": "sonic_log_level",
"stringval": "error"
}
]
}

View File

@ -1,5 +1,24 @@
#!/bin/bash
update_reboot_cause_for_supervisor_reboot()
{
DEVICE_MGR_REBOOT_FILE=/tmp/device_mgr_reboot
REBOOT_CAUSE_FILE=/host/reboot-cause/reboot-cause.txt
TMP_REBOOT_CAUSE_FILE=/tmp/tmp-reboot-cause.txt
if [ -f $DEVICE_MGR_REBOOT_FILE ]; then
if [ -f $REBOOT_CAUSE_FILE ]; then
t1=`sudo grep "User: ," $REBOOT_CAUSE_FILE`
if [ ! -z "$t1" ]; then
echo $t1 | sed 's/reboot/reboot from Supervisor/g' | sed 's/User: /User: admin/g' > $TMP_REBOOT_CAUSE_FILE
cp $TMP_REBOOT_CAUSE_FILE $REBOOT_CAUSE_FILE
fi
fi
fi
}
# update the reboot_cuase file when reboot is trigger by device-mgr
update_reboot_cause_for_supervisor_reboot
systemctl stop nokia-watchdog.service
sleep 2
echo "w" > /dev/watchdog

View File

@ -7,6 +7,9 @@
},
{
"name": "FPGA1"
},
{
"name": "SFM-FPGA"
}
],
"watchdog": {

View File

@ -0,0 +1,81 @@
{
"chassis": {
"Nokia-IXR7250E-SUP-10": {
"component": {
"BIOS": { },
"FPGA1": { },
"SFM-FPGA": { }
}
}
},
"module": {
"SUPERVISOR0": {
"component": {
}
},
"LINE-CARD0": {
"component": {
}
},
"LINE-CARD1": {
"component": {
}
},
"LINE-CARD2": {
"component": {
}
},
"LINE-CARD3": {
"component": {
}
},
"LINE-CARD4": {
"component": {
}
},
"LINE-CARD5": {
"component": {
}
},
"LINE-CARD6": {
"component": {
}
},
"LINE-CARD7": {
"component": {
}
},
"FABRIC-CARD0": {
"component": {
}
},
"FABRIC-CARD1": {
"component": {
}
},
"FABRIC-CARD2": {
"component": {
}
},
"FABRIC-CARD3": {
"component": {
}
},
"FABRIC-CARD4": {
"component": {
}
},
"FABRIC-CARD5": {
"component": {
}
},
"FABRIC-CARD6": {
"component": {
}
},
"FABRIC-CARD7": {
"component": {
}
}
}
}

View File

@ -27,6 +27,10 @@
{
"key": "enable_firmware_update",
"intval": 0
},
{
"key": "sonic_log_level",
"stringval": "error"
}
]
}