-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat(eos_cli_config_gen): port-channel-interfaces enhancement #1396
Feat(eos_cli_config_gen): port-channel-interfaces enhancement #1396
Conversation
you need to run make refresh-facts from |
Also the data model doesn't match with the eos cli. Even the My suggestion for the data model would be: evpn_es:
redundancy: < active-active | single-active | default --> active-active >
designated_forwarder_election:
hold_time: < time seconds >
algorithm: <>
preference_value: <>
dont_preempt: <> I don't have a router to test the possible commands. Let's see what others will suggest. |
Sure, will run the make refresh-facts. Do we need this all time for eos_cli_config_gen? If so should be update the molecule README |
Yeah, since we are adding the For the key should we keep it port_channel_interfaces:
< Port-Channel_interface_1 >:
evpn_es / evpn_ethernet_segment:
esi: < EVPN Ethernet Segment Identifier (Type 1 format) >
rt: < EVPN Route Target for ESI with format xx:xx:xx:xx:xx:xx >
redundancy: < active-active | single-active | default --> active-active >
designated_forwarder_election:
hold_time: < time seconds >
algorithm: <>
preference_value: <>
dont_preempt: <> |
Hi Himanshu, we can add esi and rt under |
Hey Tony, sure. For now i'll update the data model as follows < Port-Channel_interface_2 >:
description: < description >
vlans: "< list of vlans as string >"
mode: < access | dot1q-tunnel | trunk | "trunk phone" >
esi: < EVPN Ethernet Segment Identifier (Type 1 format) >
rt: < EVPN Route Target for ESI with format xx:xx:xx:xx:xx:xx >
lacp_id: < LACP ID with format xxxx.xxxx.xxxx >
evpn_ethernet_segment:
redundancy: < Multihoming redundancy mode (all-active | single-active | default --> all-active) >
designated_forwarder_election:
algorithm: < modulus | preference | default --> modulus >
preference_value: < Preference value (0-65535) >
hold_time: < time seconds >
dont_preempt: < non-revertive DF election mode ( true | false | default --> false ) > |
...tions/arista/avd/roles/eos_cli_config_gen/templates/documentation/port-channel-interfaces.j2
Outdated
Show resolved
Hide resolved
...ble_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/port-channel-interfaces.j2
Outdated
Show resolved
Hide resolved
...ble_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/port-channel-interfaces.j2
Outdated
Show resolved
Hide resolved
...ble_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/port-channel-interfaces.j2
Outdated
Show resolved
Hide resolved
Hi Himanshu! EOS TOI: |
EOS TOI: Hey Leonid, Sure, i'll check the TOI and update the data model as follows: evpn_ethernet_segment:
redundancy: < Multihoming redundancy mode (all-active | single-active | default --> all-active) >
designated_forwarder_election:
algorithm: < modulus | preference | default --> modulus >
preference_value: < Preference value (0-65535) >
dont_preempt: < non-revertive DF election mode ( true | false | default --> false ) >
hold_time: < time seconds (1-1800) >
subsequent_hold_time: < time milliseconds (10-10000) >
candidate_reachability_required: < true | false | default --> false >
mpls_shared_index: < (1-1024) >
|
4082f8f
to
8daf79f
Compare
...tions/arista/avd/roles/eos_cli_config_gen/templates/documentation/port-channel-interfaces.j2
Outdated
Show resolved
Hide resolved
...tions/arista/avd/roles/eos_cli_config_gen/templates/documentation/port-channel-interfaces.j2
Outdated
Show resolved
Hide resolved
...tions/arista/avd/roles/eos_cli_config_gen/templates/documentation/port-channel-interfaces.j2
Outdated
Show resolved
Hide resolved
8daf79f
to
9e96a98
Compare
Updated the requested changes. |
...ble_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/port-channel-interfaces.j2
Outdated
Show resolved
Hide resolved
...ble_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/port-channel-interfaces.j2
Outdated
Show resolved
Hide resolved
ansible_collections/arista/avd/roles/eos_cli_config_gen/README.md
Outdated
Show resolved
Hide resolved
...ble_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/port-channel-interfaces.j2
Outdated
Show resolved
Hide resolved
ansible_collections/arista/avd/roles/eos_cli_config_gen/README.md
Outdated
Show resolved
Hide resolved
Hi, FYI, here is a PR that is closely related to your's: #1437. Forget about the esi/identifier, and rt/route_target. But you can implement rest of the knobs similarly. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Hi Himanshu. Do you want me to take this PR? I have a requirement of this feature, not immediately but by next month. We have lot of time but let me know if you want me to take this. I did something similar tho this feature on ethernet-interfaces, #1437 |
Hey Tony, sure. sorry got a bit backed up on other work. |
9e96a98
to
6b17fd0
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
6b17fd0
to
a50d5a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Change Summary
PR to add support for:
Reference article
Related Issue(s)
Fixes #1163
Component(s) name
arista.avd.eos_cli_config_gen
Proposed changes
Added following changes to the port-channel-interfaces.yml
YAML
Port-Channel60: description: server01_PortChannel3 vlans: 1-4000 mode: trunk esi: 0000:0000:0101:0102:0033 rt: 01:01:01:02:00:33 lacp_id: 0101.0102.0033 redundancy: single-active designated_forwarder_election: algorithm: preference preference_value: 1000 dont_preempt: true
CLI
How to test
Ran molecule test which resulted in generation of TOC documentation and intended configuration
molecule test --scenario-name eos_cli_config_gen
Checklist
User Checklist
Repository Checklist