bisdn / basebox

A tiny OpenFlow controller for OF-DPA switches.
Mozilla Public License 2.0
45 stars 9 forks source link

implement stp for bond interfaces #274

Closed KanjiMonster closed 4 years ago

KanjiMonster commented 4 years ago

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.