<?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: how to edit subinterfaces in XML config in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-edit-subinterfaces-in-xml-config/m-p/115482#M45420</link>
    <description>&lt;P&gt;Hi Pulukas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx for Your tips - I will try it soon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Deleting interfaces and creating again isnt an option - there is a lot of setting related on them (dhcp, polices etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Slawek&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2016 19:52:09 GMT</pubDate>
    <dc:creator>_slv_</dc:creator>
    <dc:date>2016-09-22T19:52:09Z</dc:date>
    <item>
      <title>how to edit subinterfaces in XML config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-edit-subinterfaces-in-xml-config/m-p/114710#M45359</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to modify my config. Now its looks like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2016-09-20_210651.png" style="width: 800px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/5654iC596A7DC841C7C78/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="2016-09-20_210651.png" alt="2016-09-20_210651.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;I need to "move" ethernet 1/4.111&amp;nbsp; as a subinterface ethernet1/7, and all polices and other related objects.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SO I opened in editpad lite my config and I try to move part od config related to this subinterface:&lt;/P&gt;&lt;P&gt;&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;lt;entry name="ethernet1/4.111"&amp;gt;&lt;BR /&gt;&amp;lt;ipv6&amp;gt;&lt;BR /&gt;&amp;lt;neighbor-discovery&amp;gt;&lt;BR /&gt;&amp;lt;router-advertisement&amp;gt;&lt;BR /&gt;&amp;lt;enable&amp;gt;no&amp;lt;/enable&amp;gt;&lt;BR /&gt;&amp;lt;/router-advertisement&amp;gt;&lt;BR /&gt;&amp;lt;/neighbor-discovery&amp;gt;&lt;BR /&gt;&amp;lt;/ipv6&amp;gt;&lt;BR /&gt;&amp;lt;tag&amp;gt;111&amp;lt;/tag&amp;gt;&lt;BR /&gt;&amp;lt;ip&amp;gt;&lt;BR /&gt;&amp;lt;entry name="DMZ_1"/&amp;gt;&lt;BR /&gt;&amp;lt;/ip&amp;gt;&lt;BR /&gt;&amp;lt;interface-management-profile&amp;gt;Ping_only&amp;lt;/interface-management-profile&amp;gt;&lt;BR /&gt;&amp;lt;/entry&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2016-09-20_211159.png" style="width: 372px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/5655i3D0298E9EB3D25A9/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="2016-09-20_211159.png" alt="2016-09-20_211159.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when I try to load&amp;nbsp; config I get error config malformed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I should do this job? Is it possible to do with xml editor only?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Slawek&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 19:14:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-edit-subinterfaces-in-xml-config/m-p/114710#M45359</guid>
      <dc:creator>_slv_</dc:creator>
      <dc:date>2016-09-20T19:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to edit subinterfaces in XML config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-edit-subinterfaces-in-xml-config/m-p/114717#M45360</link>
      <description>&lt;P&gt;Most XML editors will make very slight changes to the formatting that they may or may not actually show inline with the document. I'm not sure why you would try and do this large of a change directly from XML to be honest with you. There will also be much more than just that thread to edit, as when you remove the subinterface from the interface configuration any reference to that interface would also need to be altered to reflect the new sub-interface before it ever accepted the configuration; and again you would need to make sure the formating is just right otherwise it will reject the file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this situation I would just do it through the GUI instead of taking so much time to edit the XML config directly.&lt;/P&gt;&lt;P&gt;1) Create the sub interface&lt;/P&gt;&lt;P&gt;2) Change the policies away from the exsisting sub-interface and move them to the new one. Attempt to delete the sub-interface and verify the config, it should list anything that hasn't been altered to reflect the new interface before it allows you to actually commit the changes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 19:22:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-edit-subinterfaces-in-xml-config/m-p/114717#M45360</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2016-09-20T19:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to edit subinterfaces in XML config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-edit-subinterfaces-in-xml-config/m-p/115264#M45399</link>
      <description>&lt;P&gt;There are two methods you can use for this type of operation, load partial from an xml file with the necessary settings and using command set format to add/remove the device settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've only used load partial with configs in Panorama but I assume this is possible with the device direct as well. &amp;nbsp;This method assumes you have an existing valid xml format and you suck those existing subinterface into the new interface hierarchy. &amp;nbsp;So you don't have to manually write the xml us import the existing xml into the right spot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/Configuration-Articles/How-to-duplicate-settings-among-multiple-templates/ta-p/75141" target="_blank"&gt;https://live.paloaltonetworks.com/t5/Configuration-Articles/How-to-duplicate-settings-among-multiple-templates/ta-p/75141&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other option is to get the related sections of the config in the set format from the cli. &amp;nbsp;These then are much easier to edit than the xml file to change values. &amp;nbsp;Which you then run on the CLI to change or delete the required settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set cli config-output-format set&lt;/P&gt;&lt;P&gt;then simply show the right sections of the config or just dump the whole config down in set format as a reference&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/Configuration-Articles/Viewing-the-configuration-in-set-and-XML-format/ta-p/65757" target="_blank"&gt;https://live.paloaltonetworks.com/t5/Configuration-Articles/Viewing-the-configuration-in-set-and-XML-format/ta-p/65757&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 10:09:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-edit-subinterfaces-in-xml-config/m-p/115264#M45399</guid>
      <dc:creator>pulukas</dc:creator>
      <dc:date>2016-09-22T10:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to edit subinterfaces in XML config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-edit-subinterfaces-in-xml-config/m-p/115482#M45420</link>
      <description>&lt;P&gt;Hi Pulukas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx for Your tips - I will try it soon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Deleting interfaces and creating again isnt an option - there is a lot of setting related on them (dhcp, polices etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Slawek&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 19:52:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-edit-subinterfaces-in-xml-config/m-p/115482#M45420</guid>
      <dc:creator>_slv_</dc:creator>
      <dc:date>2016-09-22T19:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to edit subinterfaces in XML config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-edit-subinterfaces-in-xml-config/m-p/116660#M45515</link>
      <description>&lt;P&gt;Hi Steve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that is a simpler ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could I ask You for one thing.&lt;/P&gt;&lt;P&gt;How to change subinterface from interface X to subintreface at Y - could You give some command example ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With regards&lt;/P&gt;&lt;P&gt;Slawek&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:01:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-edit-subinterfaces-in-xml-config/m-p/116660#M45515</guid>
      <dc:creator>_slv_</dc:creator>
      <dc:date>2016-09-29T13:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to edit subinterfaces in XML config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-edit-subinterfaces-in-xml-config/m-p/117092#M45541</link>
      <description>&lt;P&gt;For example: &amp;nbsp;The current configuration pulled from the showing in set format might have these commands for this sub interface:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set network interface ethernet ethernet1/4 layer3 units ethernet1/4.2 ipv6 neighbor-discovery router-advertisement enable no&lt;BR /&gt;set network interface ethernet ethernet1/4 layer3 units ethernet1/4.2 ip 10.2.0.1&lt;BR /&gt;set network interface ethernet ethernet1/4 layer3 units ethernet1/4.2 tag 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Convert to delete commands (some adjustements needed for leaf objects removed at the end of the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;delete network interface ethernet ethernet1/4 layer3 units ethernet1/4.2 ipv6 neighbor-discovery&lt;BR /&gt;delete network interface ethernet ethernet1/4 layer3 units ethernet1/4.2 ip 10.2.0.1&lt;BR /&gt;delete network interface ethernet ethernet1/4 layer3 units ethernet1/4.2 tag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;remove from import interfaces:&lt;/P&gt;&lt;P&gt;delete import network interface ethernet1/4.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Convert to interface 1/3:&lt;/P&gt;&lt;P&gt;set network interface ethernet ethernet1/3 layer3 units ethernet1/3.2 ipv6 neighbor-discovery router-advertisement enable no&lt;BR /&gt;set network interface ethernet ethernet1/3 layer3 units ethernet1/3.2 ip 10.2.0.1&lt;BR /&gt;set network interface ethernet ethernet1/3 layer3 units ethernet1/3.2 tag 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2016 18:41:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-edit-subinterfaces-in-xml-config/m-p/117092#M45541</guid>
      <dc:creator>pulukas</dc:creator>
      <dc:date>2016-10-01T18:41:21Z</dc:date>
    </item>
  </channel>
</rss>

