Cani alpha remove prefix
cani alpha remove prefix
Remove a prefix from the inventory.
Synopsis
Remove a prefix by UUID or CIDR. A CIDR is searched in --namespace (default Global) unless written as "namespace/CIDR".
The prefix's child prefixes and IP addresses move up to its parent prefix, as in Nautobot. A prefix without a parent that still holds IP addresses is kept unless --cascade is given, which removes those addresses with it.
Examples: cani alpha remove prefix 10.0.0.0/24 cani alpha remove prefix tenant-a/10.0.0.0/24 --cascade
cani alpha remove prefix [flags]
Options
--namespace string IPAM namespace to search when the CIDR is unqualified (default "Global")
--cascade Also remove the IP addresses held by a prefix that has no parent
Options inherited from parent commands
-f, --force Remove items without confirmation.
--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 remove - Remove items from the inventory