Open gmuloc opened 1 year ago
outcome of discussions with other maintainers:
IMPORTANT: options 1&2 only work from within a single module (in that case connected_endpoints)
We have changed our minds, so in #2766 we re-implement the following duplicate checks for network_ports/connected_endpoints:
This issue now tracks:
(longer term) would be nice to add something generic in eos_designs for unused_ports with a default description and state
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
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
Enhancement summary
There is currently an effort to warn the user about duplicate definitions of the same port in a given module (e.g. multiple definition of EthernetX in underlay, or in connected_endpoints).
Before PR #2627 the behavior used to be that the latest definition wins and sometimes it could lead to silent issues because difficult to notice. Since the PR was merged, an explicit error is raised if an interface is defined twice inside a module with different structured_configuration.
It has come to our attention though that in some specific use cases (campus designs) it could be desirable to be able to be able to have a global definitions for ports and then being able to overwrite them more spefically.
this issue is opened to track an effort to answer such functionality (and hence ignore the duplicate error messages)
Which component of AVD is impacted
eos_designs
Use case example
campus use case where for instance we want to define all the ports as unused and then overwrite definition for some:
Describe the solution you would like
use case being possible. could be some knob to authorise being overwritten by more specific definition for instance.
Describe alternatives you have considered
No response
Additional context
No response
Contributing Guide