1. Scope of the work

                       To disable router mode and enable brigdemode in BPIR4 Router. It means, by default device will be in router mode. Once changed to bridge mode, Private WIFI will stop its broadcasting,  Ethernet Client should get public IP address (in erouter series)  and Wireless client will lose its connection to private WIFI.

2. Target Audience  

3.  High level Code Flow Design       

1 During boot-up

             

4. Supported device  

6. TR-181 Data Model Parameter of Bridge Mode





 CcspPandMDevice.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanModebridge-staticTo disable router mode functionalities and enable bridge mode functionalities in RPI Router. It means ,Private WIFI will stop its broadcasting, Ethernet Client should get public IP address (in erouter series)  and Wireless client will lose its connection to private WIFI.
 CcspPandMDevice.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanModerouterChange from bridge mode to router mode and verify basic functionality is working fine like internet connectivity for wifi and ethernet clients and also verify admin ui page is accessible.


7. Test Procedure

7.1. Enabling BridgeMode via dmcli 

          To enable bridge mode run the following dmcli commands,

dmcli eRT getv Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanMode
dmcli eRT setv Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanMode string bridge-static

Once the BPI is in bridge-mode, below test cases are needs to be passed,

8. BPI  Test Results

8.1. Router → Bridge-Static 

  1. Changing the LanMode from router to bridge-static mode

         

        

         2. A new bridge is created net0(interface link lnet0) which will have 10.0.0.1 ip address

         

   

           3.Ethernet (lan) clients should get Public IP address(i,e in erouter ip series)

           

     

           4. brlan0 shouldn't have  IP address

           

8.2. Bridge-Static → Router

  1.  Changing the LanMode from bridge-static to Router Mode.

         

       2. net0 and lnet0 interfaces should be deleted.

       

                        

Tested Image details,

9. References

9.1. Ticket details

 

9.2. Code review links

https://code.rdkcentral.com/r/c/rdkb/components/opensource/ccsp/Utopia/+/111599

https://github.com/rdkcentral/meta-cmf-bananapi/pull/68