-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[multi-asic][vs]: Add context_config.json files for multi-asic vs (#7697
) hwskus. Why I did it For multi-asic platforms, orchagent process in swss docker is started by passing device_ids(or asic_ids). Each swss docker starts orchagent with a different device_id. This device_id is passed as Hardware info to syncd. For syncd to start with the right hwinfo, context_config.json is passed as an argument. context_config.json file is looked up to get the hwinfo information. sonic-sairedis PRs required for this diff to be used to bring up multi-asic VS: sonic-net/sonic-sairedis#830 sonic-net/sonic-sairedis#832 How I did it Add context_config.json for each asic in the same structure as provided here: https://github.com/Azure/sonic-sairedis/blob/master/lib/src/context_config.json Each asic context_config.json will have different hwinfo string. hwinfo string will be same as device id retrieved from asic.conf file. Signed-off-by: Suvarna Meenakshi <[email protected]>
- Loading branch information
1 parent
90a457a
commit a557dbd
Showing
10 changed files
with
210 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
device/virtual/x86_64-kvm_x86_64-r0/msft_four_asic_vs/0/context_config.json
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,21 @@ | ||
{ | ||
"CONTEXTS": [ | ||
{ | ||
"guid" : 0, | ||
"name" : "syncd0", | ||
"dbAsic" : "ASIC_DB", | ||
"dbCounters" : "COUNTERS_DB", | ||
"dbFlex": "FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"zmq_enable": false, | ||
"zmq_endpoint": "tcp://127.0.0.1:5555", | ||
"zmq_ntf_endpoint": "tcp://127.0.0.1:5556", | ||
"switches": [ | ||
{ | ||
"index" : 0, | ||
"hwinfo" : "0" | ||
} | ||
] | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
device/virtual/x86_64-kvm_x86_64-r0/msft_four_asic_vs/1/context_config.json
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,21 @@ | ||
{ | ||
"CONTEXTS": [ | ||
{ | ||
"guid" : 0, | ||
"name" : "syncd1", | ||
"dbAsic" : "ASIC_DB", | ||
"dbCounters" : "COUNTERS_DB", | ||
"dbFlex": "FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"zmq_enable": false, | ||
"zmq_endpoint": "tcp://127.0.0.1:5555", | ||
"zmq_ntf_endpoint": "tcp://127.0.0.1:5556", | ||
"switches": [ | ||
{ | ||
"index" : 0, | ||
"hwinfo" : "1" | ||
} | ||
] | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
device/virtual/x86_64-kvm_x86_64-r0/msft_four_asic_vs/2/context_config.json
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,21 @@ | ||
{ | ||
"CONTEXTS": [ | ||
{ | ||
"guid" : 0, | ||
"name" : "syncd2", | ||
"dbAsic" : "ASIC_DB", | ||
"dbCounters" : "COUNTERS_DB", | ||
"dbFlex": "FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"zmq_enable": false, | ||
"zmq_endpoint": "tcp://127.0.0.1:5555", | ||
"zmq_ntf_endpoint": "tcp://127.0.0.1:5556", | ||
"switches": [ | ||
{ | ||
"index" : 0, | ||
"hwinfo" : "2" | ||
} | ||
] | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
device/virtual/x86_64-kvm_x86_64-r0/msft_four_asic_vs/3/context_config.json
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,21 @@ | ||
{ | ||
"CONTEXTS": [ | ||
{ | ||
"guid" : 0, | ||
"name" : "syncd3", | ||
"dbAsic" : "ASIC_DB", | ||
"dbCounters" : "COUNTERS_DB", | ||
"dbFlex": "FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"zmq_enable": false, | ||
"zmq_endpoint": "tcp://127.0.0.1:5555", | ||
"zmq_ntf_endpoint": "tcp://127.0.0.1:5556", | ||
"switches": [ | ||
{ | ||
"index" : 0, | ||
"hwinfo" : "3" | ||
} | ||
] | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
device/virtual/x86_64-kvm_x86_64-r0/msft_multi_asic_vs/0/context_config.json
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,21 @@ | ||
{ | ||
"CONTEXTS": [ | ||
{ | ||
"guid" : 0, | ||
"name" : "syncd0", | ||
"dbAsic" : "ASIC_DB", | ||
"dbCounters" : "COUNTERS_DB", | ||
"dbFlex": "FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"zmq_enable": false, | ||
"zmq_endpoint": "tcp://127.0.0.1:5555", | ||
"zmq_ntf_endpoint": "tcp://127.0.0.1:5556", | ||
"switches": [ | ||
{ | ||
"index" : 0, | ||
"hwinfo" : "0" | ||
} | ||
] | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
device/virtual/x86_64-kvm_x86_64-r0/msft_multi_asic_vs/1/context_config.json
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,21 @@ | ||
{ | ||
"CONTEXTS": [ | ||
{ | ||
"guid" : 0, | ||
"name" : "syncd1", | ||
"dbAsic" : "ASIC_DB", | ||
"dbCounters" : "COUNTERS_DB", | ||
"dbFlex": "FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"zmq_enable": false, | ||
"zmq_endpoint": "tcp://127.0.0.1:5555", | ||
"zmq_ntf_endpoint": "tcp://127.0.0.1:5556", | ||
"switches": [ | ||
{ | ||
"index" : 0, | ||
"hwinfo" : "1" | ||
} | ||
] | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
device/virtual/x86_64-kvm_x86_64-r0/msft_multi_asic_vs/2/context_config.json
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,21 @@ | ||
{ | ||
"CONTEXTS": [ | ||
{ | ||
"guid" : 0, | ||
"name" : "syncd2", | ||
"dbAsic" : "ASIC_DB", | ||
"dbCounters" : "COUNTERS_DB", | ||
"dbFlex": "FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"zmq_enable": false, | ||
"zmq_endpoint": "tcp://127.0.0.1:5555", | ||
"zmq_ntf_endpoint": "tcp://127.0.0.1:5556", | ||
"switches": [ | ||
{ | ||
"index" : 0, | ||
"hwinfo" : "2" | ||
} | ||
] | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
device/virtual/x86_64-kvm_x86_64-r0/msft_multi_asic_vs/3/context_config.json
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,21 @@ | ||
{ | ||
"CONTEXTS": [ | ||
{ | ||
"guid" : 0, | ||
"name" : "syncd3", | ||
"dbAsic" : "ASIC_DB", | ||
"dbCounters" : "COUNTERS_DB", | ||
"dbFlex": "FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"zmq_enable": false, | ||
"zmq_endpoint": "tcp://127.0.0.1:5555", | ||
"zmq_ntf_endpoint": "tcp://127.0.0.1:5556", | ||
"switches": [ | ||
{ | ||
"index" : 0, | ||
"hwinfo" : "3" | ||
} | ||
] | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
device/virtual/x86_64-kvm_x86_64-r0/msft_multi_asic_vs/4/context_config.json
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,21 @@ | ||
{ | ||
"CONTEXTS": [ | ||
{ | ||
"guid" : 0, | ||
"name" : "syncd4", | ||
"dbAsic" : "ASIC_DB", | ||
"dbCounters" : "COUNTERS_DB", | ||
"dbFlex": "FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"zmq_enable": false, | ||
"zmq_endpoint": "tcp://127.0.0.1:5555", | ||
"zmq_ntf_endpoint": "tcp://127.0.0.1:5556", | ||
"switches": [ | ||
{ | ||
"index" : 0, | ||
"hwinfo" : "4" | ||
} | ||
] | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
device/virtual/x86_64-kvm_x86_64-r0/msft_multi_asic_vs/5/context_config.json
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,21 @@ | ||
{ | ||
"CONTEXTS": [ | ||
{ | ||
"guid" : 0, | ||
"name" : "syncd5", | ||
"dbAsic" : "ASIC_DB", | ||
"dbCounters" : "COUNTERS_DB", | ||
"dbFlex": "FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"zmq_enable": false, | ||
"zmq_endpoint": "tcp://127.0.0.1:5555", | ||
"zmq_ntf_endpoint": "tcp://127.0.0.1:5556", | ||
"switches": [ | ||
{ | ||
"index" : 0, | ||
"hwinfo" : "5" | ||
} | ||
] | ||
} | ||
] | ||
} |