-
Notifications
You must be signed in to change notification settings - Fork 817
[dump] Optimized dump state cli and modified tests to not use common data #2175
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
19069ea
Changes in progress
vivekrnv 7a560cf
single asic tests completed
vivekrnv a7ecf6c
Migrated masic tests
vivekrnv 32ddc32
Minor fix to port_module test
vivekrnv a03d689
Merge branch 'Azure:master' into test_improv
vivekrnv 2383913
Moved all the dump state tests to use custom data
vivekrnv 6e934fd
Merge branch 'test_improv' of https://github.com/vivekreddynv/sonic-u…
vivekrnv bcb843a
Revert changes to unrelated tests
vivekrnv 3aff631
Merge branch 'master' of https://github.com/Azure/sonic-utilities int…
vivekrnv 642c6e6
failure tests updated
vivekrnv 8dd5a40
Unused import removed
vivekrnv 88a2b25
Merge branch 'master' into test_improv
vivekrnv 858abfd
use fill function
vivekrnv c597f16
Merge branch 'test_improv' of https://github.com/vivekreddynv/sonic-u…
vivekrnv 76fb014
Refactored tests
vivekrnv 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 hidden or 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
This file contains hidden or 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 @@ | ||
| { | ||
| "PORT_TABLE:Ethernet0": { | ||
| "lanes": "33,34,35,36", | ||
| "description": "ARISTA01T2:Ethernet3/1/1", | ||
| "pfc_asym": "off", | ||
| "mtu": "9100", | ||
| "alias": "Ethernet1/1", | ||
| "oper_status": "up", | ||
| "admin_status": "up", | ||
| "role": "Ext", | ||
| "speed": "40000", | ||
| "asic_port_name": "Eth0-ASIC0" | ||
| } | ||
| } |
This file contains hidden or 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,6 @@ | ||
| { | ||
| "ASIC_STATE:SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000": { | ||
| "SAI_SWITCH_ATTR_INIT_SWITCH": "true", | ||
| "SAI_SWITCH_ATTR_SRC_MAC_ADDRESS": "DE:AD:BE:EF:CA:FE" | ||
| } | ||
| } |
This file contains hidden or 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,13 @@ | ||
| { | ||
| "PORT|Ethernet0": { | ||
| "admin_status": "up", | ||
| "alias": "Ethernet1/1", | ||
| "asic_port_name": "Eth0-ASIC0", | ||
| "description": "ARISTA01T2:Ethernet3/1/1", | ||
| "lanes": "33,34,35,36", | ||
| "mtu": "9100", | ||
| "pfc_asym": "off", | ||
| "role": "Ext", | ||
| "speed": "40000" | ||
| } | ||
| } |
This file contains hidden or 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,20 @@ | ||
| { | ||
| "TRANSCEIVER_INFO|Ethernet0": { | ||
| "type": "QSFP28 or later", | ||
| "vendor_rev": "AC", | ||
| "serial": "MT1706FT02064", | ||
| "manufacturer": "Mellanox", | ||
| "model": "MFA1A00-C003", | ||
| "vendor_oui": "00-02-c9", | ||
| "vendor_date": "2017-01-13 ", | ||
| "connector": "No separable connector", | ||
| "encoding": "64B66B", | ||
| "ext_identifier": "Power Class 3(2.5W max), CDR present in Rx Tx", | ||
| "ext_rateselect_compliance": "QSFP+ Rate Select Version 1", | ||
| "cable_type": "Length Cable Assembly(m)", | ||
| "cable_length": "3", | ||
| "specification_compliance": "{'10/40G Ethernet Compliance Code': '40G Active Cable (XLPPI)'}", | ||
| "nominal_bit_rate": "255", | ||
| "application_advertisement": "N/A" | ||
| } | ||
| } |
This file contains hidden or 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,13 @@ | ||
| { | ||
| "PORT_TABLE:Ethernet-BP256": { | ||
| "oper_status": "up", | ||
| "lanes": "61,62,63,64", | ||
| "description": "ASIC0:Eth16-ASIC0", | ||
| "pfc_asym": "off", | ||
| "mtu": "9100", | ||
| "alias": "Ethernet-BP256", | ||
| "admin_status": "up", | ||
| "speed": "40000", | ||
| "asic_port_name": "Eth0-ASIC1" | ||
| } | ||
| } |
This file contains hidden or 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,6 @@ | ||
| { | ||
| "ASIC_STATE:SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000": { | ||
| "SAI_SWITCH_ATTR_INIT_SWITCH": "true", | ||
| "SAI_SWITCH_ATTR_SRC_MAC_ADDRESS": "DE:AD:BE:EF:CA:FF" | ||
| } | ||
| } |
This file contains hidden or 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,13 @@ | ||
| { | ||
| "PORT|Ethernet-BP256": { | ||
| "admin_status": "up", | ||
| "alias": "Ethernet-BP256", | ||
| "asic_port_name": "Eth0-ASIC1", | ||
| "description": "ASIC0:Eth16-ASIC0", | ||
| "lanes": "61,62,63,64", | ||
| "mtu": "9100", | ||
| "pfc_asym": "off", | ||
| "role": "Int", | ||
| "speed": "40000" | ||
| } | ||
| } |
This file contains hidden or 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,20 @@ | ||
| { | ||
| "TRANSCEIVER_INFO|Ethernet-BP256": { | ||
| "type": "QSFP28 or later", | ||
| "vendor_rev": "AC", | ||
| "serial": "MT1706FT02064", | ||
| "manufacturer": "Mellanox", | ||
| "model": "MFA1A00-C003", | ||
| "vendor_oui": "00-02-c9", | ||
| "vendor_date": "2017-01-13 ", | ||
| "connector": "No separable connector", | ||
| "encoding": "64B66B", | ||
| "ext_identifier": "Power Class 3(2.5W max), CDR present in Rx Tx", | ||
| "ext_rateselect_compliance": "QSFP+ Rate Select Version 1", | ||
| "cable_type": "Length Cable Assembly(m)", | ||
| "cable_length": "3", | ||
| "specification_compliance": "{'10/40G Ethernet Compliance Code': '40G Active Cable (XLPPI)'}", | ||
| "nominal_bit_rate": "255", | ||
| "application_advertisement": "N/A" | ||
| } | ||
| } |
This file contains hidden or 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,59 @@ | ||
| { | ||
| "PORT_TABLE:Ethernet176": { | ||
| "index": "0", | ||
| "lanes": "0", | ||
| "alias": "etp45", | ||
| "speed": "25000", | ||
| "oper_status": "up", | ||
| "pfc_asym": "off", | ||
| "mtu": "9100", | ||
| "fec": "rs", | ||
| "admin_status": "up" | ||
| }, | ||
| "PORT_TABLE:Ethernet160": { | ||
| "index": "0", | ||
| "lanes": "0", | ||
| "alias": "etp41", | ||
| "speed": "25000", | ||
| "oper_status": "up", | ||
| "pfc_asym": "off", | ||
| "mtu": "9100", | ||
| "fec": "rs", | ||
| "admin_status": "up" | ||
| }, | ||
| "PORT_TABLE:Ethernet164": { | ||
| "index": "0", | ||
| "lanes": "0", | ||
| "alias": "etp42", | ||
| "speed": "25000", | ||
| "oper_status": "up", | ||
| "pfc_asym": "off", | ||
| "mtu": "9100", | ||
| "fec": "rs", | ||
| "admin_status": "up" | ||
| }, | ||
| "PORT_TABLE:Ethernet0": { | ||
| "index": "0", | ||
| "lanes": "0", | ||
| "alias": "Ethernet0", | ||
| "description": "ARISTA01T2:Ethernet1", | ||
| "speed": "25000", | ||
| "oper_status": "down", | ||
| "pfc_asym": "off", | ||
| "mtu": "9100", | ||
| "fec": "rs" | ||
| }, | ||
| "PORT_TABLE:Ethernet200": { | ||
| "index": "200", | ||
| "lanes": "200,201,202,203", | ||
| "alias": "Ethernet200", | ||
| "description": "Ethernet200", | ||
| "speed": "100000", | ||
| "oper_status": "down", | ||
| "fec": "rs", | ||
| "mtu": "9100", | ||
| "tpid": "0x8100", | ||
| "pfc_asym": "off", | ||
| "admin_status": "up" | ||
| } | ||
| } |
This file contains hidden or 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,50 @@ | ||
| { | ||
| "ASIC_STATE:SAI_OBJECT_TYPE_HOSTIF:oid:0xd000000000a4d":{ | ||
| "SAI_HOSTIF_ATTR_TYPE" : "SAI_HOSTIF_TYPE_NETDEV", | ||
| "SAI_HOSTIF_ATTR_OBJ_ID": "oid:0x100000000036a", | ||
| "SAI_HOSTIF_ATTR_NAME" : "Ethernet176", | ||
| "SAI_HOSTIF_ATTR_OPER_STATUS" : "true" | ||
| }, | ||
| "ASIC_STATE:SAI_OBJECT_TYPE_PORT:oid:0x100000000036a": { | ||
| "SAI_PORT_ATTR_ADMIN_STATE" : "true", | ||
| "SAI_PORT_ATTR_SPEED" : "25000", | ||
| "SAI_PORT_ATTR_MTU" : "9122" | ||
| }, | ||
| "ASIC_STATE:SAI_OBJECT_TYPE_HOSTIF:oid:0xd000000000a49":{ | ||
| "SAI_HOSTIF_ATTR_TYPE" : "SAI_HOSTIF_TYPE_NETDEV", | ||
| "SAI_HOSTIF_ATTR_OBJ_ID": "oid:0x10000000002e6", | ||
| "SAI_HOSTIF_ATTR_NAME" : "Ethernet160", | ||
| "SAI_HOSTIF_ATTR_OPER_STATUS" : "true" | ||
| }, | ||
| "ASIC_STATE:SAI_OBJECT_TYPE_HOSTIF:oid:0xd000000000a4a":{ | ||
| "SAI_HOSTIF_ATTR_TYPE" : "SAI_HOSTIF_TYPE_NETDEV", | ||
| "SAI_HOSTIF_ATTR_OBJ_ID": "oid:0x1000000000307", | ||
| "SAI_HOSTIF_ATTR_OPER_STATUS" : "true" | ||
| }, | ||
| "ASIC_STATE:SAI_OBJECT_TYPE_PORT:oid:0x1000000000307": { | ||
| "SAI_PORT_ATTR_ADMIN_STATE" : "true", | ||
| "SAI_PORT_ATTR_SPEED" : "25000", | ||
| "SAI_PORT_ATTR_MTU" : "9122" | ||
| }, | ||
| "ASIC_STATE:SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000": { | ||
| "SAI_SWITCH_ATTR_INIT_SWITCH": "true", | ||
| "SAI_SWITCH_ATTR_SRC_MAC_ADDRESS": "DE:AD:BE:EF:CA:FE" | ||
| }, | ||
| "ASIC_STATE:SAI_OBJECT_TYPE_HOSTIF:oid:0xd00000000056d": { | ||
| "SAI_HOSTIF_ATTR_NAME": "Ethernet0", | ||
| "SAI_HOSTIF_ATTR_OBJ_ID": "oid:0x10000000004a4", | ||
| "SAI_HOSTIF_ATTR_OPER_STATUS": "true", | ||
| "SAI_HOSTIF_ATTR_TYPE": "SAI_HOSTIF_TYPE_NETDEV", | ||
| "SAI_HOSTIF_ATTR_VLAN_TAG": "SAI_HOSTIF_VLAN_TAG_STRIP" | ||
| }, | ||
| "ASIC_STATE:SAI_OBJECT_TYPE_PORT:oid:0x10000000004a4": { | ||
| "NULL": "NULL", | ||
| "SAI_PORT_ATTR_ADMIN_STATE": "true", | ||
| "SAI_PORT_ATTR_MTU": "9122", | ||
| "SAI_PORT_ATTR_SPEED": "100000" | ||
| }, | ||
| "VIDTORID":{ | ||
| "oid:0xd00000000056d": "oid:0xd", | ||
| "oid:0x10000000004a4": "oid:0x1690000000001" | ||
| } | ||
| } |
This file contains hidden or 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,89 @@ | ||
| { | ||
| "PORT|Ethernet176": { | ||
| "admin_status" : "up", | ||
| "alias": "etp45", | ||
| "index": "45", | ||
| "lanes": "176", | ||
| "speed": "25000" | ||
| }, | ||
| "PORT|Ethernet164": { | ||
| "admin_status" : "up", | ||
| "alias": "etp42", | ||
| "index": "42", | ||
| "lanes": "164", | ||
| "speed": "25000" | ||
| }, | ||
| "PORT|Ethernet160": { | ||
| "admin_status" : "up", | ||
| "alias": "etp41", | ||
| "index": "41", | ||
| "lanes": "160", | ||
| "speed": "25000" | ||
| }, | ||
| "PORT|Ethernet156": { | ||
| "admin_status" : "up", | ||
| "alias": "etp40", | ||
| "index": "40", | ||
| "lanes": "156", | ||
| "speed": "25000" | ||
| }, | ||
| "PORT|Ethernet0": { | ||
| "alias": "etp1", | ||
| "description": "etp1", | ||
| "index": "0", | ||
| "lanes": "25,26,27,28", | ||
| "mtu": "9100", | ||
| "pfc_asym": "off", | ||
| "speed": "40000" | ||
| }, | ||
| "PORT|Ethernet4": { | ||
| "admin_status": "up", | ||
| "alias": "etp2", | ||
| "description": "Servers0:eth0", | ||
| "index": "1", | ||
| "lanes": "29,30,31,32", | ||
| "mtu": "9100", | ||
| "pfc_asym": "off", | ||
| "speed": "40000" | ||
| }, | ||
| "SFLOW_COLLECTOR|prod": { | ||
| "collector_ip": "fe80::6e82:6aff:fe1e:cd8e", | ||
| "collector_port": "6343", | ||
| "collector_vrf": "mgmt" | ||
| }, | ||
| "SFLOW_COLLECTOR|ser5": { | ||
| "collector_ip": "172.21.35.15", | ||
| "collector_port": "6343", | ||
| "collector_vrf": "default" | ||
| }, | ||
| "ACL_RULE|EVERFLOW|RULE_6": { | ||
| "PACKET_ACTION": "FORWARD", | ||
| "PRIORITY": "9994", | ||
| "TCP_FLAGS": "0x12/0x12" | ||
| }, | ||
| "ACL_RULE|EVERFLOW|RULE_08": { | ||
| "PACKET_ACTION": "FORWARD", | ||
| "PRIORITY": "9992", | ||
| "SRC_IP": "10.0.0.3/32" | ||
| }, | ||
| "ACL_TABLE|SSH_ONLY": { | ||
| "policy_desc": "SSH_ONLY", | ||
| "services@": "SSH", | ||
| "type": "CTRLPLANE" | ||
| }, | ||
| "SFLOW|global": { | ||
| "admin_state": "up", | ||
| "polling_interval": "0" | ||
| }, | ||
| "PORT|Ethernet60": { | ||
| "admin_status": "up", | ||
| "alias": "etp16", | ||
| "description": "Servers14:eth0", | ||
| "index": "15", | ||
| "lanes": "61,62,63,64", | ||
| "mtu": "9100", | ||
| "tpid": "0x8100", | ||
| "pfc_asym": "off", | ||
| "speed": "40000" | ||
| } | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.