<?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 Configuring /modifying OSPF interface metric using ansible in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/configuring-modifying-ospf-interface-metric-using-ansible/m-p/528202#M3301</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an ansible module that enables us to modify the ospf interface metric?&lt;BR /&gt;&lt;BR /&gt;I looked up the panos ansible galaxy collection&amp;nbsp;&lt;SPAN&gt;Version: 2.13.0 but I could not find anything relevant over there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The only option I could find is to use the panos_config_element_module.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 18:51:29 GMT</pubDate>
    <dc:creator>Prabhath</dc:creator>
    <dc:date>2023-01-23T18:51:29Z</dc:date>
    <item>
      <title>Configuring /modifying OSPF interface metric using ansible</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/configuring-modifying-ospf-interface-metric-using-ansible/m-p/528202#M3301</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an ansible module that enables us to modify the ospf interface metric?&lt;BR /&gt;&lt;BR /&gt;I looked up the panos ansible galaxy collection&amp;nbsp;&lt;SPAN&gt;Version: 2.13.0 but I could not find anything relevant over there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The only option I could find is to use the panos_config_element_module.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 18:51:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/configuring-modifying-ospf-interface-metric-using-ansible/m-p/528202#M3301</guid>
      <dc:creator>Prabhath</dc:creator>
      <dc:date>2023-01-23T18:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring /modifying OSPF interface metric using ansible</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/configuring-modifying-ospf-interface-metric-using-ansible/m-p/528313#M3302</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/57271"&gt;@Prabhath&lt;/a&gt;, correct, there is no dedicated module today. Both panos_type_cmd and panos_config_element could be used. &lt;A href="https://github.com/jamesholland-uk/playground/blob/main/pan-os-ansible/ospf.yml" target="_self"&gt;Here is an example&lt;/A&gt; of the latter, it does quite a few OSPF parameters rather than just the interface metric, but should give you an example to work from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 09:47:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/configuring-modifying-ospf-interface-metric-using-ansible/m-p/528313#M3302</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2023-01-24T09:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring /modifying OSPF interface metric using ansible</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/configuring-modifying-ospf-interface-metric-using-ansible/m-p/528377#M3303</link>
      <description>&lt;P&gt;Hi Jimmy,&lt;/P&gt;&lt;P&gt;I tried using the panos_config_element but I was not able to edit just the metric part of it. Is it possible to do so or do I have to remove the interface and then re-add the interface under ospf with the desired metric?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 16:59:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/configuring-modifying-ospf-interface-metric-using-ansible/m-p/528377#M3303</guid>
      <dc:creator>Prabhath</dc:creator>
      <dc:date>2023-01-24T16:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring /modifying OSPF interface metric using ansible</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/configuring-modifying-ospf-interface-metric-using-ansible/m-p/528531#M3304</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/57271"&gt;@Prabhath&lt;/a&gt;, I was able to edit just the metric with this task:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    - name: Change OSPF interface metric
      paloaltonetworks.panos.panos_config_element:
        provider: "{{ device }}"
        xpath: "/config/devices/entry[@name='localhost.localdomain']/network/virtual-router/entry[@name='{{ virtual_router_name }}']/protocol/ospf/area/entry[@name='{{ ospf_area }}']/interface/entry[@name='{{ network_interface }}']/metric"
        element: "&amp;lt;metric&amp;gt;{{ new_metric }}&amp;lt;/metric&amp;gt;"
        edit: true&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 12:47:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/configuring-modifying-ospf-interface-metric-using-ansible/m-p/528531#M3304</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2023-01-25T12:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring /modifying OSPF interface metric using ansible</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/configuring-modifying-ospf-interface-metric-using-ansible/m-p/528604#M3305</link>
      <description>&lt;P&gt;Thank you so much Jimmy!&lt;BR /&gt;I missed the edit parameter in my playbook.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 18:18:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/configuring-modifying-ospf-interface-metric-using-ansible/m-p/528604#M3305</guid>
      <dc:creator>Prabhath</dc:creator>
      <dc:date>2023-01-25T18:18:36Z</dc:date>
    </item>
  </channel>
</rss>

