<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PAN-OS-Python Framework load running config  (refresh_from_xml) in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-os-python-framework-load-running-config-refresh-from-xml/m-p/469789#M2962</link>
    <description>&lt;P&gt;Anyone able to help?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2022 14:23:06 GMT</pubDate>
    <dc:creator>batd2</dc:creator>
    <dc:date>2022-03-02T14:23:06Z</dc:date>
    <item>
      <title>PAN-OS-Python Framework load running config  (refresh_from_xml)</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-os-python-framework-load-running-config-refresh-from-xml/m-p/469056#M2959</link>
      <description>&lt;P&gt;I have a script which is doing report on multple Panorama securirty policies. It is working ok using the API, but I need run it offline using the panorama config file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding is that I should be able to do it using the refresh_from_xml() module, but I am keep on getting errors when using it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an example refreshall() is working fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;device_groups = panorama.DeviceGroup.refreshall(pano, add=True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but&amp;nbsp;refresh_from_xml returns differenet errors:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;device_groups = panorama.DeviceGroup.refreshall_from_xml(xml = 'running-config.xml', refresh_children = True)

TypeError: refreshall_from_xml() missing 1 required positional argument: 'self'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you have any success running the framwork agains a config file and can you help me with it?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 18:34:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-os-python-framework-load-running-config-refresh-from-xml/m-p/469056#M2959</guid>
      <dc:creator>batd2</dc:creator>
      <dc:date>2022-02-27T18:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: PAN-OS-Python Framework load running config  (refresh_from_xml)</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-os-python-framework-load-running-config-refresh-from-xml/m-p/469789#M2962</link>
      <description>&lt;P&gt;Anyone able to help?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 14:23:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-os-python-framework-load-running-config-refresh-from-xml/m-p/469789#M2962</guid>
      <dc:creator>batd2</dc:creator>
      <dc:date>2022-03-02T14:23:06Z</dc:date>
    </item>
  </channel>
</rss>

