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

Netplan state refactoring #399

Merged
merged 4 commits into from
Aug 17, 2023
Merged

Commits on Aug 17, 2023

  1. libnetplan: refactor NetplanRoute

    - Define default values to fields
    - Add a str() method that will return the route as a string in a format
      similar to the one returned from "ip route"
    - Defined to_dict() method that will be used by the JSON encoder
      when dumping the NetplanRoute class.
    - Refactor the _NetplanRouteIterator class to use **kwargs. It makes it
      clearer what fields we are assigning.
    daniloegea committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    3290705 View commit details
    Browse the repository at this point in the history
  2. state: refactor the device types translation table

    Make it a global object and add new types found in the Netplan state.
    daniloegea committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    2f2714d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6df5c8c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bfcd5c9 View commit details
    Browse the repository at this point in the history