Implement STP state support for bonded interfaces by passing on the state to the bonded interfaces.
Description
The switch ASIC only supports setting STP state for physical ports, so we need to make sure that we propagate any STP state changes to the bonded interfaces. This also fixes an issue in get_port_id() that wasn't working with bridge interfaces for bond interfaces, only ones for tap interfaces.
Motivation and Context
STP is essential in many use cases.
How Has This Been Tested?
Ran a pipeline with the changes applied on the ag5648s.
Implement STP state support for bonded interfaces by passing on the state to the bonded interfaces.
Description
The switch ASIC only supports setting STP state for physical ports, so we need to make sure that we propagate any STP state changes to the bonded interfaces. This also fixes an issue in get_port_id() that wasn't working with bridge interfaces for bond interfaces, only ones for tap interfaces.
Motivation and Context
STP is essential in many use cases.
How Has This Been Tested?
Ran a pipeline with the changes applied on the ag5648s.