srieger1 / digsinet

multiple twins (siblings) of a network topology (e.g., based on containerlab) with continuous data exchange
https://srieger1.github.io/digsinet/
5 stars 0 forks source link

Change config file from a simple Dictionary to a dedicated class #21

Closed Lachstec closed 1 month ago

Lachstec commented 1 month ago

This PR closes #20 by changing the config from a simple Dict to a dedicated class Settings. By doing that, the configuration file is now typed and it is visible in the source code what fields exist. This also allows for better error messages if something unexpected happens when parsing the configuration file.

Overview of Changes

Testing

Changes have been tested with the Arista cEOS example from the repository. Behaviour should be identical with the version before these changes. Would still appreciate if someone could sanity check this PR to be sure.