<?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: Getting error after deploying package in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4118272#M5472</link>
    <description>&lt;P&gt;Please find attached the correct zip file&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2020 08:10:44 GMT</pubDate>
    <dc:creator>darpan1979</dc:creator>
    <dc:date>2020-07-14T08:10:44Z</dc:date>
    <item>
      <title>Getting error after deploying package</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4118209#M5470</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I m getting the following error after package reload in NSO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;packages package l3cpe&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;oper-status file-load-error&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;oper-status error-info "l3cpe-template.xml:115 Unknown element: '{intf-type}' for ned-id: cisco-ios-cli-6.42:cisco-ios-cli-6.42"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Can you please help&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Darpan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 06:52:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4118209#M5470</guid>
      <dc:creator>darpan1979</dc:creator>
      <dc:date>2020-07-14T06:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error after deploying package</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4118265#M5471</link>
      <description>&lt;P&gt;What's on the line of the XML?&lt;/P&gt;
&lt;P&gt;The zip file seems to be empty.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 08:04:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4118265#M5471</guid>
      <dc:creator>yfherzog</dc:creator>
      <dc:date>2020-07-14T08:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error after deploying package</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4118272#M5472</link>
      <description>&lt;P&gt;Please find attached the correct zip file&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 08:10:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4118272#M5472</guid>
      <dc:creator>darpan1979</dc:creator>
      <dc:date>2020-07-14T08:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error after deploying package</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4118294#M5473</link>
      <description>&lt;P&gt;You cannot parametrize the XML tag itself. only its content:&lt;/P&gt;
&lt;P&gt;This is what you have there at the moment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;interface xmlns="urn:ios"&amp;gt;
&amp;lt;{intf-type}&amp;gt;
	&amp;lt;name&amp;gt;{slot}&amp;lt;/name&amp;gt;
	&amp;lt;ip&amp;gt;
		&amp;lt;no-address&amp;gt;
			&amp;lt;address&amp;gt;false&amp;lt;/address&amp;gt;
		&amp;lt;/no-address&amp;gt;
	&amp;lt;/ip&amp;gt;
&amp;lt;/{intf-type}&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;you'd need to have the same block for each interface type you want to support, and have that block conditional on the content of intf-type:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        &amp;lt;interface xmlns="urn:ios"&amp;gt;
          &amp;lt;GigabitEthernet when="{/intf-type = 'GigabitEthernet'}"&amp;gt;
            &amp;lt;name&amp;gt;{/interface-id}&amp;lt;/name&amp;gt;
...
        &amp;lt;interface xmlns="urn:ios"&amp;gt;
          &amp;lt;TenGigabitEthernet when="{/intf-type = 'TenGigabitEthernet'}"&amp;gt;
            &amp;lt;name&amp;gt;{/interface-id}&amp;lt;/name&amp;gt;
...&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 08:54:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4118294#M5473</guid>
      <dc:creator>yfherzog</dc:creator>
      <dc:date>2020-07-14T08:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error after deploying package</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4119217#M5478</link>
      <description>&lt;P&gt;I have now fixe it as per your advice and package oper status is ok now. But I m not able to parse through the interfaces and configure them. Attached is the changed zip. Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 14:00:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4119217#M5478</guid>
      <dc:creator>darpan1979</dc:creator>
      <dc:date>2020-07-15T14:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error after deploying package</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4119695#M5479</link>
      <description>&lt;P&gt;You're trying to use the 'foreach' processing instruction, but you're not using the correct syntax.&lt;/P&gt;
&lt;P&gt;Have a look at the NSO Development Guide - search for section "Processing instructions". You can find the syntax for the statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You were using something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;interface xmlns="urn:ios" foreach="{interfaces}"&amp;gt;
...
&amp;lt;/interface&amp;gt;&lt;/PRE&gt;
&lt;P&gt;instead, you should be using something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?foreach {/interfaces}?&amp;gt;
 &amp;lt;interface xmlns="urn:ios"&amp;gt;
...
 &amp;lt;/interface&amp;gt;
&amp;lt;?end?&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;Finally, when troubleshooting, use 'commit dry-run outformat native | debug template '.&lt;/P&gt;
&lt;P&gt;This will help you figure out what's not working.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 07:38:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4119695#M5479</guid>
      <dc:creator>yfherzog</dc:creator>
      <dc:date>2020-07-16T07:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error after deploying package</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4119984#M5480</link>
      <description>Thanks , it has resolved the problem !!!</description>
      <pubDate>Thu, 16 Jul 2020 14:49:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-error-after-deploying-package/m-p/4119984#M5480</guid>
      <dc:creator>darpan1979</dc:creator>
      <dc:date>2020-07-16T14:49:28Z</dc:date>
    </item>
  </channel>
</rss>

