<?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: Unable to perform config changes via Python Script to WLC 9800 in Wireless</title>
    <link>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515651#M236372</link>
    <description>&lt;P&gt;And that link you provided answers your question for you - you need to update the structure of your netconf request to make it work.&lt;/P&gt;&lt;P&gt;Note: You will need to re-validate your scripts, and update them if necessary, for every new release you use.&lt;/P&gt;&lt;P&gt;Your pre-deployment testing should include a full regression test of any scripts you're using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Dec 2021 00:31:26 GMT</pubDate>
    <dc:creator>Rich R</dc:creator>
    <dc:date>2021-12-09T00:31:26Z</dc:date>
    <item>
      <title>Unable to perform config changes via Python Script to WLC 9800</title>
      <link>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4514851#M236292</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm Unable to perform config changes via Python Script to WLC 9800 on 17.x.x code. However, this works correctly when WLC is on 16.x.x code. Is there a known issue with this and possible fix in place?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 23:43:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4514851#M236292</guid>
      <dc:creator>aihassan1</dc:creator>
      <dc:date>2021-12-07T23:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to perform config changes via Python Script to WLC 9800</title>
      <link>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515007#M236305</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;- What problems are you encountering ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;M.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 08:10:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515007#M236305</guid>
      <dc:creator>Mark Elsen</dc:creator>
      <dc:date>2021-12-08T08:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to perform config changes via Python Script to WLC 9800</title>
      <link>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515196#M236338</link>
      <description>&lt;P&gt;These are the errors I'm getting: Scripts are good since it works for 16.3.5 code but does not work on any code on 17.4.x or 17.6.x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "c:\Python\WT-Cisco\create-wlan-profile.py", line 31, in &amp;lt;module&amp;gt;&lt;BR /&gt;result = m.edit_config(target="running", config=new_wlan_profile)&lt;BR /&gt;File "C:\Python\WT-Cisco\WT-Cisco\lib\site-packages\ncclient\manager.py", line 246, in execute&lt;BR /&gt;return cls(self._session,&lt;BR /&gt;File "C:\Python\WT-Cisco\WT-Cisco\lib\site-packages\ncclient\operations\edit.py", line 75, in request&lt;BR /&gt;return self._request(node)&lt;BR /&gt;File "C:\Python\WT-Cisco\WT-Cisco\lib\site-packages\ncclient\operations\rpc.py", line 375, in _request&lt;BR /&gt;raise self._reply.error&lt;BR /&gt;ncclient.operations.rpc.RPCError: {'type': 'protocol', 'tag': 'unknown-element', 'app_tag': None, 'severity': 'error', 'info': '&amp;lt;?xml version="1.="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;error-info xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"&amp;gt;&amp;lt;bad-ent&amp;gt;0" encoding="UTF-8"?&amp;gt;&amp;lt;error-info xmlns="urn:ietf:paramselement&amp;gt;config&amp;lt;/bad-element&amp;gt;\n&amp;lt;/error-info&amp;gt;\n', 'path': '\n /rpc/edit-config\n ', 'message': None}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 13:57:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515196#M236338</guid>
      <dc:creator>aihassan1</dc:creator>
      <dc:date>2021-12-08T13:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to perform config changes via Python Script to WLC 9800</title>
      <link>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515199#M236339</link>
      <description>&lt;P&gt;HOW are you trying to configure the 9800 - CLI/netconf/restconf?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 14:00:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515199#M236339</guid>
      <dc:creator>Rich R</dc:creator>
      <dc:date>2021-12-08T14:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to perform config changes via Python Script to WLC 9800</title>
      <link>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515219#M236340</link>
      <description>&lt;P&gt;I activated netconf GUI and pulled down XML data. I then took that XML data and wrapped it in a Python script. The script is below. When I run the python script (venv or not) to a 9800 WLC on 17.4.x or 17.6.x code I get errors (listed on my previous post).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a test script for now (pulled from a fellow wireless engineer resource) that has led me to WLC code discrepancy between 16.x.x and 17.x.x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Import Dependencies&lt;BR /&gt;from ncclient import manager&lt;BR /&gt;from jinja2 import Template&lt;/P&gt;&lt;P&gt;# NETCONF Connection Manager&lt;BR /&gt;m = manager.connect(host='x.x.x.', port=830, username='username',&lt;BR /&gt;password='password', device_params={'name': 'iosxe'})&lt;BR /&gt;&lt;BR /&gt;MACAddress = 'MAC ADDRESS'&lt;BR /&gt;&lt;BR /&gt;# Render Jinja Template, we going to update add a static mapping for an AP to its Tags&lt;BR /&gt;tags_template = Template(open('updateap.xml').read())&lt;BR /&gt;tags_rendered = tags_template.render(&lt;BR /&gt;MAC_ADDRESS= MACAddress,&lt;BR /&gt;POLICY_TAG= 'PolicyTag1',&lt;BR /&gt;SITE_TAG= 'FlexSite1',&lt;BR /&gt;RF_TAG= 'test-RF'&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;# Execute the netconf update to the device&lt;BR /&gt;result = m.edit_config(target='running', config=tags_rendered)&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:27:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515219#M236340</guid>
      <dc:creator>aihassan1</dc:creator>
      <dc:date>2022-10-05T11:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to perform config changes via Python Script to WLC 9800</title>
      <link>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515324#M236349</link>
      <description>&lt;P&gt;You know you need to update your yang model for each new release right?&lt;/P&gt;&lt;P&gt;There can be changes between each release.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/YangModels/yang/tree/master/vendor/cisco/xe" target="_blank"&gt;https://github.com/YangModels/yang/tree/master/vendor/cisco/xe&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 16:19:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515324#M236349</guid>
      <dc:creator>Rich R</dc:creator>
      <dc:date>2021-12-08T16:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to perform config changes via Python Script to WLC 9800</title>
      <link>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515495#M236356</link>
      <description>&lt;P&gt;Understood. The correct YANG model is updated to the WLC. The problem here seems to be a communication issue from the ncclient to the WLC on 17.x.x code when executing a python script.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from ncclient import manager&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Found the following message board highlighting a similar issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cisco.com/t5/mobility-discussions/wlc98k-configure-ap-tags-through-netconf/td-p/4146361" target="_blank"&gt;https://community.cisco.com/t5/mobility-discussions/wlc98k-configure-ap-tags-through-netconf/td-p/4146361&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 20:51:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515495#M236356</guid>
      <dc:creator>aihassan1</dc:creator>
      <dc:date>2021-12-08T20:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to perform config changes via Python Script to WLC 9800</title>
      <link>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515650#M236371</link>
      <description>&lt;P&gt;It's not the Yang model on the WLC that needs updating - that's built into IOS-XE.&lt;/P&gt;&lt;P&gt;You need to update YOUR scripts to match the Yang data model for that release.&lt;/P&gt;&lt;P&gt;We have restconf (which uses the same data models) working fine on 17.6.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 00:29:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515650#M236371</guid>
      <dc:creator>Rich R</dc:creator>
      <dc:date>2021-12-09T00:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to perform config changes via Python Script to WLC 9800</title>
      <link>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515651#M236372</link>
      <description>&lt;P&gt;And that link you provided answers your question for you - you need to update the structure of your netconf request to make it work.&lt;/P&gt;&lt;P&gt;Note: You will need to re-validate your scripts, and update them if necessary, for every new release you use.&lt;/P&gt;&lt;P&gt;Your pre-deployment testing should include a full regression test of any scripts you're using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 00:31:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/unable-to-perform-config-changes-via-python-script-to-wlc-9800/m-p/4515651#M236372</guid>
      <dc:creator>Rich R</dc:creator>
      <dc:date>2021-12-09T00:31:26Z</dc:date>
    </item>
  </channel>
</rss>

