Skip to content
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

Ability to merge similar rules in parent DG #317

Open
necebeci opened this issue Nov 25, 2021 · 3 comments
Open

Ability to merge similar rules in parent DG #317

necebeci opened this issue Nov 25, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@necebeci
Copy link

Is your feature request related to a problem?

We are trying to create alternatives for reducing overall config size. Currently using a 4 level DG hierarchy with a planned final configuration of 250 virtual systems onboard. Moving similar rules in these virtual systems to a common parent would help reduce config size.

Describe the solution you'd like

Analyse the security policies in the same level of a DG tree, if a security rule matching a criteria exists in all DGs, move that rule to the parent DG and remove it from child DGs.

It would also be good to have the visibility and option to show if, like 4 out of 7 DGs in same level have this rule, either display or create it in higher DG. This could maybe be done by using a prevelance parameter ranging 1-100, if it's present above %70 of DGs in same level, add this rule to upper DG.

Additional context

This would be a 'nice to have' option when doing policy optimization tasks in relatively large environments.

@necebeci necebeci added the enhancement New feature or request label Nov 25, 2021
@welcome-to-palo-alto-networks

🎉 Thanks for opening your first issue here! Welcome to the community!

@necebeci necebeci changed the title Ability to merge simialr rules in parent DG Ability to merge simialar rules in parent DG Nov 25, 2021
@necebeci necebeci changed the title Ability to merge simialar rules in parent DG Ability to merge similar rules in parent DG Nov 25, 2021
@swaschkut
Copy link
Contributor

thanks for bringing this in.

some notes for later implementation

  • create rule hash for all DG
  • based on DG hierarchy compare rule hash
  • objects used in rule must be available at the parentDG
  • objects must be identical in all childDG (no overwrites)
  • adding rule at end of parentDG [check needed about upper rules in childDG, starting from rule to be merged position]

@swaschkut
Copy link
Contributor

  • request from multiple customers;

another chat done with necebeci; this feature is a possibility to reduce configuration size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants