-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
Description
If running mstpd in rstp mode on an OpenSwitch VM, the port states won't be propagated to SAI, because cps_created is set to true in nas_stg_create_default_instance().
opx-nas-l2/src/stg/nas_stg_api.cpp
Line 981 in 7e80d39
| entry.cps_created = true; |
This leads to nas_stg_update_stg_state() returning early and and don't calling nas_update_stp_state().
opx-nas-l2/src/stg/nas_stg_api.cpp
Lines 443 to 451 in 7e80d39
| // If entry has multiple vlans skip the update | |
| if((entry->vlan_list.size()>1) || (entry->cps_created == true)){ | |
| NAS_STG_LOG(DEBUG, "Skipping kernel update as stg instance has more " | |
| "than one vlans mapped to it or created via CPS "); | |
| return STD_ERR_OK; | |
| } | |
| if (!nas_update_stp_state(entry, intfindex, state)) | |
| return STD_ERR(STG, FAIL, 0); |
Is this intended and if yes, why?
Reactions are currently unavailable