How to merge ethernet parent interface data from connected endpoints and network services #2621
-
Consider the following workflow:
Before moving to list of dicts structure, the After moving to list of dicts, this is no longer the case. My purpose is to define a parent interface that is tenant independent, and just define subinterfaces for each tenant, however with list of dicts I am no longer able to do so. An idea could be adding an option to Any idea about how I could have the same merging behavior for list of dicts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
We are actually merging list of dicts on the "primary_key" found in the schema - if available. It only works if you don't have BTW: Please share your version, as these things are undergoing changes these days. |
Beta Was this translation helpful? Give feedback.
In 3.8.3 we should still be returning dict of dicts in our code, because we lacked exactly this feature. In 4.0 we have implemented conversion of the result from each template and are merging on schemas.
If you run with your own templates, you either need to return the dict-of-dict format and let eos_cli_config_gen convert them, or you can test with a 4.0 dev release to see if it solves the problem.