pan-os-python icon indicating copy to clipboard operation
pan-os-python copied to clipboard

Block adding an object to itself (by using .add) as it causes infinite recursive loop on PanObject.vsys()

Open AnthoBalitrand opened this issue 1 year ago • 0 comments

Describe the bug

It is actually possible to add an object to itself (using the PanObject.add() method), which can causes infinite depth recursivity issue when using delete() or delete_similar() on it.

Possible solution

Avoid the possibility of adding an object to itself through the PanObject.add() method.

AnthoBalitrand avatar Jun 02 '23 07:06 AnthoBalitrand