Skip to content

cli/sriov: remove unused code#435

Merged
slyon merged 1 commit intocanonical:mainfrom
daniloegea:cli_sriov_1
Jan 25, 2024
Merged

cli/sriov: remove unused code#435
slyon merged 1 commit intocanonical:mainfrom
daniloegea:cli_sriov_1

Conversation

@daniloegea
Copy link
Contributor

@daniloegea daniloegea commented Jan 18, 2024

We are parsing all the configuration unnecessarily here. np_state is being overridden by the State instance from the config manager.

Fix a related unit test. The configuration is expected to fail but now it's failing in a different place and raising a different exception.

Description

Checklist

  • Runs make check successfully.
  • Retains 100% code coverage (make check-coverage).
  • New/changed keys in YAML format are documented.
  • (Optional) Adds example YAML for new feature.
  • (Optional) Closes an open bug in Launchpad.

@slyon
Copy link
Contributor

slyon commented Jan 22, 2024

Please rebase, now that CI is adopted after #434

We are parsing all the configuration unnecessarily here. np_state is
being overridden by the State instance from the config manager.

Fix a related unit test. The configuration is expected to fail but now
it's failing in a different place and raising a different exception.
Copy link
Contributor

@slyon slyon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

This was apparently a left-over from times where configmanager.py was not using netplan.Parser() and netplan.State() logic yet, but had its own Netplan parser, implemented in Python.

See #253 (comment) for reference.

@slyon slyon merged commit f26865f into canonical:main Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants