12-24-2020 12:24 PM - edited 12-24-2020 12:25 PM
This is related to YANG module Cisco-IOS-XE-wireless-wlan-cfg.
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.
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; } }
{ "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" } ] } }
Solved! Go to Solution.
12-25-2020 09:53 AM
Hello wizi
You cannot change key of the list element. Basically you need delete the existing element and then create element with new key.
12-25-2020 09:53 AM
Hello wizi
You cannot change key of the list element. Basically you need delete the existing element and then create element with new key.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide