Cani alpha update prefix
cani alpha update prefix
Update a prefix in the inventory.
Synopsis
Update a prefix's VRF memberships or description.
The prefix is matched by UUID, by CIDR within --namespace (default Global), or by a qualified "namespace/CIDR". VRFs are matched by UUID or by name within the prefix's namespace.
A datastore migrated from an older schema can leave a legacy VRF name on a prefix that did not resolve to one VRF. Adding a VRF with --vrf replaces it; --remove-vrf with that name clears it.
Examples: cani alpha update prefix 10.0.0.0/24 --vrf blue cani alpha update prefix tenant-a/10.0.0.0/24 --remove-vrf red cani alpha update prefix 10.0.0.0/24 --description "Management"
cani alpha update prefix [flags]
Options
--namespace string IPAM namespace to search when the CIDR is unqualified (default "Global")
--description string New description
--vrf stringArray Add the prefix to a VRF (name or UUID, repeatable)
--remove-vrf stringArray Remove the prefix from a VRF, or clear its legacy VRF name (repeatable)
Options inherited from parent commands
--set stringArray Set field value as key=value (repeatable)
--tag stringArray Tag(s) to apply to the item (repeatable)
--metadata stringToString Provider metadata key=value pairs (repeatable)
--config string config file (default "/home/runner/.cani/cani.yml")
--debug enable debug mode
--datastore string datastore type (json, postgres) (default "json")
--datastore-path string override path to the datastore file (for testing)
--types-dirs stringSlice local directories with additional hardware types
--types-repos stringSlice git repo URLs with additional hardware types
--types-repo-clone clone types repos that are not yet cached locally
--types-repo-pull pull latest changes from types repos on startup
--strict require a resolved device type (slug) for all devices (default true)
SEE ALSO
- cani alpha update - Update items in the inventory.