Skip to content

Preserve established and logging options in Cisco object-group rules - #373

Open
Shubham-Padkonde wants to merge 1 commit into
google:masterfrom
Shubham-Padkonde:fix/object-group-established-and-logging
Open

Shubham-Padkonde wants to merge 1 commit into
google:masterfrom
Shubham-Padkonde:fix/object-group-established-and-logging

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown
Contributor

Fixes #174 and #186.

Cisco and Cisco XR object-group rules currently omit both the requested TCP established restriction and the log option. Preserve these when formatting each generated rule, applying established only to TCP and keeping the existing port-group rendering.

Added 24 cases covering both generators, IPv4/IPv6, both established option spellings, logging enabled/disabled, and mixed TCP/UDP rules. Before the fix, 20 cases fail and four controls pass. All pass with the fix; the complete suite passes 1,741 tests and 13 subtests.

This addresses the state/logging omission only. The separate ICMP type/code issue #298 already has PR #300.

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.

established not added when using object-groups on cisco or ciscoxr

1 participant