-
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): Add Monitor Session support #1435
Feat(eos_cli_config_gen): Add Monitor Session support #1435
Conversation
Hi guys, would appreciate a review of the datamodel before implementing the rest. thanks |
monitor_sessions:
- name: < session_name_1 >
sources:
- name: < interface_name or range >
direction: < rx | tx | both >
ip_access_group: < acl_name >
ip_access_group_priority: < priority >
ipv6_access_group: < acl_name >
ipv6_access_group_priority: < priority >
mac_access_group: < acl_name >
mac_access_group_priority: < priority >
destinations:
- < interface(s) | cpu >
encapsulation_gre_metadata_tx: < true | false >
header_remove_size: < bytes >
ip_access_group: < acl_name >
ip_access_group_priority: < priority >
ipv6_access_group: < acl_name >
ipv6_access_group_priority: < priority >
mac_access_group: < acl_name >
mac_access_group_priority: < priority >
rate_limit_per_egress_chip: < "<int> bps" | "<int> kbps" | "<int> mbps" >
sample: < int >
truncate:
enabled: < true | false >
size: < bytes > This CLI area is highly platform dependent. The supported values and features differ between chips, so I have removed all the specific numbers. |
Slight adjustment:
added: rate_limit_per_ingress_chip |
Does it make sense to you to change to sth like:
This might prevent users to input multiple ACLs of different types.. vs. slightly different to acutal CLI |
Good idea. Just remember to also add |
..._collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/monitor-sessions.yml
Outdated
Show resolved
Hide resolved
Implemented as discussed and added a first try for the documentation. My thoughts on it:
|
You could do a "settings" table like we have under other features, where the columns are "setting" and "value" or similar. Check peer-groups under BGP.
I don't think you should build comma-separated fields inside a single table column. IMO it is not making it easier to read. |
Thanks Claus. Let me split the "Access Group" part in columns, it really isn't readable the way it is now. Regarding the general settings: Still have my doubts about it. We would basically end up with rows like:
Is that really helpful? If so, should we adjust the model to
This would allow us to easily check if something under "session_settings" is defined and only render this table if needed? Otherwise we would need to check if anything besides "sources" and "destinations" and "name" exists or always render everything with default settings? |
Creating this table will at least show everything configured. It follows the same style as the rest of the documentation, but I agree it has limited value. Please do the table and we can get this merged :)
I don't think we should change the model. If you move destination up to the settings table you also avoid repeating the destination in each line in the source table, then the settings table would always be relevant, even with the minimal config. |
This sounds good, haven't thought about it this way. Let me adjust it accordingly and get back to you! @ClausHolbechArista changes added. Let me know if it needs further tweaking :-) |
..._collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/monitor-sessions.j2
Show resolved
Hide resolved
..._collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/monitor-sessions.j2
Outdated
Show resolved
Hide resolved
..._collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/monitor-sessions.j2
Outdated
Show resolved
Hide resolved
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
..._collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/monitor-sessions.j2
Outdated
Show resolved
Hide resolved
..._collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/monitor-sessions.yml
Show resolved
Hide resolved
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
Related Issue(s)
Related to ##1412
Component(s) name
arista.avd.eos_cli_config_gen
Proposed changes
How to test
added molecule test scenario
Checklist
User Checklist
Repository Checklist