Support for maintenance mode profile configuration
See original GitHub issueIssue Type
- Template enhancement
- Role enhancement
- Documentation enhancement (avd.sh)
Is your feature request related to a problem? Please describe.
We have to adjust the maintenance mode profile configuration on all L3/MLAG-Leaf switches to make maintenance mode work in our environment.
Describe the solution you’d like
We have to configure a maintenance profile interface with certain values like the following one and make it the default.
maintenance
profile interface int_maint default
!
profile interface int_maint
rate-monitoring load-interval 100
rate-monitoring threshold 1000
shutdown max-delay 100
There is currently no template available within the eos_cli_config_gen role. The data model could perhaps look like this:
maintenance:
profile:
interface:
< profile_interface_1 >:
rate_monitoring:
load_interval: < seconds >
threshold: < kbps >
shutdown:
max_delay: < seconds >
default: < true | false >
Describe alternatives you’ve considered
The current alternative is, to create a config_let within CVP and bind it to the containers of our leafs manually within CVP or “automated” by adding the config_let via AVD. Our goal is that Ansible code is the single source of configuration.
Additional context
Add any other context or screenshots about the feature request here.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:8 (5 by maintainers)
Top GitHub Comments
I would like to suggest a different data model:
This makes the model match the cli config hierarchy better and less logic is needed (which can be embedded in the design role).
EDIT: changed unit and bgp profiles to be more consistent with the rest of the template.
I like the fact that the generated config is an exact match of the running config. So when I started I also used the “lazy” method and I thought I could flatten the array the same way as is done with vlans on a trunk port. That was impossible for me since to do this properly I need to know for what kind of device I’m creating the config for. That was the point I was trying to make with the Ethernet2/2 example. It can be two different things which can impact the result when the array is flattened.
E.G. the following happens on a 7050CX switch with QSFPs:
However when the same commands are given on a arista with linecard where SFP(+) modules inserted in slot 1 and 2, I (assume) it will not get flatten the same, I expect this to happen (assumption, I don’t have a 7500 to test this):