[config] Merging lists

Open
#153 9 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@okraits is already working on this.

Since Nov 9, 2023.

  • #288 by @okraits — open
  • #814 by @okraits — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
networking

Research direction

The issue does not name an implementation file, test, or entry point; start by locating the configuration and template merge logic. Review existing tests for list-of-object merging, then agree on the intended override semantics and add coverage demonstrating the behavior for both object lists and ordinary list options.

Written by the indexing model from the issue text.

Description

enhancement

The way configuration is merged with templates now has a quirk:
list elements from different templates are merged with the config.

This is needed for list of objects (eg: interfaces, routes), but it's weird and has caused misunderstanding among users when they try to override list options.

I still haven't come up with an optimal solution.

Dominant language
Python
Stars
389
Forks
97
Avg merge
1d 14m
Merged PRs (30d)
14

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openwisp/netjsonconfig

All issues in openwisp/netjsonconfig

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.