Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 support for ingress in system.control_plane.ipv4/6_access_group #4481
Feat(eos_cli_config_gen): Add support for ingress in system.control_plane.ipv4/6_access_group #4481
Changes from 7 commits
6d95a59
9ed0ed1
3e124d8
3214096
80e6eab
80590c8
d0d53fc
22a54e5
1457838
53af345
0a6995d
932b032
7a47340
c92077c
2464b30
805308a
161e7b2
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
order is not correct
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.
Just to add to this comment:
default
as the same.will end up in running-config as
ip access-group acl4_3 in
(last command overwrites previous ones)tcp mss ceiling.*
ip access-group ingress default.*
ip access-group <IPv4_ACL_NAME> in
# IPv4 ACL for default` VRF. Can be only oneip access-group <IPv4_ACL_NAME> vrf <VRF_NAME> in
# Sorted by VRF nameSame ordering applies to IPv6.
Example:
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
can you fix the j2 template for vrf default and none case. So if vrf is default or none then we have to render the only last command.
Like from your example
ipv4_access_groups:
- acl_name: "acl4_1"
- acl_name: "acl4_3"
vrf: default
it should render the only below config:
ip access-group acl4_3 in
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.
We can as well optionally simply pick first IPv4 and IPv6 out of all with either "missing" VRF or those where it is set to
default
. EoS takes last line from overlapping commands pushed toconf
orconf session
because it simply overwrites previous ones. As we generate designed configuration state for the device - we should probably avoid generating commands which would be overwriting each other (although EoS would be OK with it).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.
Defining multiple ACLs as
ingress_default: true
renders all lines:Maybe we could at least only render first "ingress default" per address family, and treat all others as regular (per-vrf ACLs)
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.
The default here is the default VRF, so I think there are some misunderstandings about the data model and EOS CLI.
EDIT:
So there are
We should have
ipv4_access_group_ingress_default: <str>
andipv6_access_group_ingress_default: <str>
.And then keep the vrf access groups as they are Today.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.