Skip to content

Cani alpha add ip

cani alpha add ip

Add an IP address to the inventory.

Synopsis

Add an IP address to the inventory in CIDR notation (host/mask).

Examples: cani alpha add ip 10.0.1.1/24 --interface "switch1:vlan100" --status active cani alpha add ip 10.0.1.10/24 --dns-name "node1-ilo.example.com" cani alpha add ip 10.0.1.254/24 --interface "router1:vlan100" --role vip

cani alpha add ip <cidr> [flags]

Options

      --description string      Address description
      --dns-name string         Forward DNS name for this address
  -h, --help                    help for ip
      --interface stringArray   Interface reference (repeatable)
      --role string             Address role: loopback, secondary, anycast, vip, vrrp, hsrp, glbp
      --type string             Address type: host, dhcp, or slaac

Options inherited from parent commands

  -y, --accept                  Automatically accept recommended values.
  -a, --auto                    Automatically recommend values for parent hardware
      --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
  -L, --list-supported-types    List supported hardware types.
      --metadata stringArray    Provider metadata key=value pairs (repeatable)
      --pad-width int           Zero-pad width for sequential names (0 = auto).
  -p, --parent string           Parent item UUID. (default "00000000-0000-0000-0000-000000000000")
      --prefix string           Name prefix for sequential naming (used with --qty).
  -q, --qty int                 Quantity of items to add. (default 1)
      --serial string           Serial number
      --start int               Starting number for sequential names (used with --prefix). (default 1)
      --status string           Status (Active, Available, Connected, Decommissioned, Decommissioning, Deprecated, Deprovisioning, Down, End-of-Life, Extended Support, Failed, Inventory, Maintenance, Offline, Planned, Primary, Provisioning, Reserved, Retired, Secondary, Staging, or any custom status)
      --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