<?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: Pulling interface and zone details for an IP using PAN device framework in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/309616#M2167</link>
    <description>&lt;P&gt;HI ,&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/46544"&gt;@gfreeman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping me on this . So i tried but getting below erroro:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"PanURLError: URLError: code: 400 reason: Illegal parameter [request]"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use fw.op() .&amp;nbsp; As mentioned by you i enable the debug and got below :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;request cmd="op" cookie="9191129909288394" uid="1003"&amp;gt;&amp;lt;operations&amp;gt;&amp;lt;test&amp;gt;&amp;lt;routing&amp;gt;&amp;lt;fib-lookup&amp;gt;&amp;lt;virtual-router&amp;gt;default&amp;lt;/virtual-router&amp;gt;&amp;lt;ip&amp;gt;10.1.1.1&amp;lt;/ip&amp;gt;&amp;lt;/fib-lookup&amp;gt;&amp;lt;/routing&amp;gt;&amp;lt;/test&amp;gt;&amp;lt;/operations&amp;gt;&amp;lt;/request&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please confirm me the value i need to pass for Op function .&lt;/P&gt;&lt;P&gt;i was trying using below:&lt;/P&gt;&lt;P&gt;test&amp;gt;&amp;lt;routing&amp;gt;&amp;lt;fib-lookup&amp;gt;&amp;lt;virtual-router&amp;gt;default&amp;lt;/virtual-router&amp;gt;&amp;lt;ip&amp;gt;10.1.1.1&amp;lt;/ip&amp;gt;&amp;lt;/fib-lookup&amp;gt;&amp;lt;/routing&amp;gt;&amp;lt;/test&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 18:46:32 GMT</pubDate>
    <dc:creator>deepak12</dc:creator>
    <dc:date>2020-02-05T18:46:32Z</dc:date>
    <item>
      <title>Pulling interface and zone details for an IP using PAN device framework</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/308632#M2153</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/15566"&gt;@btorresgil&lt;/a&gt;&amp;nbsp;and all ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to pull interface and zone details for an IP using PAN device framework.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me on this. My end goal is to run test_security match cmd to find if rule is allow or not .&lt;/P&gt;&lt;P&gt;Current i can do this using fw.op() but i need to put pull zone details manually .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 07:08:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/308632#M2153</guid>
      <dc:creator>deepak12</dc:creator>
      <dc:date>2020-01-30T07:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling interface and zone details for an IP using PAN device framework</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/308812#M2156</link>
      <description>&lt;P&gt;If you're using pandevice, there's a function for this specifically:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://pandevice.readthedocs.io/en/latest/module-base.html#pandevice.base.PanDevice.test_security_policy_match" target="_blank"&gt;https://pandevice.readthedocs.io/en/latest/module-base.html#pandevice.base.PanDevice.test_security_policy_match&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 00:24:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/308812#M2156</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2020-01-31T00:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling interface and zone details for an IP using PAN device framework</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/308830#M2157</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/46544"&gt;@gfreeman&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah , I am using thing . However i was referring Pulling details regrading Zone details for an IP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently i need to verify Zone for an IP from firewall using cli and entering details in function .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to pull interface and zone details for an IP using pandevice.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 05:55:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/308830#M2157</guid>
      <dc:creator>deepak12</dc:creator>
      <dc:date>2020-01-31T05:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling interface and zone details for an IP using PAN device framework</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/309426#M2159</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/46544"&gt;@gfreeman&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;Just checking if you can help me on this.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 17:02:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/309426#M2159</guid>
      <dc:creator>deepak12</dc:creator>
      <dc:date>2020-02-04T17:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling interface and zone details for an IP using PAN device framework</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/309452#M2160</link>
      <description>&lt;P&gt;So if you get the info from the CLI, then just mimic what command the CLI uses with pandevice and then you can invoke the function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see what op command the CLI is executing by doing &lt;CODE&gt;cli debug enable&lt;/CODE&gt; before executing the command, then styling your pandevice &lt;CODE&gt;fw.op()&lt;/CODE&gt; similarly.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 19:00:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/309452#M2160</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2020-02-04T19:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling interface and zone details for an IP using PAN device framework</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/309616#M2167</link>
      <description>&lt;P&gt;HI ,&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/46544"&gt;@gfreeman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping me on this . So i tried but getting below erroro:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"PanURLError: URLError: code: 400 reason: Illegal parameter [request]"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use fw.op() .&amp;nbsp; As mentioned by you i enable the debug and got below :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;request cmd="op" cookie="9191129909288394" uid="1003"&amp;gt;&amp;lt;operations&amp;gt;&amp;lt;test&amp;gt;&amp;lt;routing&amp;gt;&amp;lt;fib-lookup&amp;gt;&amp;lt;virtual-router&amp;gt;default&amp;lt;/virtual-router&amp;gt;&amp;lt;ip&amp;gt;10.1.1.1&amp;lt;/ip&amp;gt;&amp;lt;/fib-lookup&amp;gt;&amp;lt;/routing&amp;gt;&amp;lt;/test&amp;gt;&amp;lt;/operations&amp;gt;&amp;lt;/request&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please confirm me the value i need to pass for Op function .&lt;/P&gt;&lt;P&gt;i was trying using below:&lt;/P&gt;&lt;P&gt;test&amp;gt;&amp;lt;routing&amp;gt;&amp;lt;fib-lookup&amp;gt;&amp;lt;virtual-router&amp;gt;default&amp;lt;/virtual-router&amp;gt;&amp;lt;ip&amp;gt;10.1.1.1&amp;lt;/ip&amp;gt;&amp;lt;/fib-lookup&amp;gt;&amp;lt;/routing&amp;gt;&amp;lt;/test&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 18:46:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/309616#M2167</guid>
      <dc:creator>deepak12</dc:creator>
      <dc:date>2020-02-05T18:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling interface and zone details for an IP using PAN device framework</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/310438#M2173</link>
      <description>&lt;P&gt;You have a few options for how to pass it in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;1. Have pandevice create the XML command:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;fw.op('test routing fib-lookup virtual-router "default" ip "10.1.1.1"')&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Pass in the XML command yourself:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;fw.op('&amp;lt;test&amp;gt;&amp;lt;routing&amp;gt;&amp;lt;fib-lookup&amp;gt;&amp;lt;virtual-router&amp;gt;default&amp;lt;/virtual-router&amp;gt;&amp;lt;ip&amp;gt;10.1.1.1&amp;lt;/ip&amp;gt;&amp;lt;/fib-lookup&amp;gt;&amp;lt;/routing&amp;gt;&amp;lt;/test&amp;gt;', cmd_xml=False)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 19:31:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/310438#M2173</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2020-02-10T19:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling interface and zone details for an IP using PAN device framework</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/310784#M2176</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/46544"&gt;@gfreeman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help .&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 13:58:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pulling-interface-and-zone-details-for-an-ip-using-pan-device/m-p/310784#M2176</guid>
      <dc:creator>deepak12</dc:creator>
      <dc:date>2020-02-12T13:58:01Z</dc:date>
    </item>
  </channel>
</rss>

