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

New submodule for state manipulation #379

Merged
merged 6 commits into from
Jul 25, 2023

Commits on Jul 20, 2023

  1. Configuration menu
    Copy the full SHA
    0c1755e View commit details
    Browse the repository at this point in the history
  2. netplan:cli:state: new module to collect network configuration

    state.py is responsible for collecting and storing the network
    configuration. It will also be responsible for detecting differences
    between the system's and netplan configuration in the future.
    
    The main motivation for this new submodule is the centralization of
    state management.
    The code used by "netplan status" to read and aggregate the system's
    network configuration and the code used by "netplan get" to read the
    Netplan's configuration was moved to this module.
    daniloegea committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    6fd7b1d View commit details
    Browse the repository at this point in the history
  3. commands:get/status: remove the code moved to state.py

    Make use of the new module to read the configuration used by "netplan
    get" and "netplan status".
    daniloegea committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    12bc8ae View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f7c13ef View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    64145e0 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2023

  1. netplan: export an IP addresses iterator API

    It enables us to retrieve the list of IPs, (V4 and V6) from a given
    netdef via Python bindings.
    
    The same iterator will consume the ip4_addresses, ip6_addresses and
    address_options (where IPs with options are stored).
    
    Each item returned by the _next() function is a NetplanAddressOptions*,
    even for addresses without options. Each object is released when the
    next one is requested.
    daniloegea committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    338782b View commit details
    Browse the repository at this point in the history