-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Using swssconfig to apply configuration
To apply configuration to various components of SONIC we can use swssconfig tool, located at https://github.com/Azure/sonic-swss/tree/master/swssconfig. The tool has 'sample' directory for the reference.
swssconfig accepts as input a JSON file containing desired settings. For list of supported settings, their syntax refer to the schema file - https://github.com/Azure/sonic-swss/blob/master/doc/swss-schema.md
swssconfig will read the JSON file and apply its content to the REDIS DB. Corresponding orchagent component (an Orch derived class) will receive notification and start reading the data from DB and applying to the ASIC.
swssconfig should be run from inside the 'orchagent' docker: copy your my.file.json file into 'orchagent' docker. docker exec -it orchagent bash swssconfig my.file.json
You can also 'tail -f /var/log/syslog' to see the traces produced by orchagent while applying the settings to the ASIC.
-
For Users
-
For Developers
-
Subgroups/Working Groups
-
Presentations
-
Join Us