Cani alpha update interface
cani alpha update interface
Update interface properties.
Synopsis
Update one or more interfaces on a device or module.
Examples: # List interfaces on a device cani update interface --device switch-01 -L
# Set role by device name and interface name cani update interface --device switch-01 --name osfp1 --role hsn
# Set role on multiple interfaces matching a glob pattern cani update interface --device switch-01 --name "1/1/*" --role UplinkInterface
# Set role by interface UUID cani update interface 3fa85f64-5717-4562-b3fc-2c963f66afa6 --role management
# Set label on an interface cani update interface --device server-01 --name eth0 --label "BMC Network"
# Set MAC address on an interface cani update interface --device server-01 --name iLO --mac aa:bb:cc:dd:ee:ff
cani alpha update interface [uuid] [flags]
Options
--device string Device name or UUID (required when not using positional UUID)
-h, --help help for interface
--label string Interface label
-L, --list List interfaces for the specified device
--mac string Interface MAC address (e.g. aa:bb:cc:dd:ee:ff)
--name string Interface name or glob pattern (e.g. "1/1/*")
--role string Interface role (e.g. management, hsn, storage, access)
Options inherited from parent commands
--config string config file (default "/home/runner/.cani/cani.yml")
--datastore string datastore type (json, postgres) (default "json")
--datastore-path string override path to the datastore file (for testing)
--debug enable debug mode
--metadata stringArray Provider metadata key=value pairs (repeatable)
--set stringArray Set field value as key=value (repeatable)
--strict require a resolved device type (slug) for all devices (default true)
--tag stringArray Tag(s) to apply to the item (repeatable)
--types-dirs strings local directories 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
--types-repos strings git repo URLs with additional hardware types
SEE ALSO
- cani alpha update - Update items in the inventory.