Skip to content

Render qos.json.j2 from a template#266

Merged
pavel-shirshov merged 2 commits intosonic-net:masterfrom
pavel-shirshov:pavelsh/qos_file
Jun 21, 2018
Merged

Render qos.json.j2 from a template#266
pavel-shirshov merged 2 commits intosonic-net:masterfrom
pavel-shirshov:pavelsh/qos_file

Conversation

@pavel-shirshov
Copy link
Copy Markdown
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
Copy Markdown
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