You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The concat function is used to correctly process the single quotation mark (') and double quotation mark (") in the node value. But the lyd_new_path API doesn't seem to support it. Do you have any better suggestions? Thanks!
These functions are documented to take a path, not an XPath. The grammar for path follows the instance-identifier from the grammar in RFC 7950. No XPath functions are allowed in there, so you cannot use concat().
Are you maybe looking for a way of allowing list key values with both " and '? That's just not possible in the YANG ecosystem I'm afraid.
The concat function is used to correctly process the single quotation mark (') and double quotation mark (") in the node value. But the lyd_new_path API doesn't seem to support it. Do you have any better suggestions? Thanks!
err_path:
lyd_new_path err[7], path:/openconfig-telemetry:telemetry-system/destination-groups/destination-group[group-id=concat("'",'"')]/config/group-id
err_msg:
lyd_new_path err[7], errmsg:Unexpected XPath token "FunctionName" ("concat("'",'"')"), expected "Literal"
The text was updated successfully, but these errors were encountered: