This repository was archived by the owner on Aug 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 95
Add Virtual Database Client + Unit Tests #18
Open
randygaulmsft
wants to merge
22
commits into
sonic-net:master
Choose a base branch
from
randygaulmsft:new-pfcwd
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
43a8fcd
Add feature to support query for PFC watchdog
chaliu 3908994
fix typos;rewrite log messeages; replace hard-coded : with database s…
chaliu cca4c30
replace hardcoded table separator |
chaliu 750133e
Implement new virtual path for pfcwd
chaliu b2c6c5e
Unit tests for virtual database target SONiC, rename new_sonic_data_c…
randygaulmsft 9ea0465
Merge branch 'master' into new-pfcwd
randygaulmsft 0fcf9a5
remove testing directory imports
randygaulmsft f0e0fdb
silence unnecessary printfs
randygaulmsft bd4af90
remove more debug printf's
randygaulmsft da43c69
Attempt to fixup import paths and remove old unnecessary debug format…
randygaulmsft 6dbe27c
Merge branch 'new-pfcwd' of https://github.com/randygaulmsft/sonic-te…
randygaulmsft d16da4c
get tests in a good state
randygaulmsft b414595
Got a basic subscribe test working.
randygaulmsft e29cfa5
Figured out way to subscribe to target SONiC_DB
randygaulmsft e597358
Wrapped up stream queries.
randygaulmsft 90d4437
gofmt on all code under folder.
randygaulmsft ede7a94
Remove dead code (comments).
randygaulmsft f01f39c
SONiC_DB to SONIC_DB
randygaulmsft d33fca6
Removed dead code.
randygaulmsft 9f94324
Remove more dead code.
randygaulmsft 6f2b220
sdc to vdc (use correct path for setting TCP redis settings)
randygaulmsft 53c0e70
Remove dead code from sonic_data_client.
randygaulmsft 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
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
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
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
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
84 changes: 84 additions & 0 deletions
84
testdata/Interfaces_Port_name_Ethernet68_1_BaseCounter.txt
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,84 @@ | ||
| { | ||
| "SAI_PORT_STAT_ETHER_IN_PKTS_1024_TO_1518_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_IN_PKTS_128_TO_255_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_IN_PKTS_1519_TO_2047_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_IN_PKTS_2048_TO_4095_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_IN_PKTS_256_TO_511_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_IN_PKTS_4096_TO_9216_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_IN_PKTS_512_TO_1023_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_IN_PKTS_64_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_IN_PKTS_65_TO_127_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_IN_PKTS_9217_TO_16383_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_OUT_PKTS_1024_TO_1518_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_OUT_PKTS_128_TO_255_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_OUT_PKTS_1519_TO_2047_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_OUT_PKTS_2048_TO_4095_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_OUT_PKTS_256_TO_511_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_OUT_PKTS_4096_TO_9216_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_OUT_PKTS_512_TO_1023_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_OUT_PKTS_64_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_OUT_PKTS_65_TO_127_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_OUT_PKTS_9217_TO_16383_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_RX_OVERSIZE_PKTS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_BROADCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_COLLISIONS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_CRC_ALIGN_ERRORS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_DROP_EVENTS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_FRAGMENTS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_JABBERS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_MULTICAST_PKTS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_OVERSIZE_PKTS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_PKTS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_PKTS_1024_TO_1518_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_PKTS_128_TO_255_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_PKTS_1519_TO_2047_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_PKTS_2048_TO_4095_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_PKTS_256_TO_511_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_PKTS_4096_TO_9216_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_PKTS_512_TO_1023_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_PKTS_64_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_PKTS_65_TO_127_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_PKTS_9217_TO_16383_OCTETS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_RX_NO_ERRORS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_TX_NO_ERRORS": "0", | ||
| "SAI_PORT_STAT_ETHER_STATS_UNDERSIZE_PKTS": "0", | ||
| "SAI_PORT_STAT_ETHER_TX_OVERSIZE_PKTS": "0", | ||
| "SAI_PORT_STAT_IF_IN_BROADCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IF_IN_DISCARDS": "0", | ||
| "SAI_PORT_STAT_IF_IN_ERRORS": "0", | ||
| "SAI_PORT_STAT_IF_IN_MULTICAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IF_IN_NON_UCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IF_IN_OCTETS": "0", | ||
| "SAI_PORT_STAT_IF_IN_UCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IF_IN_UNKNOWN_PROTOS": "0", | ||
| "SAI_PORT_STAT_IF_IN_VLAN_DISCARDS": "0", | ||
| "SAI_PORT_STAT_IF_OUT_BROADCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IF_OUT_DISCARDS": "0", | ||
| "SAI_PORT_STAT_IF_OUT_ERRORS": "0", | ||
| "SAI_PORT_STAT_IF_OUT_MULTICAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IF_OUT_NON_UCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IF_OUT_OCTETS": "0", | ||
| "SAI_PORT_STAT_IF_OUT_QLEN": "0", | ||
| "SAI_PORT_STAT_IF_OUT_UCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IPV6_IN_DISCARDS": "0", | ||
| "SAI_PORT_STAT_IPV6_IN_MCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IPV6_IN_NON_UCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IPV6_IN_OCTETS": "0", | ||
| "SAI_PORT_STAT_IPV6_IN_RECEIVES": "0", | ||
| "SAI_PORT_STAT_IPV6_IN_UCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IPV6_OUT_DISCARDS": "0", | ||
| "SAI_PORT_STAT_IPV6_OUT_MCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IPV6_OUT_NON_UCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IPV6_OUT_OCTETS": "0", | ||
| "SAI_PORT_STAT_IPV6_OUT_UCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IP_IN_DISCARDS": "0", | ||
| "SAI_PORT_STAT_IP_IN_NON_UCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IP_IN_OCTETS": "0", | ||
| "SAI_PORT_STAT_IP_IN_RECEIVES": "0", | ||
| "SAI_PORT_STAT_IP_IN_UCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IP_OUT_DISCARDS": "0", | ||
| "SAI_PORT_STAT_IP_OUT_NON_UCAST_PKTS": "0", | ||
| "SAI_PORT_STAT_IP_OUT_OCTETS": "0", | ||
| "SAI_PORT_STAT_IP_OUT_UCAST_PKTS": "0" | ||
| } |
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,18 @@ | ||
| { | ||
| "SAI_PORT_STAT_PFC_0_RX_PKTS": "0", | ||
| "SAI_PORT_STAT_PFC_0_TX_PKTS": "0", | ||
| "SAI_PORT_STAT_PFC_1_RX_PKTS": "0", | ||
| "SAI_PORT_STAT_PFC_1_TX_PKTS": "0", | ||
| "SAI_PORT_STAT_PFC_2_RX_PKTS": "0", | ||
| "SAI_PORT_STAT_PFC_2_TX_PKTS": "0", | ||
| "SAI_PORT_STAT_PFC_3_RX_PKTS": "0", | ||
| "SAI_PORT_STAT_PFC_3_TX_PKTS": "0", | ||
| "SAI_PORT_STAT_PFC_4_RX_PKTS": "0", | ||
| "SAI_PORT_STAT_PFC_4_TX_PKTS": "0", | ||
| "SAI_PORT_STAT_PFC_5_RX_PKTS": "0", | ||
| "SAI_PORT_STAT_PFC_5_TX_PKTS": "0", | ||
| "SAI_PORT_STAT_PFC_6_RX_PKTS": "0", | ||
| "SAI_PORT_STAT_PFC_6_TX_PKTS": "0", | ||
| "SAI_PORT_STAT_PFC_7_RX_PKTS": "2", | ||
| "SAI_PORT_STAT_PFC_7_TX_PKTS": "0" | ||
| } |
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.