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

T6185: simplify marshalling of section and config data for config-sync #3211

Merged
merged 3 commits into from
Mar 31, 2024

Conversation

jestabro
Copy link
Contributor

@jestabro jestabro commented Mar 29, 2024

Change Summary

This adds support for packaging the config-sync data into a single command for the http-api, and avoiding the use of get_config_dict for marshalling, use of which resulted in unnecessary reassembly and a technical annoyance when a section was defined by a leaf node. This is an internal change and does not affect the config-sync interface or definitions.

The section ['system', 'timezone'] is added as a demonstration of usefulness.

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):
    Simplification supporting extension.

Related Task(s)

Related PR(s)

vyos/vyos1x-config#25
vyos/libvyosconfig#13

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

Package path/section data in single command containing a tree (dict) of
section paths and the accompanying config data. This drops the call to
get_config_dict and the need for a list of commands in request.
@jestabro jestabro self-assigned this Mar 29, 2024
@vyosbot vyosbot requested a review from a team March 29, 2024 03:40
@vyosbot vyosbot requested review from dmbaturin, sarthurdev, zdc, sever-sever and c-po and removed request for a team March 29, 2024 03:40
@jestabro jestabro marked this pull request as ready for review March 30, 2024 04:19
@vyosbot vyosbot requested a review from a team March 30, 2024 04:19
@sever-sever
Copy link
Member

Working fine. thanks @jestabro !

@sever-sever sever-sever merged commit f62827c into vyos:current Mar 31, 2024
10 checks passed
@jestabro jestabro deleted the tree-mask branch May 3, 2024 15:56
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