<?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 Moving BGP policy rules in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/moving-bgp-policy-rules/m-p/468111#M2943</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to write Ansible automation to move a specific BGP import/export policy rule. Creating a BGP rule will automatically be added to the bottom of thel ist but as you can see we have default-import-deny rule(test_rule_top is used by the default deny even if missing in the screenshot). This will obviously prevent the rule from working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianOlsen_1-1645690674489.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/39302iC49E7AFB1B84C8EF/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="SebastianOlsen_1-1645690674489.png" alt="SebastianOlsen_1-1645690674489.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So in the GUI it's easy going in clicking the move up / down buttons. When i look into the debug console I cannot see any way of doing this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried getting all the rules and using python to reorder the list of rules so default-import-deny policy is at the bottom and then using a type_cmd to set the rules again. This unfortunately does not move any of the rules on the firewalls. The only solution I have found is to get the default-import-deny rule, delete the rule and then re-add the rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is: There must be a better way of doing this that I am missing? I know it's possible with NAT and security rules to declare where they should be positioned in regards to other rules, but it does not seem possible to do with the BGP policy rules.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 08:21:46 GMT</pubDate>
    <dc:creator>SebastianOlsen</dc:creator>
    <dc:date>2022-02-24T08:21:46Z</dc:date>
    <item>
      <title>Moving BGP policy rules</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/moving-bgp-policy-rules/m-p/468111#M2943</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to write Ansible automation to move a specific BGP import/export policy rule. Creating a BGP rule will automatically be added to the bottom of thel ist but as you can see we have default-import-deny rule(test_rule_top is used by the default deny even if missing in the screenshot). This will obviously prevent the rule from working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianOlsen_1-1645690674489.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/39302iC49E7AFB1B84C8EF/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="SebastianOlsen_1-1645690674489.png" alt="SebastianOlsen_1-1645690674489.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So in the GUI it's easy going in clicking the move up / down buttons. When i look into the debug console I cannot see any way of doing this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried getting all the rules and using python to reorder the list of rules so default-import-deny policy is at the bottom and then using a type_cmd to set the rules again. This unfortunately does not move any of the rules on the firewalls. The only solution I have found is to get the default-import-deny rule, delete the rule and then re-add the rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is: There must be a better way of doing this that I am missing? I know it's possible with NAT and security rules to declare where they should be positioned in regards to other rules, but it does not seem possible to do with the BGP policy rules.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 08:21:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/moving-bgp-policy-rules/m-p/468111#M2943</guid>
      <dc:creator>SebastianOlsen</dc:creator>
      <dc:date>2022-02-24T08:21:46Z</dc:date>
    </item>
  </channel>
</rss>

