Skip to content

metalcloud-cli logical-network config-example

Generate example configuration for a logical network kind

Generate example configuration templates for different logical network kinds.

This command provides sample JSON configurations that can be used as templates when creating logical networks. The configuration examples show the structure and required fields for each network kind.

Arguments: kind The type of logical network for which to generate example configuration Supported kinds include: vlan, vxlan, flat, and others

The generated configuration can be used with the ‘create’ command by saving it to a file and using the —config-source flag, or by piping it directly.

Examples:

Get example configuration for a VLAN network

Section titled “Get example configuration for a VLAN network”

metalcloud-cli logical-network config-example vlan

metalcloud-cli logical-network config-example vxlan > network-config.json

metalcloud-cli logical-network config-example vlan | metalcloud-cli logical-network create vlan —config-source pipe

metalcloud-cli logical-network config-example kind [flags]
-h, --help help for config-example
-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")

Auto generated by spf13/cobra on 11-Aug-2025

Section titled “Auto generated by spf13/cobra on 11-Aug-2025”