metalcloud-cli network-device update¶
Update configuration of an existing network device
Synopsis¶
Update the configuration of an existing network device using JSON configuration provided via file or pipe. Only the specified fields will be updated; other configuration will remain unchanged.
Arguments: network_device_id The unique identifier of the network device to update
Required Flags: –config-source Source of configuration updates (required) Values: ‘pipe’ for stdin input, or path to JSON file
Examples:
Update device from JSON file¶
metalcloud-cli network-device update 12345 –config-source updates.json
Update device from pipe input¶
cat updates.json | metalcloud-cli network-device update 12345 –config-source pipe
Update specific field¶
echo ‘{“management_ip”:”10.0.1.101”}’ | metalcloud-cli nd update 12345 –config-source pipe
metalcloud-cli network-device update <network_device_id> [flags]
Options¶
--config-source string Source of the network device configuration updates. Can be 'pipe' or path to a JSON file.
-h, --help help for update
Options inherited from parent commands¶
-k, --api_key string MetalCloud API key
-c, --config string Config file path
-d, --debug Set to enable debug logging
-e, --endpoint string MetalCloud API endpoint
-f, --format string Output format. Supported values are 'text','csv','md','json','yaml'. (default "text")
-i, --insecure_skip_verify Set to allow insecure transport
-l, --log_file string Log file path
-v, --verbosity string Log level verbosity (default "INFO")
SEE ALSO¶
metalcloud-cli network-device - Manage network devices (switches) in the infrastructure