PaloAltoNetworks / pan-os-php

Framework and utilities to easily manage and edit Palo Alto Network PANOS devices
ISC License
72 stars 15 forks source link

type=address-merger | location=any - merging two objects at shared level - but overwritten at childDG #749

Closed swaschkut closed 1 year ago

swaschkut commented 1 year ago

Describe the bug

Expected behavior

do not merge two objects somewhere at higher Panorama DG level if one of these objects are overwritten at lower DG level with different value

Current behavior

e.g.

but

DeviceGroup:CHILD Security Rules is using object from shared: H_1.2.3.4 with value 1.2.3.4/32; by merging the both objects at shared level and replacing the securityRule object; the new value from overwritten obj 1.2.3.4/24 is used

Possible solution

If object is overwritten at lower level, skip merge

Steps to reproduce

1. 2. 3. 4.

Screenshots

Context

Your Environment

swaschkut commented 1 year ago

751 fixed and published