You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the get_lab_from_api and update_lab_from_api methods assign interface numbers based on the alphabetic order of the collision domains they are attached to. This behavior does not respect the order imposed by:
The lab.conf file for static lab configurations.
The order of lconfig commands during dynamic updates.
This mismatch can lead to unexpected behavior, inconsistency, and potential errors in scenarios where interface ordering is crucial for proper lab operation.
Proposed Solution
Revise the logic in the get_lab_from_api and update_lab_from_api methods to ensure that interface numbering aligns with the intended configuration order.
To achieve this, leverage the interface numbers stored in the Docker networks' DriverOpts, introduced in #321. This will allow consistent and accurate interface ordering as defined by the configuration
The text was updated successfully, but these errors were encountered:
Description
Currently, the
get_lab_from_api
andupdate_lab_from_api
methods assign interface numbers based on the alphabetic order of the collision domains they are attached to. This behavior does not respect the order imposed by:lab.conf
file for static lab configurations.lconfig
commands during dynamic updates.This mismatch can lead to unexpected behavior, inconsistency, and potential errors in scenarios where interface ordering is crucial for proper lab operation.
Proposed Solution
Revise the logic in the
get_lab_from_api
andupdate_lab_from_api
methods to ensure that interface numbering aligns with the intended configuration order.To achieve this, leverage the interface numbers stored in the Docker networks'
DriverOpts
, introduced in #321. This will allow consistent and accurate interface ordering as defined by the configurationThe text was updated successfully, but these errors were encountered: