Skip to content

STP updates not propagated to SAI #33

@HolyShitMan

Description

@HolyShitMan

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

entry.cps_created = true;

This leads to nas_stg_update_stg_state() returning early and and don't calling nas_update_stp_state().

// 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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions