Generating configuration files can be done for a single switch or for the full system.
For example, if there is a suspected configuration issue on single switch, a configuration file can be generated for only that switch in order to simplify debugging.
canu --version
to see version.Ensure that the correct architecture (-a
parameter) is selected for the setup in use.
The following are the different architectures that can be specified:
Tds
– Aruba-based Test and Development System. These are small systems characterized by Kubernetes NCNs cabled directly to the spine.Full
– Aruba-based Leaf-Spine systems. These are usually customer production systems.V1
– Any Dell and Mellanox-based systems.Generating a configuration file can be done for a single switch, or for the full system. Below are example commands for both scenarios:
Important: Modify the following items in the command:
--csm
: Which CSM version configuration do you want to use? For example, 1.3
, 1.2
or 1.0
NOTE: Only major and minor versions of CSM are tracked at this time. CANU bug fixes are captured in the latest CANU version and do not align with CSM bug fix versions.
--a
: What is the system architecture? (See above)
--ccj
: Match the ccj.json
file to the one you created for your system.
--sls
: Match the sls_file.json
to the one you created for your system.
--custom-config
: Pass in a switch configuration file that CANU will inject into the generated configuration. More documentation can be found from the official CANU documentation.
(ncn#
) Generate CSM 1.2 configuration files for a full system:
canu generate network config --csm 1.5 -a full --ccj system-ccj.json --sls-file sls_file.json --custom-config system-custom-config.yaml --folder generated