Skip to content

Incorrect Interface Numbering Order in get_lab_from_api and update_lab_from_api #322

@tcaiazzi

Description

@tcaiazzi

Description

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

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions