XER10-2389 : Gateway LED lite solid white in WFO mode while using XLE as backup mode#3
XER10-2389 : Gateway LED lite solid white in WFO mode while using XLE as backup mode#3michaelamal wants to merge 3 commits into
Conversation
Reason for change: test Test Procedure: Build and verify Risks: Low Priorty: P1
Reason for change: test Test Procedure: Build and verify Risks: Low Priorty: P1
… as backup mode Reason for change: LEDmanager WFO Test Procedure: build procedure any password. Risks:NA Priority:P1 Signed-off-by: Michael_AmalAnand@comcast.com
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
| FILE *fp; | ||
| char buffer[512]; | ||
| CcspTraceError((" is_remote_lte_up called \n")); | ||
| fp = popen("dmcli eRT getv Device.X_RDK_WanManager.InterfaceActiveStatus", "r"); |
| while (fgets(buffer, sizeof(buffer), fp)) { | ||
| if (strstr(buffer, "REMOTE_LTE,1")) { | ||
| pclose(fp); | ||
| CcspTraceError((" is_remote_lte_up returned true \n")); |
| } | ||
|
|
||
| pclose(fp); | ||
| CcspTraceError((" is_remote_lte_up returned false \n")); |
| strncpy(wan_event, led_wan_events[i].wan_event, BUFLEN_64-1); | ||
| if(strcmp(led_wan_events[i].wan_event,"rdkb_ipv4_only") == 0) | ||
| { | ||
| CcspTraceError((" wan_event is rdkb_ipv4_only \n")); |
| return i; | ||
| } | ||
|
|
||
| bool is_remote_lte_up() { |
There was a problem hiding this comment.
LED manager is a generic code . Try to use HAL LED configuration file for interface specific LED settings
| return i; | ||
| } | ||
|
|
||
| bool is_remote_lte_up() { |
There was a problem hiding this comment.
wan interface state change should be detected by respective component and set a sysevent for wan. From LED manager point of view, it should be just a "wan sysevent" irrespective of primary/backup interfaces. So check which component is subscribing for Device.X_RDK_WanManager.InterfaceActiveStatus. That component should check LTE status and set wan event
Reason for change: apparmor DNIED error
Test Procedure: build procedure
any password.
Risks:NA
Priority:P1
Signed-off-by: Michael_AmalAnand@comcast.com