Next Topic

Previous Topic

Book Contents

dependency.delete

Deletes previously created device dependencies for one or more existing devices.

dependency.delete
"deviceName=<regexp>", "parentNames=<value,value,...>"

Example:

dependency.delete
"deviceName=*vlon*", "parentNames=ppar2137"

This command is expecting devices that have a name matching vlon and have parent ppar2137 only. If the devices have multiple parents, then you need to specify each of them using parentNames parameter. It can be checked using dependency.list devicename=vlon command.

dependency.delete "devicename=*vlon*", "parentNames=ROUTERB, \*"

This will not be successful since the command does not support the wildcard for the parentNames parameter. One option would be to write a Perl script that uses the Zyrion::Provisioning module and uses ListDependency() method to collect existing dependency information for the devices in question. Then, use that information to call DeleteDependency() and CreateDependency() methods in succession.