-
Notifications
You must be signed in to change notification settings - Fork 41
LTE-2775 : Observing RDKB_PROCESS_CRASHED : zebra is not running, restarting the zebra in XLE #181
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -417,7 +417,7 @@ int service_start(int mode) | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| sysevent_set(sysevent_fd, sysevent_token, "lnf-setup", buf, 0); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| #endif | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| runCommandInShellBlocking("systemctl restart CcspLMLite.service"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sysevent_set(sysevent_fd, sysevent_token, "zebra-restart", "", 0); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // sysevent_set(sysevent_fd, sysevent_token, "zebra-restart", "", 0); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // sysevent_set(sysevent_fd, sysevent_token, "zebra-restart", "", 0); | |
| /* | |
| * Note: | |
| * The zebra-restart sysevent used to be triggered unconditionally here | |
| * when entering ROUTER mode. As part of changes to the LAN bring-up | |
| * sequence, zebra lifecycle (start/restart) is now managed by the | |
| * LAN/WAN management components once LAN is fully up. | |
| * | |
| * To avoid duplicate restarts and race conditions with those | |
| * components, devicemode no longer restarts zebra directly. | |
| * If zebra restart behavior needs to be modified, it should be done | |
| * in the component responsible for routing daemon management rather | |
| * than by re-enabling this call. | |
| */ | |
| // sysevent_set(sysevent_fd, sysevent_token, "zebra-restart", "", 0); |
Copilot
AI
Jan 21, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lanStartVal variable is retrieved but never used. If this was intended to be a condition check before restarting zebra (as suggested by the PR description about checking LAN status), the logic is incomplete. Either remove the unused variable or implement the intended LAN status check.
| // sysevent_set(sysevent_fd, sysevent_token, "zebra-restart", "", 0); | |
| if (strcmp(lanStartVal, "started") == 0) | |
| { | |
| APPLY_PRINT("%s: LAN is started, restarting zebra\n", __FUNCTION__); | |
| sysevent_set(sysevent_fd, sysevent_token, "zebra-restart", "", 0); | |
| } | |
| else | |
| { | |
| APPLY_PRINT("%s: LAN is not started (status: %s), skipping zebra restart\n", __FUNCTION__, lanStartVal); | |
| } |
Copilot
AI
Jan 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented-out code should be removed rather than left in the codebase. If this code needs to be removed as part of the fix, delete the line entirely. If you want to preserve the history, rely on version control (git) to track what was changed.
| // sysevent_set(sysevent_fd, sysevent_token, "zebra-restart", "", 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
call this only on XLE device. zebra-restart is triggered from dhcpv6 sequence in XB /Other Gateway devices