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

Modifier calls fail on DeviceGroup when FW is a child #501

Open
Coo101 opened this issue Apr 14, 2023 · 1 comment
Open

Modifier calls fail on DeviceGroup when FW is a child #501

Coo101 opened this issue Apr 14, 2023 · 1 comment
Labels

Comments

@Coo101
Copy link

Coo101 commented Apr 14, 2023

Describe the bug

When trying to do a call for a devicegroup that modifies the live device and a Firewall object is attached it errors out
TypeError: Firewall.element() got an unexpected keyword argument 'comparable'

Expected behavior

update the device

Current behavior

Even a simple refresh and apply fails

Possible solution

Steps to reproduce

devicegroup= DeviceGroup('dg-name')
panorama.add(devicegroup)
devicegroup.refresh()
devicegroup.apply()

Screenshots

Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2022.2\plugins\python\helpers\pydev_pydevd_bundle\pydevd_exec2.py", line 3, in Exec
exec(exp, global_vars, local_vars)
File "", line 1, in
File "%localpath%\Anaconda3\envs\KNIME\Lib\site-packages\panos\base.py", line 625, in apply
self.xpath(), self.element_str(), retry_on_peer=self.HA_SYNC
^^^^^^^^^^^^^^^^^^
File "%localpath%\Anaconda3\envs\KNIME\Lib\site-packages\panos\base.py", line 535, in element_str
return ET.tostring(self.element(), encoding="utf-8")
^^^^^^^^^^^^^^
File "%localpath%\Anaconda3\envs\KNIME\Lib\site-packages\panos\base.py", line 2606, in element
self.xml_merge(ans, itertools.chain(*iterchain))
File "%localpath%\Anaconda3\envs\KNIME\Lib\site-packages\panos\base.py", line 1694, in xml_merge
for e in elements:
File "%localpath%\Anaconda3\envs\KNIME\Lib\site-packages\panos\base.py", line 574, in _subelements
e.append(child.element(comparable=comparable))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Firewall.element() got an unexpected keyword argument 'comparable'

Your Environment

Using Anaconda3

  • Version used: 1.7.3
  • Environment name and version: python 3.11.2
  • Operating System and version (desktop or mobile): Windows10
@Coo101 Coo101 added the bug label Apr 14, 2023
@welcome-to-palo-alto-networks

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

@Coo101 Coo101 changed the title Modifie calls fail on DeviceGroup when FW is a child Modifier calls fail on DeviceGroup when FW is a child Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant