<?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 Ansible module - selecting &amp;quot;None&amp;quot; value in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-selecting-quot-none-quot-value/m-p/305393#M2109</link>
    <description>&lt;P&gt;I'm trying to create a tunnel interface using Ansible module &lt;STRONG&gt;panos_tunnel&lt;/STRONG&gt; from&amp;nbsp;&amp;nbsp;Galaxy role&amp;nbsp;&lt;STRONG&gt;PaloAltoNetworks.paloaltonetworks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My playbook is failing because it cannot detect correct &lt;STRONG&gt;netflow-profile&lt;/STRONG&gt; value. In my configuration I don't have any netflow-profile selected, so in GUI I'm selecting it as&amp;nbsp;&lt;STRONG&gt;None&lt;/STRONG&gt;. Through GUI this works just fine.&lt;/P&gt;&lt;P&gt;When I'm running my Ansible playbook I'm getting following error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"msg": "Failed create:  tunnel.111 -&amp;gt; netflow-profile 'None' is not a valid reference\n tunnel.111 -&amp;gt; netflow-profile is invalid"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I've tried running that same playbook with&amp;nbsp;&lt;STRONG&gt;netflow-profile: null&lt;/STRONG&gt; but it fails with another error&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"msg": "Failed create:  tunnel.111 -&amp;gt; netflow-profile is invalid"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Not setting parameter&amp;nbsp;&lt;STRONG&gt;netflow-profile&lt;/STRONG&gt; in module shows yet another error&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'netflow_profile'\n\nThe error appears to be in 'tunnel_interface.yml': line 20, column 10, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n  - name: Create tunnel interface\n    ^ here\n"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to set that value in Ansible so that it will complete successfully or is it required to have specific Neflow-Profile created first, so that it doesn't use "None" ?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 11:18:13 GMT</pubDate>
    <dc:creator>jakubanowacki</dc:creator>
    <dc:date>2020-01-02T11:18:13Z</dc:date>
    <item>
      <title>Ansible module - selecting "None" value</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-selecting-quot-none-quot-value/m-p/305393#M2109</link>
      <description>&lt;P&gt;I'm trying to create a tunnel interface using Ansible module &lt;STRONG&gt;panos_tunnel&lt;/STRONG&gt; from&amp;nbsp;&amp;nbsp;Galaxy role&amp;nbsp;&lt;STRONG&gt;PaloAltoNetworks.paloaltonetworks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My playbook is failing because it cannot detect correct &lt;STRONG&gt;netflow-profile&lt;/STRONG&gt; value. In my configuration I don't have any netflow-profile selected, so in GUI I'm selecting it as&amp;nbsp;&lt;STRONG&gt;None&lt;/STRONG&gt;. Through GUI this works just fine.&lt;/P&gt;&lt;P&gt;When I'm running my Ansible playbook I'm getting following error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"msg": "Failed create:  tunnel.111 -&amp;gt; netflow-profile 'None' is not a valid reference\n tunnel.111 -&amp;gt; netflow-profile is invalid"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I've tried running that same playbook with&amp;nbsp;&lt;STRONG&gt;netflow-profile: null&lt;/STRONG&gt; but it fails with another error&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"msg": "Failed create:  tunnel.111 -&amp;gt; netflow-profile is invalid"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Not setting parameter&amp;nbsp;&lt;STRONG&gt;netflow-profile&lt;/STRONG&gt; in module shows yet another error&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'netflow_profile'\n\nThe error appears to be in 'tunnel_interface.yml': line 20, column 10, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n  - name: Create tunnel interface\n    ^ here\n"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to set that value in Ansible so that it will complete successfully or is it required to have specific Neflow-Profile created first, so that it doesn't use "None" ?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 11:18:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-selecting-quot-none-quot-value/m-p/305393#M2109</guid>
      <dc:creator>jakubanowacki</dc:creator>
      <dc:date>2020-01-02T11:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible module - selecting "None" value</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-selecting-quot-none-quot-value/m-p/305399#M2110</link>
      <description>&lt;P&gt;This was caused by error in my configuration.&lt;/P&gt;&lt;P&gt;In my playbook I had value for&amp;nbsp;&lt;STRONG&gt;netflow-profile&lt;/STRONG&gt;&amp;nbsp;which was a reference to variable in another file. I've tried to set it to specific value and that failed. When original I've stated that I was removing value for&amp;nbsp;&lt;STRONG&gt;netflow-profile&lt;/STRONG&gt;&amp;nbsp;what I was doing was to remove variable from that additional file and this was crashing due to non-existing variable.&lt;/P&gt;&lt;P&gt;Solution was to remove parameter&amp;nbsp;&lt;STRONG&gt;netflow-profile&lt;/STRONG&gt; from module&amp;nbsp;&lt;STRONG&gt;panos_tunnel&amp;nbsp;&lt;/STRONG&gt;from my playbook.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 11:43:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-selecting-quot-none-quot-value/m-p/305399#M2110</guid>
      <dc:creator>jakubanowacki</dc:creator>
      <dc:date>2020-01-02T11:43:30Z</dc:date>
    </item>
  </channel>
</rss>

