# List down the commands to be run as default on bootup of NIC
# For example:
# sudo nicctl update qos dscp-to-priority --dscp 10 --priority 0
# sudo nicctl update port --all --mtu 9216
# NOTE:
# 1. only the CLIs that are listed in this file with shipped firmware are
#    guaranteed to work, other commands may or may not work (until qualified)
# 2. commands that don't accept --card or --bdf as input , or that should not
#    be used at card level are not supported in the default config
# 3. export NICCTL_CARD_STATE_DEBUG=1 environment variable in the shell to see
#    if there are any errors while applying the default config during card reset
# 4. if any CLI fails to execute, subsequent CLIs will be skipped for that card
#    in the current run
# 5. if any CLI fails to execute, applying the default config will be attempted
#    whenever the next nicctl instance is run
# 6. for debugging purpose, all errors will be logged to
#    /tmp/ainic/nicctl_card_<BDF>.log file
# 7. card reset is recommended whenever this file is edited
# 8. CLIs should be listed in the right order of configuration

sudo nicctl update qos dscp-to-priority --dscp 10 --priority 0
sudo nicctl update qos dscp-to-priority --dscp 46 --priority 6
sudo nicctl update qos dscp-to-priority --dscp 0-9,11-45,47-63 --priority 1
sudo nicctl update qos dscp-to-purpose --dscp 46 --purpose xccl-cts
sudo nicctl update qos pfc --priority 0 --no-drop enable
sudo nicctl update port --all --mtu 9000
sudo nicctl debug update pipeline internal ats-entries