-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Split yang tests into multiple files #6939
Merged
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
acce8db
Add manageability to the yang model tests by splitting the tests
joyas-joseph 9e15665
Merge branch 'master' of github.com:Azure/sonic-buildimage into yang_…
joyas-joseph 30850c8
Update tests in sonic-yang-mgmt based on changes in sonig-yang-models
joyas-joseph 543db9f
Merge branch 'master' of github.com:Azure/sonic-buildimage into yang_…
joyas-joseph 39d4449
Update with latest test_sonic_yang.py
joyas-joseph dff550b
Address review comments.
joyas-joseph c5c37e6
Merge from azure/master
joyas-joseph d60b020
Update tests based on latest master
joyas-joseph c5934f6
Merge branch 'master' of github.com:Azure/sonic-buildimage into yang_…
joyas-joseph b6b7770
Merge branch 'master' of github.com:Azure/sonic-buildimage into yang_…
joyas-joseph 444d929
Resolve conflicts
joyas-joseph File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/buffers.json.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{%- set default_topo = 't1' %} | ||
{%- include 'buffers_config.j2' %} | ||
|
46 changes: 46 additions & 0 deletions
46
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/buffers_defaults_t0.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{%- set default_cable = '5m' %} | ||
|
||
{%- macro generate_port_lists(PORT_ALL) %} | ||
{# Generate list of ports #} | ||
{%- for port_idx in range(0,64) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %} | ||
{%- endfor %} | ||
{%- endmacro %} | ||
|
||
{%- macro generate_buffer_pool_and_profiles() %} | ||
"BUFFER_POOL": { | ||
"ingress_lossless_pool": { | ||
"size": "33329088", | ||
"type": "ingress", | ||
"mode": "dynamic", | ||
"xoff": "7827456" | ||
}, | ||
"egress_lossy_pool": { | ||
"size": "26663272", | ||
"type": "egress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "42349632", | ||
"type": "egress", | ||
"mode": "static" | ||
} | ||
}, | ||
"BUFFER_PROFILE": { | ||
"ingress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|ingress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"44302336" | ||
}, | ||
"egress_lossless_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"42349632" | ||
}, | ||
"egress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"1664", | ||
"dynamic_th":"-1" | ||
} | ||
}, | ||
{%- endmacro %} |
46 changes: 46 additions & 0 deletions
46
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/buffers_defaults_t1.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{%- set default_cable = '300m' %} | ||
|
||
{%- macro generate_port_lists(PORT_ALL) %} | ||
{# Generate list of ports #} | ||
{%- for port_idx in range(0,64) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %} | ||
{%- endfor %} | ||
{%- endmacro %} | ||
|
||
{%- macro generate_buffer_pool_and_profiles() %} | ||
"BUFFER_POOL": { | ||
"ingress_lossless_pool": { | ||
"size": "33329088", | ||
"type": "ingress", | ||
"mode": "dynamic", | ||
"xoff": "7827456" | ||
}, | ||
"egress_lossy_pool": { | ||
"size": "26663272", | ||
"type": "egress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "42349632", | ||
"type": "egress", | ||
"mode": "static" | ||
} | ||
}, | ||
"BUFFER_PROFILE": { | ||
"ingress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|ingress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"44302336" | ||
}, | ||
"egress_lossless_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"42349632" | ||
}, | ||
"egress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"1664", | ||
"dynamic_th":"-1" | ||
} | ||
}, | ||
{%- endmacro %} |
8 changes: 8 additions & 0 deletions
8
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/pg_profile_lookup.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# PG lossless profiles. | ||
# speed cable size xon xoff threshold xon_offset | ||
50000 5m 1248 1248 56160 -3 2496 | ||
100000 5m 1248 1248 96928 -3 2496 | ||
50000 40m 1248 1248 96096 -3 2496 | ||
100000 40m 1248 1248 177632 -3 2496 | ||
50000 300m 1248 1248 141856 -3 2496 | ||
100000 300m 1248 1248 268736 -3 2496 |
1 change: 1 addition & 0 deletions
1
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/qos.json.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{%- include 'qos_config.j2' %} |
2 changes: 0 additions & 2 deletions
2
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/sai.profile
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/sai.profile.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{# Get sai.profile based on switch_role #} | ||
{%- if DEVICE_METADATA is defined -%} | ||
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%} | ||
{%- if 'torrouter' in switch_role.lower() or 'torswitch' in switch_role.lower() %} | ||
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-a7260cx3-64-64x100G-t0.config.bcm' -%} | ||
{%- else %} | ||
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-a7260cx3-64-64x100G-t1.config.bcm' -%} | ||
{%- endif %} | ||
{%- else %} | ||
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-a7260cx3-64-64x100G-t1.config.bcm' -%} | ||
{%- endif %} | ||
{# Write the contents of sai_ profile_filename to sai.profile file #} | ||
{{ sai_profile_contents }} | ||
SAI_NUM_ECMP_MEMBERS=64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
You are viewing a condensed version of this merge commit. You can view the full changes here.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Joyesh, We need rebase here. Seems something got messed up here, these files should not be in this diff. I remember I approve this PR, but kindly fix this last comment and I'll approve again, thanks a lot.....I
on Double check, I think It is right rebase. I am not sure, why one commit shows the extra delta.