<?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: YANG PUT - Change Key Value in Tools</title>
    <link>https://community.cisco.com/t5/tools/yang-put-change-key-value/m-p/4263791#M1748</link>
    <description>&lt;P&gt;Hello wizi&lt;/P&gt;&lt;P&gt;You cannot change key of the list element. Basically you need delete the existing element and then create element with new key.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Dec 2020 17:53:42 GMT</pubDate>
    <dc:creator>yangorelik</dc:creator>
    <dc:date>2020-12-25T17:53:42Z</dc:date>
    <item>
      <title>YANG PUT - Change Key Value</title>
      <link>https://community.cisco.com/t5/tools/yang-put-change-key-value/m-p/4263579#M1747</link>
      <description>&lt;P&gt;This is related to YANG module&amp;nbsp;&lt;SPAN&gt;Cisco-IOS-XE-wireless-wlan-cfg.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The container I'm working on is below. Is it possible to change the value of "policy-profile-name" after the resource is created? When I attempt to do so, I receive a 'mismatched keypath' error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;container wlan-policies {
      description
        "WLAN policy configuration";
      list wlan-policy {
        key "policy-profile-name";
        description
          "List of WLAN policy configurations";
        uses wireless-wlan-cfg:st-wlan-policies;
      }
    }&lt;/PRE&gt;&lt;PRE&gt;{
    "errors": {
        "error": [
            {
                "error-message": "mismatched keypaths: /wireless-wlan-cfg:wlan-cfg-data/wireless-wlan-cfg:wlan-policies/wireless-wlan-cfg:wlan-policy[wireless-wlan-cfg:policy-profile-name='POLICY_PROFILE_1_NEW'] , /wireless-wlan-cfg:wlan-cfg-data/wireless-wlan-cfg:wlan-policies/wireless-wlan-cfg:wlan-policy[wireless-wlan-cfg:policy-profile-name='POLICY_PROFILE_1']",
                "error-path": "/Cisco-IOS-XE-wireless-wlan-cfg:wlan-cfg-data/wlan-policies/wlan-policy=POLICY_PROFILE_1",
                "error-tag": "malformed-message",
                "error-type": "application"
            }
        ]
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 20:25:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/yang-put-change-key-value/m-p/4263579#M1747</guid>
      <dc:creator>neteng1</dc:creator>
      <dc:date>2020-12-24T20:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: YANG PUT - Change Key Value</title>
      <link>https://community.cisco.com/t5/tools/yang-put-change-key-value/m-p/4263791#M1748</link>
      <description>&lt;P&gt;Hello wizi&lt;/P&gt;&lt;P&gt;You cannot change key of the list element. Basically you need delete the existing element and then create element with new key.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2020 17:53:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/yang-put-change-key-value/m-p/4263791#M1748</guid>
      <dc:creator>yangorelik</dc:creator>
      <dc:date>2020-12-25T17:53:42Z</dc:date>
    </item>
  </channel>
</rss>

