diff --git a/config/main.py b/config/main.py index eca4bef45b3d..12abf55808fe 100755 --- a/config/main.py +++ b/config/main.py @@ -413,8 +413,9 @@ def reload(): run_command(command, display_cmd=True) qos_template_file = os.path.join('/usr/share/sonic/device/', platform, hwsku, 'qos.json.j2') + sonic_version_file = os.path.join('/etc/sonic/', 'sonic_version.yml') if os.path.isfile(qos_template_file): - command = "{} -m -t {} >/tmp/qos.json".format(SONIC_CFGGEN_PATH, qos_template_file) + command = "{} -m -t {} -y {} >/tmp/qos.json".format(SONIC_CFGGEN_PATH, qos_template_file, sonic_version_file) run_command(command, display_cmd=True) # Apply the configurations only when both buffer and qos configuration files are presented