<?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 forward_next_hop_type gets failed in PBF ansible module.. in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/forward-next-hop-type-gets-failed-in-pbf-ansible-module/m-p/514516#M3117</link>
    <description>&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm trying to create PBF using ansible module but it keeps throwing an error when i choose&lt;STRONG&gt; "forward_next_hope_type"&lt;/STRONG&gt; as a&amp;nbsp; &lt;STRONG&gt;"ip-address"&lt;/STRONG&gt; , and even it doesn't take a value of IPV4 when i have given to&lt;STRONG&gt; "forward_next_hope_value".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ansible-playbook/task:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- name: pbf policy&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;panos_pbf_rule:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;provider: '{{ provider }}'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;name: '{{ vendor_name }}_AWS-VPN-PBF-1'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;from_value: ['SR1_Zone']&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;destination_addresses: ["{{ object.results[0].before.name }}","{{ object.results[1].before.name }}"]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;action: 'forward'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;forward_egress_interface: 'tunnel.1'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;forward_next_hop_type: 'ip-address'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;forward_monitor_profile: 'Default_AWS-tunnelmonitor'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;forward_monitor_ip_address: '4.4.4.4'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;forward_next_hop_value: ['{{ tunnel_address_1 }}']&amp;nbsp; &amp;nbsp; &amp;nbsp;## this will reference through var defined outside of play&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;error:&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;{"changed": false, "msg": "Failed apply: ansible-test_AWS-VPN-PBF-1 -&amp;gt; action -&amp;gt; forward -&amp;gt; nexthop -&amp;gt; ip-address ['4.4.4.4'] is an invalid ipv4/v6 address\n ansible-test_AWS-VPN-PBF-1 -&amp;gt; action -&amp;gt; forward -&amp;gt; nexthop -&amp;gt; ip-address is invalid"}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone please help me here ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks..!!&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2022 02:09:56 GMT</pubDate>
    <dc:creator>Bhargav_2784</dc:creator>
    <dc:date>2022-09-12T02:09:56Z</dc:date>
    <item>
      <title>forward_next_hop_type gets failed in PBF ansible module..</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/forward-next-hop-type-gets-failed-in-pbf-ansible-module/m-p/514516#M3117</link>
      <description>&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm trying to create PBF using ansible module but it keeps throwing an error when i choose&lt;STRONG&gt; "forward_next_hope_type"&lt;/STRONG&gt; as a&amp;nbsp; &lt;STRONG&gt;"ip-address"&lt;/STRONG&gt; , and even it doesn't take a value of IPV4 when i have given to&lt;STRONG&gt; "forward_next_hope_value".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ansible-playbook/task:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- name: pbf policy&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;panos_pbf_rule:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;provider: '{{ provider }}'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;name: '{{ vendor_name }}_AWS-VPN-PBF-1'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;from_value: ['SR1_Zone']&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;destination_addresses: ["{{ object.results[0].before.name }}","{{ object.results[1].before.name }}"]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;action: 'forward'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;forward_egress_interface: 'tunnel.1'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;forward_next_hop_type: 'ip-address'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;forward_monitor_profile: 'Default_AWS-tunnelmonitor'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;forward_monitor_ip_address: '4.4.4.4'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;forward_next_hop_value: ['{{ tunnel_address_1 }}']&amp;nbsp; &amp;nbsp; &amp;nbsp;## this will reference through var defined outside of play&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;error:&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;{"changed": false, "msg": "Failed apply: ansible-test_AWS-VPN-PBF-1 -&amp;gt; action -&amp;gt; forward -&amp;gt; nexthop -&amp;gt; ip-address ['4.4.4.4'] is an invalid ipv4/v6 address\n ansible-test_AWS-VPN-PBF-1 -&amp;gt; action -&amp;gt; forward -&amp;gt; nexthop -&amp;gt; ip-address is invalid"}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone please help me here ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks..!!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 02:09:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/forward-next-hop-type-gets-failed-in-pbf-ansible-module/m-p/514516#M3117</guid>
      <dc:creator>Bhargav_2784</dc:creator>
      <dc:date>2022-09-12T02:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: forward_next_hop_type gets failed in PBF ansible module..</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/forward-next-hop-type-gets-failed-in-pbf-ansible-module/m-p/514524#M3118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/230992"&gt;@Bhargav_2784&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this one, per the &lt;A href="https://paloaltonetworks.github.io/pan-os-ansible/modules/panos_pbf_rule_module.html" target="_self"&gt;docs&lt;/A&gt;, the value for "forward_next_hop_value" needs to be a string, not a list of strings. Therefore change&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;forward_next_hop_value: ['{{ tunnel_address_1 }}']&lt;/LI-CODE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;forward_next_hop_value: '{{ tunnel_address_1 }}'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 07:36:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/forward-next-hop-type-gets-failed-in-pbf-ansible-module/m-p/514524#M3118</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2022-09-12T07:36:55Z</dc:date>
    </item>
  </channel>
</rss>

