Skip to content

Acls#3643

Open
DanPartelly wants to merge 50 commits into
devfrom
acls
Open

Acls#3643
DanPartelly wants to merge 50 commits into
devfrom
acls

Conversation

@DanPartelly

@DanPartelly DanPartelly commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

ACL implementation in progress. initial skeleton based on #3635

@DanPartelly
DanPartelly marked this pull request as draft July 16, 2026 16:12
Comment thread netsim/modules/routing.yml Outdated
in transformed topology, breaking transformation
tests. While at it, improved the function readability.
expansion from pool, prefix, and node/interface,
node/role tuples
After testing multiple topologies, I came to the conclusion
that specifying adress family for an ACL is best done with
a string. The default has been set to "ipv4".

This reverts commit 45e1baf.
prevented proper validation of port_range against
operators
optional, to reduce information on node and simplify
template handling
While at it, set the flag to False for ios familiy
While at it, guard against routing.acl beeing
undefined
Comment thread netsim/devices/ios.yml Outdated

@jbemmel jbemmel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation and whitespace should be made at least internally consistent and ideally in line with the rest of .j2 scripts

You may want to omit not_in support for now, and then add it whenever there is a need later. There is little point in calling out things that are not supported by any device.

- remove fallthrough in r_addr macro
- indent jinja as per Netlab standards
- consistent spacing
- bug in ipv6 access list command generation
- beautify interfaces section
form in data model. Add ipv6.
While at it, update protocol_number table to
reflect the changes
on busybox netcat. Since it doesn't proprely
support -k option on server side, the tests are
one shot.
@DanPartelly
DanPartelly requested a review from jbemmel July 23, 2026 04:21
Comment thread netsim/ansible/templates/routing/acl.ios.j2 Outdated
Comment thread netsim/ansible/templates/routing/acl.ios.j2
Comment thread netsim/ansible/templates/routing/ios.j2
Comment thread netsim/modules/routing/acl.py
Comment thread netsim/modules/routing/acl.py
Comment thread tests/integration/routing/26-acl-ipv4.yml Outdated
Comment thread tests/integration/routing/27-acl-ipv6.yml

@jbemmel jbemmel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few minor nits and optional alternatives

{% set log = " log" if e.log is defined else "" %}
{% set seq = "" if netlab_device_type in ['ios','iosvl2'] else e.sequence %}
{% if e.description is defined %}
{{seqcmd}}{{seq}} remark {{e.description}}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will fail on iosv, iosvl2 for af ipv6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants