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

load-config: T5815: provide a variety of load config methods #2608

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

jestabro
Copy link
Contributor

@jestabro jestabro commented Dec 11, 2023

Collect in a module several versions of a 'load config' function. They have different use cases according to performance and error reporting, and allow comparison of non-legacy and legacy variants.

Define several version of a load_config function as an alternative to the legacy load config script, for use, notably, in
(1) 'soft-rollback', as discussed with @sever-sever
https://vyos.dev/T5249
#2596
(2) better error reporting for configtest

This also allows easy comparison when adding the legacy batch set/delete patch:
vyos/vyatta-cfg@current...jestabro:cli_batch
mostly for curiosity, as performance is still limited by io string conversions, respectively,
https://vyos.dev/T5528
which will resolve those limits.

Change Summary

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Component(s) name

Proposed changes

How to test

Smoketest result

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

@jestabro jestabro self-assigned this Dec 11, 2023
@vyosbot vyosbot requested review from a team, dmbaturin, sarthurdev, zdc, sever-sever and c-po and removed request for a team December 11, 2023 04:13
@jestabro jestabro mentioned this pull request Dec 11, 2023
12 tasks
@jestabro jestabro force-pushed the load-config-module branch 4 times, most recently from 16b29a0 to c7198c3 Compare December 11, 2023 16:52
Collect in a module several versions of a 'load config' function.
They have different use cases according to performance and error
reporting, and allow comparison of non-legacy and legacy variants.
@jestabro jestabro marked this pull request as ready for review December 11, 2023 18:10
@vyosbot vyosbot requested a review from a team December 11, 2023 18:10
@jestabro jestabro merged commit 138fe52 into vyos:current Dec 12, 2023
9 checks passed
@sever-sever
Copy link
Member

@Mergifyio backport sagitta

Copy link
Contributor

mergify bot commented Dec 12, 2023

backport sagitta

✅ Backports have been created

c-po added a commit that referenced this pull request Dec 13, 2023
load-config: T5815: provide a variety of load config methods (backport #2608)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants