I have been trying to add a Tag with the “agentcircuitid” coming from Radius. I have managed to get the right string from the Radius, but when I am trying to add it through the provision script I get the following error message…
Channel has faulted; channel=“default” retries=0 faultCode=“script.Error” faultMessage=“Invalid parameter path”
When I add it from the GUI everything works perfect :(. Should I escape it of somethink??
The cirtuitID string is “RC_02B01_D_HUA_02C02D eth 0/1/0/25:835:Vang-Prasino”.
To add a tag use this syntax: declare("Tags.SomeTagName", null, {value: true}); to remove, use declare("Tags.SomeTagName", null, {value: false});
Tags are not key/value pairs. It sounds like you might want to create a virtual parameter instead. This allows you to store arbitrary data for a device.
This v-param will allow you to read/write arbitrary data.
let value;
if ("value" in args[1]) {
// Set declared value
value = args[1].value;
} else if ("value" in args[3]) {
// No declared value, keep current value
value = args[3].value;
} else {
// No current value, use default
value = ['', 'xsd:string'];
}
return {writable: true, value: value};