sonic-net / sonic-swss

SONiC Switch State Service (SwSS)
https://azure.github.io/SONiC
Other
170 stars 503 forks source link

Remove the API setBridgePortLearningFDB() and use setBridgePortLearnMode() only #3222

Open DennisChiuEC opened 1 month ago

DennisChiuEC commented 1 month ago

What I did 1.Remove the API setBridgePortLearningFDB() 2.Use setBridgePortLearnMode() as instead 3.Set L2 LAG's learning mode to forward during swss warm restart

Why I did it Two API setBridgePortLearningFDB() and setBridgePortLearnMode() do the same thing which configured port learning mode. The code can be refined to have only one API.

How I verified it

Details if related