Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render qos.json.j2 from a template #266

Merged
merged 2 commits into from
Jun 21, 2018

Conversation

pavel-shirshov
Copy link
Contributor

- What I did
I made qos configuration a jinja2 template. It allows us to create flexible qos configurations using jinja2 templates.

- How I did it
Add code dealing with it

- How to verify it
Build an image and test on DUT.

- Previous command output (if the output of a command-line utility has changed)

- New command output (if the output of a command-line utility has changed)

-->

config/main.py Outdated
command = "{} -m -t {} >/tmp/qos.json".format(SONIC_CFGGEN_PATH, qos_template_file)
run_command(command, display_cmd=True)

# Apply the configurations only when both files are presented
Copy link
Contributor

@qiluo-msft qiluo-msft Jun 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both files [](start = 49, length = 10)

Which both files? #Closed

@pavel-shirshov pavel-shirshov merged commit 5baa305 into sonic-net:master Jun 21, 2018
@pavel-shirshov pavel-shirshov deleted the pavelsh/qos_file branch June 21, 2018 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants