Skip to content

Enable IPv6 address-family selection in Cisco ASA headers - #375

Open
Shubham-Padkonde wants to merge 2 commits into
google:masterfrom
Shubham-Padkonde:fix/asa-ipv6-header
Open

Shubham-Padkonde wants to merge 2 commits into
google:masterfrom
Shubham-Padkonde:fix/asa-ipv6-header

Conversation

@Shubham-Padkonde

@Shubham-Padkonde Shubham-Padkonde commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

The ASA generator always created IPv4 terms, preventing IPv6 address and ICMPv6 output. This adds target:: ciscoasa <name> inet6 and mixed, while preserving the default or explicit inet behavior.

IPv6 output uses any6 and icmp6. Mixed mode emits each term's IPv4 and IPv6 rules before proceeding to the next term, with any4/any6 wildcards. ICMP types stay with their matching protocol family. Verbatim rules are emitted once, and rendering both families does not mutate shared owner comments. Invalid family combinations are rejected; the generator documentation describes the syntax and ASA 9.0+ requirement.

Fixes #252.

Validation: all 1,726 tests and 15 subtests pass. All three new mixed-mode tests fail on the preceding PR head. The final focused run passes 11 tests and two subtests. Pylint reports existing configuration/style findings; comparison with the preceding head finds no additional findings. No live ASA appliance was available. Syntax was checked against Cisco's extended ACL documentation.

@kevinkrk-slac kevinkrk-slac left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I need this feature.
It appears to be stuck waiting for a maintainer.

@kevinkrk-slac

Copy link
Copy Markdown

It would be nice if this supported the "mixed" keyword like the Cisco generator does.

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.

Cisco ASA generator has no way to enable ipv6 address processing

2 participants