-
Notifications
You must be signed in to change notification settings - Fork 47
Adding extra logs for debugging #318
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
Open
aj970-crypto
wants to merge
4
commits into
develop
Choose a base branch
from
feature/bug_63899
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -162,7 +162,9 @@ case "$1" in | |
| fi | ||
| ;; | ||
| ipv4_*-status) | ||
| echo_t "LAN HANDLER : Received $1 event with status $2" | ||
| if [ x"up" = x${2} ]; then | ||
| echo_t "LAN HANDLER : Handling LAN up event for instance ${1}" | ||
| INST=${1#*_} | ||
| INST=${INST%-*} | ||
| RG_MODE=`syscfg get last_erouter_mode` | ||
|
|
@@ -184,12 +186,14 @@ case "$1" in | |
|
|
||
|
|
||
| if [ xbrlan0 = x${LAN_IFNAME} ]; then | ||
| echo_t "LAN HANDLER : Handling LAN up event for brlan0, configuring IPv6 address if needed" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. XB7 uses lan_handler.c ,check if the changes are needed in c file as well |
||
| SYSEVT_lan_ipaddr_v6_prev=`sysevent get lan_ipaddr_v6_prev` | ||
|
|
||
| if [ "1" = "$(sysevent get ula_ipv6_enabled)" ] && [ "1" != "$(syscfg get Device_Mode)" ]; then | ||
| SYSEVT_lan_ipaddr_v6=$(sysevent get ipv6_prefix_ula | cut -d "/" -f 1) | ||
| SYSEVT_lan_ipaddr_v6=${SYSEVT_lan_ipaddr_v6}1 | ||
| else | ||
| echo_t "LAN HANDLER : Using global IPv6 address for LAN" | ||
| SYSEVT_lan_ipaddr_v6=`sysevent get lan_ipaddr_v6` | ||
| fi | ||
| SYSEVT_lan_prefix_v6=`sysevent get lan_prefix_v6` | ||
|
|
@@ -255,6 +259,7 @@ case "$1" in | |
| elif [ x"ready" != x`sysevent get start-misc` ] && ( [ "$MANUFACTURE" = "Technicolor" ] || [ "$MANUFACTURE" = "Sercomm" ] ) ; then | ||
| #TCH XBx/TCCBR based startup post.d scripts which includes Firewall restart and dhcp start. | ||
| sysevent set lan-status started | ||
| echo_t "LAN HANDLER : lan status set to started" | ||
| firewall | ||
| if [ ! -f "$POSTD_START_FILE" ]; | ||
| then | ||
|
|
@@ -264,6 +269,7 @@ case "$1" in | |
| else | ||
| echo_t "LAN HANDLER : Triggering DHCP server using LAN status" | ||
| sysevent set lan-status started | ||
| echo_t "LAN HANDLER : lan status set to started" | ||
| echo_t "LAN HANDLER : Triggering RDKB_FIREWALL_RESTART" | ||
| t2CountNotify "RF_INFO_RDKB_FIREWALL_RESTART" | ||
| sysevent set firewall-restart | ||
|
|
@@ -314,6 +320,8 @@ case "$1" in | |
| sysevent set firewall-restart | ||
| if [ -e "/usr/bin/print_uptime" ]; then | ||
| /usr/bin/print_uptime "Laninit_complete" | ||
| echo_t "LAN HANDLER : Laninit_complete uptime: $(cut -d. -f1 /proc/uptime)" | ||
| echo_t "LAN HANDLER : Checking lan-status after lan init complete, lan-status = $(sysevent get lan-status)" | ||
| fi | ||
|
aj970-crypto marked this conversation as resolved.
|
||
|
|
||
| uptime=$(cut -d. -f1 /proc/uptime) | ||
|
aj970-crypto marked this conversation as resolved.
|
||
|
|
@@ -344,7 +352,7 @@ case "$1" in | |
| pnm-status | bring-lan) | ||
| if [ -e "/usr/bin/print_uptime" ]; then | ||
| /usr/bin/print_uptime "Lan_init_start" | ||
| fi | ||
| fi | ||
| uptime=$(cut -d. -f1 /proc/uptime) | ||
| if [ -e "/usr/bin/onboarding_log" ]; then | ||
| /usr/bin/onboarding_log "Lan_init_start:$uptime" | ||
|
|
@@ -354,7 +362,6 @@ case "$1" in | |
| if [ -z "$INST" ] | ||
| then | ||
| echo_t "THE INSTANT=$INST" | ||
| echo_t "THE INSTANT=$INST" | ||
| #(use a simpler test than this -- but Hacky, since it assumes everything we want is not XB3!!)if [ "$BOX_TYPE" = "TCCBR" ] || [ "$BOX_TYPE" = "XB6" -a "$MANUFACTURE" = "Technicolor" ] || [ "$BOX_TYPE" = "XB7" -a "$MANUFACTURE" = "Technicolor" ] ; then | ||
| if ( [ "$BOX_TYPE" != "XB3" ] && ( [ "$MANUFACTURE" = "Technicolor" ] || [ "$MANUFACTURE" = "Sercomm" ] ) ) || [ "$BOX_TYPE" = "rpi" ] || [ "$BOX_TYPE" = "bpi" ]; then | ||
| COUNTER=1 | ||
|
|
@@ -371,7 +378,7 @@ case "$1" in | |
| echo_t "THE COUNTER =$COUNTER" | ||
| done | ||
| else | ||
| echo_t "RDKB_SYSTEM_BOOT_UP_LOG : INST rerurned null, retrying" | ||
| echo_t "RDKB_SYSTEM_BOOT_UP_LOG : INST returned null, retrying" | ||
| INST=`psmcli get dmsb.MultiLAN.PrimaryLAN_l3net` | ||
| fi | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.