Skip to content

Use mreg-api package#432

Draft
pederhan wants to merge 57 commits intomasterfrom
use-mreg-api
Draft

Use mreg-api package#432
pederhan wants to merge 57 commits intomasterfrom
use-mreg-api

Conversation

@pederhan
Copy link
Member

@pederhan pederhan commented Jan 16, 2026

PR that aims to replace all API code with the new mreg-api package.

TODO:

  • Use new FrozenModel.get_notes() method to print notes (which we previously did automatically with parameters such as notify_as_cname)
  • Clean up unused exceptions.
  • Streamline exception handling (future PR?)

pederhan and others added 17 commits January 18, 2026 11:53
* Use git http mreg-api dependency

* Fix login flow (WIP)

* Fix login flow (i think)

* Attempt mreg_api inheritance

* Bump mreg_api version

* Use output functions instead of subclassing

* Add `output_network_policy_attribute`

* Port zone commands

* Port network commands

* Port DHCP commands

* Add FIXME

* Port Label commands

* Fix `network info` using old method

* Port permission commands

* Port group commands (no history)

* Port policy commands (no history)

* Add history output commands

* Implement Host commands

* Fix imports in output.policy

* Implement Host RR commands

* Port Help commands

* Fix network output imports

* Fix Host output imports

* Fix test imports

* Update deps

* Remove api module

* Various fixes

* Tests are still completely broken
@pederhan pederhan marked this pull request as ready for review January 21, 2026 15:16
@pederhan pederhan marked this pull request as draft January 21, 2026 15:20
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.

1 participant