Skip to content

RDKCOM-5613: RDKBNETWOR-98 untagged vlan#40

Open
sherik-sensin wants to merge 2 commits into
rdkcentral:mainfrom
sherik-sensin:RDKBNETWOR-98_untagged_vlan
Open

RDKCOM-5613: RDKBNETWOR-98 untagged vlan#40
sherik-sensin wants to merge 2 commits into
rdkcentral:mainfrom
sherik-sensin:RDKBNETWOR-98_untagged_vlan

Conversation

@sherik-sensin

Copy link
Copy Markdown

No description provided.

sherik-sensin and others added 2 commits July 6, 2026 16:32
Reason for change: CPE should be able to support IP connectivity(Static/PPPoE/IPoE) over native interface.

Test Procedure: Performed VlanManager Sanity test.
Risks: None.

Signed-off-by: Sherik Sensin A <sherik.a@telekom-digital.com>
@sherik-sensin
sherik-sensin requested a review from a team as a code owner July 14, 2026 14:24
Copilot AI review requested due to automatic review settings July 14, 2026 14:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds special-case handling for VLAN entries using VLANId == -1 to represent a bridge-backed “untagged VLAN” by creating/deleting Linux bridges in the VLAN enable/disable paths.

Changes:

  • In Vlan_Enable(), create a bridge and add the base interface when VLANId == -1.
  • In Vlan_Disable(), bring down/delete the bridge and remove the base interface from it when VLANId == -1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +405 to +413
else if (pEntry->VLANId == -1)
{
/* If the VLANID = -1, the VLAN is a bridge, delete the bridge and delete the interface from the bridge */
if(strcmp(pEntry->BaseInterface, pEntry->Name))
{
v_secure_system("ifconfig %s down", pEntry->Name);
v_secure_system("brctl delif %s %s", pEntry->Name, pEntry->BaseInterface);
v_secure_system("brctl delbr %s", pEntry->Name);
}
Comment on lines +684 to +686
v_secure_system("brctl addbr %s", pEntry->Name);
v_secure_system("brctl addif %s %s", pEntry->Name, pEntry->BaseInterface);
v_secure_system("ifconfig %s up", pEntry->Name);
@pradeeptakdas pradeeptakdas changed the title RDKBNETWOR-98 untagged vlan RDKCOM-5613: RDKBNETWOR-98 untagged vlan Jul 15, 2026
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.

2 participants