Skip to content

[Nokia] Update Nokia platform IXR7250E device data #11611

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

Merged
merged 1 commit into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"module": {
"LINE-CARD": {
"component": {}
},
"SUPERVISOR0": {
"component": {}
}
},
"chassis": {
"Nokia-IXR7250E-36x400G": {
"component": {
"FPGA2": {},
"FPGA1": {},
"BIOS": {}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"options": [
{
"key": "sfp_init_tx_en",
"stringval": "yes"
"key": "module_direct_ipc_ue",
"stringval": "no"
},
{
"key": "midplane_subnet",
Expand Down Expand Up @@ -39,6 +39,10 @@
{
"key": "enable_firmware_update",
"intval": 0
},
{
"key": "sonic_log_level",
"stringval": "error"
}
]
}
19 changes: 19 additions & 0 deletions device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/platform_reboot
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
},
{
"name": "FPGA1"
},
{
"name": "SFM-FPGA"
}
],
"watchdog": {
Expand Down
Original file line number Diff line number Diff line change
@@ -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": {
}
}
}
}
4 changes: 4 additions & 0 deletions device/nokia/x86_64-nokia_ixr7250e_sup-r0/platform_ndk.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
{
"key": "enable_firmware_update",
"intval": 0
},
{
"key": "sonic_log_level",
"stringval": "error"
}
]
}