switchd is the daemon at the heart of Cumulus Linux. It communicates between the switch and Cumulus Linux, and all the applications running on Cumulus Linux.
switchd configuration is stored in
The switchd File System
switchd also exports a file system, mounted on
/cumulus/switchd, that presents all the
switchd configuration options as a series of files arranged in a tree structure. You can see the contents by parsing the
switchd tree; run
tree /cumulus/switchd. The output below is for a switch with one switch port configured:
Configuring switchd Parameters
You can use
cl-cfg to configure many
switchd parameters at runtime (like ACLs, interfaces, and route table utilization), which minimizes disruption to your running switch. However, some options are read only and cannot be configured at runtime.
For example, to see data related to routes, run:
To modify the configuration, run
cl-cfg -w. For example, to set the buffer utilization measurement interval to 1 minute, run:
To verify that the value changed, use
cl-resource-query; though you cannot update the
switchdconfiguration with it.
Whenever you modify any
switchd hardware configuration file (typically changing any
*.conf file that requires making a change to the switching hardware, like
/etc/cumulus/datapath/traffic.conf), you must restart
switchd for the change to take effect:
You do not have to restart the
switchd service when you update a network interface configuration (that is, edit
switchd causes all network ports to reset in addition to resetting the switch hardware configuration.