Skip to content

XER10-2389 : Gateway LED lite solid white in WFO mode while using XLE as backup mode#3

Open
michaelamal wants to merge 3 commits into
rdkcentral:mainfrom
michaelamal:main
Open

XER10-2389 : Gateway LED lite solid white in WFO mode while using XLE as backup mode#3
michaelamal wants to merge 3 commits into
rdkcentral:mainfrom
michaelamal:main

Conversation

@michaelamal

Copy link
Copy Markdown

Reason for change: apparmor DNIED error
Test Procedure: build procedure
any password.
Risks:NA
Priority:P1

Signed-off-by: Michael_AmalAnand@comcast.com

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
@github-advanced-security

Copy link
Copy Markdown

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:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

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");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use rbus API

while (fgets(buffer, sizeof(buffer), fp)) {
if (strstr(buffer, "REMOTE_LTE,1")) {
pclose(fp);
CcspTraceError((" is_remote_lte_up returned true \n"));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use TraceInfo

}

pclose(fp);
CcspTraceError((" is_remote_lte_up returned false \n"));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use TraceInfo

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"));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use TraceInfo

return i;
}

bool is_remote_lte_up() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants