aristanetworks / avd

Arista Validated Designs
https://avd.arista.com
Apache License 2.0
288 stars 206 forks source link

Doc: Improve contribution guide #3286

Open gmuloc opened 12 months ago

gmuloc commented 12 months ago

Improve the contribution guide with details like below. Taken from a discussion, so reword to fit as a document:


So in general we try to avoid introducing some new knobs in eos_cli_config_gen and eos_designs in one go to make things clearer. Usually, we just recommend one PR to add the low-level CLI in eos_cli_config_gen and then a new one on top to do the eos_designs bit. Thus I will structure a list of tasks based on this assumed separation and tick the steps you have followed already.

Make sure to install the requirements-dev.txt to be able to complete the process (I believe you have already but mentioning it just in case)

eos_cli_config_gen

This part of the change is aimed at adding some new knobs. The following tasks are required:

eos_designs

Is there anything to do in "ansible_collections/arista/avd/roles/eos_designs"... as l2_mru` is not part of a design I suppose not?

I just would like to point out that if you don't need the l2_mru in eos_designs you should remove the changes you have made to the python code there. Otherwise, there is a bit more work to do indeed. This can be done only after the eos_cli_config_gen part has been completed (hence why we usually recommend 2 PRs)

The process is very similar (for simple changes like yours) except for the jinja2 template part where you need to edit some Python code

Let us know if you need further help

Originally posted by @gmuloc in https://github.com/aristanetworks/ansible-avd/issues/3164#issuecomment-1735054320

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 90 days with no activity. The issue will be reviewed by a maintainer and may be closed