Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop all compatibility for pre 17.6 fw versions #117

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

sebageek
Copy link
Collaborator

@sebageek sebageek commented Oct 14, 2024

We are now on version >= 17.6 everywhere and therefore we can drop all code for previous versions (16.9, 17.3). This also makes writing new code easier, as we have to consider (and test) less versions (and even don't have any devices anymore to test the old code).

For now I left the BDI code intact, as my main goal was to get rid of all version_min_17_x and drop_on_17_x, but we can also think about removing that in the future. BDI code has been removed in second commit.

@sebageek sebageek force-pushed the driver-compat-cleanup branch 3 times, most recently from 6527236 to dad545e Compare October 29, 2024 12:57
We are now on version >= 17.6 everywhere and therefore we can drop all
code for previous versions (16.9, 17.3). This also makes writing new
code easier, as we have to consider (and test) less versions (and even
don't have any devices anymore to test the old code).

This commit will only get rid off the version_min_17_x and drop_on_17_x
version switch, BDI removal will be done in an extra commit.
Before we had BD-VIF/bridge support on our routes we needed to have a
hyperloop cable (traversing two port channels, using up like two thirds
of our router ports). Now that all of this is long behind us we can also
remove the compatibility code for switching back to BDI. This means we
remove the PortChannels LoopbackExternalInterface and
LoopbackInternalInterface and also switch-over support by removing the
bd_iftype (tied to an asr1k context), the use_bdvif flag (both on a
context and in the oslo config part of the driver) and the force_bdi
flag (used to fetch BDIs on a router already on BD-VIFs so we can still
remove them). VBInterface was renamed to BDInterface, same goes for the
related classes VBPrimaryIpAddress, VBSecondaryIpAddress and
VBInterfaceStats.

For migrating the code I updated all conditionals in a way as if
bd_iftype is always BD-VIF and use_bdvif is always True.
@sebageek sebageek merged commit f7eaef9 into stable/yoga-m3 Nov 5, 2024
1 check passed
@sebageek sebageek deleted the driver-compat-cleanup branch November 5, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants